/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.error-page {
    text-align: center;
    margin: 150px 0;
  }
  
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部样式 */
header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.top-header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 50px;
}

.search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 15px;
    border: 2px solid #ff6b6b;
    border-radius: 20px;
    font-size: 16px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
}

.hot-tags {
    margin-top: 10px;
    font-size: 14px;
}

.hot-tags a {
    margin-right: 10px;
    color: #666;
}

.qr-code {
    display: flex;
    text-align: center;
    align-items: center;
}

.qr-code img {
    width: 96px;
    height: 96px;
}

.qr-code p {
    font-size: 14px;
    width: 60px;
}

/* 导航栏样式 */
.main-nav {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    gap: 30px;
    justify-content: space-around;
}
.nav-list > li {
  flex: 1;
}
.nav-list > li > a {
    display: block;
    padding: 15px 0;
    font-weight: 500;
    text-align: center;
}
.nav-list > li > a:hover, .nav-list > li > a.active {
    color: #ff6b6b;
}

.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 150px;
    display: none;
    text-align: center;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu a {
    display: block;
    padding: 10px 15px;
    color: #333;
}

.submenu a:hover {
    background: #f5f5f5;
}
.topmenu{
    display: none;
}
/* 游戏详情页相关卡片样式 */
.related-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.related-cards .card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-cards .card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.related-cards .related-list li,
.related-cards .article-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.related-cards .related-list li:last-child,
.related-cards .article-list li:last-child {
    border-bottom: none;
}

.related-cards .related-list img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 12px;
}

.related-cards .game-info h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.related-cards .download-count,
.related-cards .game-type {
    font-size: 13px;
    color: #666;
}

.related-cards .article-list a {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-cards .article-list a:hover {
    color: #ff6b6b;
}

.article-date {
    font-size: 13px;
    color: #999;
    margin-left: 10px;
}

/* 游戏详情页侧边栏样式 */
.page-aside {
    width: 300px;
}

.aside-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.aside-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.aside-section .game-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px
}
.aside-section .game-list li {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.aside-section .game-list img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
}
.aside-section .game-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0;
}
.aside-section .game-item h4 {
    display: block;
    font-size: 15px;
    color: #333;
    height: 24px;
    overflow: hidden;
}

.aside-section .release-date,
.aside-section .play-count {
    font-size: 13px;
    color: #666;
}

.aside-section .rank-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.aside-section .rank-list .game-item {
  align-items: start;
  flex: 1;
}
.aside-section .rank-list .btn {
  padding: 4px 16px;
  background: #007bff;
  color: #fff;
  border-radius: 5px;
}
.aside-section .rank-list li:last-child {
    border-bottom: none;
}

.aside-section .rank-num {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
}

.aside-section .rank-list li:nth-child(1) .rank-num {
    background: #ff6b6b;
    color: #fff;
}

.aside-section .rank-list li:nth-child(2) .rank-num {
    background: #ffd93d;
    color: #fff;
}

.aside-section .rank-list li:nth-child(3) .rank-num {
    background: #6c757d;
    color: #fff;
}

.aside-section .rank-list img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 12px;
}

.aside-section .rank-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .page-detail {
        flex-direction: column;
    }
    
    .page-aside {
        width: 100%;
        margin-top: 20px;
    }
    
    .related-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 游戏列表页样式 */
.game-filter {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-group {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
}

.filter-group label {
    display: block;
    margin-right: 10px;
    font-weight: 500;
    color: #333;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-options a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
}

.filter-options a.active {
    background: #ff6b6b;
    color: #fff;
}

.result-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-list .game-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    gap: 0;
}

.result-list .cover {
    height: 100px;
    width: 100px;
    overflow: hidden;
}

.result-list .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.game-info-1 {
    flex: 1;
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.game-info-1 h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.game-info-1 .game-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.game-info-1 .type {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.game-info-1 .rating {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-top: 10px;
}

.rating-stars {
    display: flex;
}

.star {
    width: 12px;
    height: 12px;
    margin-right: 2px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ddd"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') no-repeat;
}

.star.full {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>') no-repeat;
}

.star.half {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M12 5.99v11.28l3.25 1.99.74-3.17 2.47-2.12-3.24-.28L12 5.99z"/></svg>') no-repeat;
}

.view-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.result-list .desc {
    padding: 15px;
    border-top: 1px solid #f5f5f5;
}

.result-list .desc p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 992px) {
    .result-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .result-list {
        grid-template-columns: 1fr;
    }
    .filter-group {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .filter-options {
        gap: 6px;
    }
    
    .filter-options a {
        padding: 4px 8px;
        font-size: 13px;
    }
}
/* 分页 */

.pager {
  margin-top: 30px;
  text-align: center;
  box-sizing: border-box;
  padding: 20px 0;
}

.pager a,
.pager span {
  display: inline-block;
  min-width: 50px;
  height: 40px;
  line-height: 40px;
  border-radius: 4px;
  border: 1px solid #eee;
  margin: 3px 0;
  background-color: #fff;
  padding: 0 10px;
}

.pager span:hover {
  cursor: default;
  color: #777;
}

.pager a:hover {
  border-color: #4990E2;
}
/* 视觉焦点区样式 */
.hero-section {
  background-color: #f8f9fa;
}
.banner-swiper {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.banner-swiper .swiper-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.banner-content {
    position: absolute;
    bottom: 50px;
    color: #fff;
    z-index: 1;
    left: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
    right: 0;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
    justify-content: center;
    display: flex;
    align-items: center;
}
.banner-content .tags {
  font-size: 14px;
  margin-left: 20px;
}
.banner-content .tags span {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-right: 10px;
}

.cta-button {
    display: inline-block;
    padding: 10px 25px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
}

/* 推荐游戏网格 */
.featured-games {
    margin: 30px 0;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
}
.game-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 25px;
}

.game-grid .game-item {
    overflow: hidden;
    transition: transform 0.3s ease;
    background: transparent;
    box-shadow: none;
}

.game-grid .game-item:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.game-cover {
    position: relative;
    padding-top: 100%;
}

.game-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,107,107,0.9);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.game-item .name {
  padding: 10px 0;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 最新游戏列表 */
.new-games {
    display: flex;
    margin-top: 10px;
    flex-wrap: 10px 20px;
}
.new-games h3 {
  color: #ffb266;
  margin-right: 20px;
  text-align: center;
  display: flex;
  align-items: center;
}
.game-list-text {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.game-link:hover {
    color: #ff6b6b;
}

.game-type {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin: 0 15px;
}

.game-date {
    color: #999;
    font-size: 14px;
}

/* 核心推荐模块样式 */
.core-recommendation {
    display: flex;
    margin: 30px 0;
}
.hot-games {
  width: 50%;
}
.hot-games-swiper {
    position: relative;
    padding: 10px;
}

.hot-game-item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hot-game-item:hover {
    transform: translateY(-5px);
}

.hot-game-item img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.hot-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

.hot-game-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.category {
    font-size: 14px;
    opacity: 0.8;
}

.hot-games-swiper .swiper-button-next,
.hot-games-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.hot-games-swiper .swiper-button-next:after,
.hot-games-swiper .swiper-button-prev:after {
    font-size: 20px;
}

.content-recommendation {
    width: 50%;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    padding-bottom: 10px;
}

.content-recommendation .headline {
    display: block;
    margin-bottom: 2px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.headline h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.headline p {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    height: 48px;
    overflow: hidden;
}

.news-list .news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.news-list .news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    flex: 1;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #007bff;
}

.news-item .date {
    color: #999;
    font-size: 14px;
}

@media (max-width: 768px) {
    .core-recommendation {
        flex-direction: column;
        gap: 20px;
    }
    .hot-games {
        width: 100%;
    }
    .content-recommendation {
        width: 100%;
    }
    
    .hot-game-item img {
        height: 180px;
    }
    
    .hot-game-info h4 {
        font-size: 16px;
    }
    
    .headline h4 {
        font-size: 18px;
    }
    .new-games {
        flex-direction: column;
    }
    .game-list-text {
        gap: 10px 20px;
        flex-wrap: wrap;
    }
    .hero-section{
        display: none;
    }
    .main-nav{
        display: none;
    }
}

/* 游戏分类区域样式 */
.game-categories {
  position: relative;
  margin-bottom: 30px;
}

.game-category-section {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
}

.game-categories .container:last-child .game-category-section {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.category-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-info h3 {
    font-size: 20px;
    color: #333;
}

.category-info p {
    color: #888;
    font-size: 14px;
}

.view-more {
    display: flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #0056b3;
}

.arrow-right {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
}

/* 今日推荐样式 */
.today-recommended {
    padding: 30px 0;
}

.today-recommended h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.today-game-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 10px;
    position: relative;
}

.today-game-item:hover {
    transform: translateY(-5px);
}

.today-game-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.today-game-item h4 {
    padding: 10px;
    font-weight: 400;
    color: #333;
    text-align: center;
    margin: 0;
}
.today-game-item .info {
  position: absolute;
  bottom: 0;
  display: flex;
  left: 0;
  right: 0;
  background-color: #fff;
}
.today-game-item .info * {
  flex: 1;
}

.play-now {
    display: block;
    background: #007bff;
    color: #fff;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.play-now:hover {
    background: #0056b3;
}

@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category-header {
        gap: 10px;
        margin-bottom: 20px;
    }

    .category-info h3 {
        font-size: 20px;
    }

    .today-game-item img {
        height: 160px;
    }
    .category-info p {
        display: none;
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .game-grid .game-item h4 {
        font-size: 14px;
        padding: 8px;
    }
}

/* 游戏排行榜样式 */
.game-rankings {
    padding: 40px 0;
    background-color: #f8f9fa;
}

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

.ranking-column h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.ranking-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
    border-radius: 2px;
}

.ranking-list {
    list-style: none;
    margin: 0;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
}

.ranking-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ranking-list li:last-child {
    border-bottom: none;
}

.ranking-list li.active {
    transform: translateY(-2px);
    height: 110px;
}

.ranking-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b, #ff8787);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    z-index: 2;
}

.ranking-number span {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.game-info {
  z-index: -1;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  left: 45px;
  top: 10px;
  right: 0;
  background: #fff;
}
.ranking-list li.active .game-info {
  z-index: 2;
  visibility: visible;
  opacity: 1;
}
.game-info img {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
}
.game-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
}

.game-info p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #666;
}

.game-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
}
.game-stats div {
  color: #888;
}
.game-info .download {
  padding: 10px;
  text-align: center;
  border: none;
  cursor: pointer;
  background-color: transparent;
}

@media (max-width: 992px) {
    .game-rankings .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .game-rankings .container {
        grid-template-columns: 1fr;
    }

    .ranking-column {
        margin-bottom: 30px;
    }

    .ranking-column:last-child {
        margin-bottom: 0;
    }
}

/* 推荐分类样式 */
.recommend-links {
    padding: 40px 0;
    background-color: #fff;
}

.recommend-links h3 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    text-align: center;
    position: relative;
}

.recommend-links h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8787);
    border-radius: 2px;
}

.links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.link-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.link-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.link-item:hover .link-icon svg {
    stroke: #fff;
}

.link-name {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.link-item:hover .link-name {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .links-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 15px;
    }

    .link-item {
        padding: 15px;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .link-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .links-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 页脚样式 */
footer {
    margin-top: 30px;
    background: #f1f1f1;
    padding: 30px 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.slogan {
    text-align: center;
    font-size: 18px;
    margin: 20px 0;
}

.copyright {
    text-align: center;
    color: #666;
    margin: 20px 0;
}

.health-notice {
    text-align: center;
    color: #666;
    font-size: 14px;
    max-width: 800px;
    margin: 0 auto;
}

/* 移动端菜单按钮 */
.mobile-menu-button {
    display: none;
    position: absolute;
    width: 50px;
    height: 56px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    top: -58px;
    background: #fff;
    padding: 10px;
}

.mobile-menu-button span,
.mobile-menu-button span::before,
.mobile-menu-button span::after {
    display: block;
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #555;
    transition: all 0.3s ease;
}

.mobile-menu-button span {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-button span::before {
    content: '';
    top: -8px;
}

.mobile-menu-button span::after {
    content: '';
    bottom: -8px;
}

.menu-open .mobile-menu-button span {
    background-color: transparent;
}

.menu-open .mobile-menu-button span::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .mobile-menu-button span::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        z-index: 5;
    }
    .mobile-menu-button {
        display: block;
    }
    .top-header {
        padding: 0;
    }
    .top-header .container {
        gap: 10px;
    }

    .search-box {
        margin: 0 0;
    }
    .search-box .hot-tags {
        display: none;
    }
    .qr-code {
        display: none;
    }
    .main-nav .container {
        padding: 0;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        gap: 0;
        background: #fff;
        width: 100%;
    }

    .menu-open .nav-list {
        display: flex;
        position: absolute;
        z-index: 5;
    }

    .nav-list > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        text-align: left;
    }

    .submenu {
        position: static;
        display: none;
        box-shadow: none;
    }

    .submenu a {
        padding-left: 40px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
         text-align: left;
    }

    .has-submenu:hover .submenu {
        display: none;
    }

    .game-rankings .container {
        grid-template-columns: 1fr;
    }
    .topmenu{
        display: grid;
        gap: 2px;
        grid-template-columns: repeat(3,1fr);
        padding: 15px 0;
    }
    .topmenu>a{
        font-size: 15px;
        display: inline-block;
        background: #f6f6f6;
        padding: 5px;
        text-align: center;
    }
}

/* friend-links */
.friend-links {
  margin-top: 30px;
  padding: 20px 0;
}

.friend-links .title {
  color: #999;
}

.friend-links .item {
  padding: 0 5px;
  color: #666;
}

.crumbs {
  padding: 10px 0;
}
.crumbs span {
  color: #888;
}
.crumbs a::after {
  content: "";
  margin: 0 10px;
  transform: rotate(45deg);
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  border-color: #888;
  width: 8px;
  height: 8px;
  display: inline-block;
  cursor: default;
}

.page-detail {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.page-main {
    flex: 2;
    min-width: 0;
}

.page-aside {
    flex: 1;
    min-width: 300px;
}

/* 游戏基本信息 */
.game-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.game-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-game-info {
    flex-grow: 1;
}

.game-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.game-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.game-meta .game-views {
  font-size: 18px;
    margin-right: 20px;
    color: #007bff;
}
.game-publish {
  color: #888;
}
.game-desc {
  color: #ff9d10;
}

.detail-game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.rating-score {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b6b;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd700'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    background-size: contain;
}

.star.half {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='half' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='50%25' style='stop-color:%23ffd700'/%3E%3Cstop offset='50%25' style='stop-color:%23e9ecef'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23half)' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

.rating-count {
    font-size: 14px;
    color: #666;
}

/* 下载按钮组 */
.download-buttons {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn.android {
    background: #007bff;
    color: #fff;
}

.download-btn.ios {
    background: #000;
    color: #fff;
}

.download-btn.gamebox {
    background: #ff6b6b;
    color: #fff;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 游戏截图轮播 */
.game-screenshots {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.game-screenshots .swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.game-screenshots .swiper-button-next,
.game-screenshots .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.game-screenshots .swiper-button-next:after,
.game-screenshots .swiper-button-prev:after {
    font-size: 20px;
}

.game-screenshots .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.game-screenshots .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff6b6b;
}

/* 游戏介绍 */
.game-description {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.game-description h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

.description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* 游戏信息表格 */
.game-details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.game-details h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
}

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

.details-table tr {
    border-bottom: 1px solid #eee;
}

.details-table tr:last-child {
    border-bottom: none;
}

.details-table th,
.details-table td {
    padding: 12px 0;
    font-size: 14px;
}

.details-table th {
    color: #666;
    font-weight: normal;
    width: 100px;
    text-align: left;
}

.details-table td {
    color: #333;
}

.details-table td a {
    color: #ff6b6b;
    text-decoration: none;
}

.details-table td a:hover {
    text-decoration: underline;
}

/* 相关卡片 */
.related-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.related-card p {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-list li img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  vertical-align: middle;
}
.game-item{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.game-item .download-count {
  font-size: 14px;
  color: #888;
}
.game-item .btn {
  border-radius: 5px;
  font-size: 14px;
  background-color: #007bff;
  color: #fff;
  padding: 3px 10px;
  text-align: center;
}
.card-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #ff6b6b;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: #ff6b6b;
    color: #fff;
}
.related-card .articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.related-card .articles li {
  padding-left: 10px;
  border-left: 2px solid #eee;
}

.article-list {
    background-color: #fff;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  .list-header {
    font-size: 22px;
    margin: 0;
    padding: 10px 20px;
  }
  
  .list-description {
    padding: 10px 20px 20px;
  }
  .post-list {
    border-top: 1px solid #eee;
  }
  .tag-list {
    padding: 10px;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
  }
  .tag-list .tag {
    padding: 6px 10px;
  }
  
  .post-item {
    width: 100%;
    height: max-content;
    box-sizing: border-box;
    box-sizing: border-box;
    display: flex;
    padding: 30px 20px;
    border-bottom: 1px dashed #eee;
    transition: all 0.5s;
  }
  .post-item:last-child {
    border-bottom: none;
  }
  .post-item:hover {
    background-color: #f5f6f7;
  }
  
  .post-logo {
    width: 30%;
    height: 160px;
    position: relative;
  }
  
  .post-logo img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    vertical-align: middle;
  }
  
  .post-logo .tag {
    position: absolute;
    padding: 4px 6px;
    left: 10px;
    top: 10px;
    background: rgba(0, 0, 0, .5);
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
  }
  .post-logo .tag:hover {
    background-color: #4990E2;
  }
  .post-logo + .post-info {
  
    padding-left: 20px;
  }
  
  .post-info {
    flex: 1;
    position: relative;
  }
  
  .post-info .post-title {
    cursor: pointer;
    text-decoration: none;
    display: block;
    line-height: 24px;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 300;
    transition: all 0.4s;
  }
  .post-info .post-title::after {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      content: "";
  }
  .post-meta {
    color: #999;
    font-size: 14px;
  }
  
  .post-meta .tag::after {
    content: "/";
    display: inline-block;
    padding-left: 8px;
    padding-right: 6px;
    color: #999;
    cursor: default;
  }
  
  .post-meta .tag:last-child::after {
    display: none;
  }
  
  .post-info .post-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    color: #888;
    margin-top: 5px;
    margin-top: 20px;
    margin-bottom: 0px;
  }
  
  .post-detail {
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      padding: 20px;
      margin-bottom: 20px;
    }
    
    .post-detail .post-title {
      font-size: 22px;
      text-align: left;
      margin-top: 0;
      margin-bottom: 6px;
    }
    
    .post-detail .post-meta {
      text-align: left;
    }
    
    .post-detail .post-content {
      margin-top: 20px;
      /* font-weight: 300; */
      position: relative;
    }
    
    .post-detail .post-content img {
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
      display: block;
    }
  
    .post-detail .post-copyright {
      background: #f5f5f5;
      border: 1px solid #eee;
      border-radius: 4px;
      color: #86909c;
      font-size: 14px;
      line-height: 1.6;
      margin-top: 30px;
      padding: 15px;
    }
    
    .post-page {
      display: flex;
      gap: 10px 20px;
      margin-bottom: 20px;
      padding: 20px;
      background-color: #fff;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    .post-page .label {
      color: #999;
    }
    .post-page .post-page-item {
      flex: 1;
    }
    
    .post-page .post-page-item:hover {
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
      
.article-body code {
    font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
    font-size: .85em !important;
    color: #000;
    background-color: #f0f0f0;
    border-radius: 3px;
    padding: .2em 0
}

.article-body code::before,
.article-body code::after {
    letter-spacing: -0.2em;
    content: "\00a0"
}
.article-body pre code::after {
    display: none;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    position: relative;
    font-weight: 600;
    outline: none;
    overflow-wrap: break-word;
}

.article-body h2 {
    margin: 32px 0 16px;
    border-top: 1px solid #e2e2e3;
    padding-top: 24px;
    line-height: 32px;
    font-size: 24px;
}


.article-body h3 {
    margin: 24px 0 12px;
    line-height: 28px;
    font-size: 20px
}

.article-body h4 {
    margin: 16px 0 12px;
    line-height: 24px;
    font-size: 18px
}

.article-body .layui-code-h3 {
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid #eee;
    margin-top: 0;
    margin-bottom: 0;
}

.article-body p,
.article-body blockquote,
.article-body ul {
    margin: 10px 0;
}

.article-body blockquote {
    display: block;
    border-left: 6px solid #d0e5f2;
    padding: 5px 10px;
    margin: 10px 0;
    font-size: 100%;
    background-color: #f1f1f1;
    color: rgba(60, 60, 67, .78);
}

.article-body ul,
.article-body ol {
    padding-left: 1.25rem;
    margin: 16px 0;
}

.article-body li {
    list-style: inherit;
    display: list-item;
    text-align: -webkit-match-parent;
}

.article-body pre code {
    background: none;
}

.article-body table {
    width: 100%;
    background-color: #fff;
    color: #666
}

.article-body table tr {
    transition: all .3s;
    -webkit-transition: all .3s
}

.article-body table th {
    text-align: left;
    font-weight: 400
}

.article-body table tbody tr:hover,
.article-body table thead tr {
    background-color: #f6f6f7
}

.article-body table td,
.article-body table th {
    border-width: 1px;
    border-style: solid;
    border-color: #eee
}

.article-body table td,
.article-body table th {
    position: relative;
    padding: 8px 16px;
    min-height: 20px;
    line-height: 20px;
    font-size: 14px
}

.article-body tr:nth-child(2n) {
    background-color: #f5f6f7;
}

.article-body table img {
    max-width: 100px
}

@media (max-width: 992px) {
    .page-detail {
        flex-direction: column;
    }

    .page-aside {
        min-width: 100%;
    }

    .game-screenshots .swiper-slide img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .game-meta,
    .game-rating {
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
    }

    .game-screenshots .swiper-slide img {
        height: 200px;
    }

    .related-list li {
        flex-direction: column;
    }
    .related-list li img {
        width: 90px;
        height: 90px;
    }
    .aside-section .game-list img {
        width: 90px;
        height: 90px;
    }
    .related-card .articles {
        grid-template-columns: 1fr;
    }
    .post-page {
        flex-direction: column;
    }
    .post-info .post-desc {
        margin-top: 10px;
        -webkit-line-clamp: 2;
    }
}

.footlinks {display:none;}