/* style.css - 游戏中心共享样式 */

/* 基础重置 - 添加以下规则 */
html, body {
    overflow-x: hidden; /* 防止水平滚动 */
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #0f1419;
    color: #f0f0f0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #1a1f2e;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	width: 100%; /*---*/
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    color: #5d8af0;
    text-decoration: none;
    z-index: 101;
}

.logo i {
    color: #ff6b9d;
}

/* 汉堡菜单按钮 */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: #b0b7c3;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-box {
    background-color: #252b3a;
    border-radius: 20px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding-left: 8px;
    width: 180px;
}

.search-box input:focus {
    outline: none;
}

.login-btn, .btn {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-btn:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(93, 138, 240, 0.4);
}

/* 通用部分标题 */
.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: #ff6b9d;
}

/* ==================== 主页样式 ==================== */

/* 特别推荐区域 */
.featured-section {
    margin: 40px 0;
}

.featured-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.featured-game {
    background-color: #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.featured-game:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-game:hover .game-image {
    transform: scale(1.05);
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 22px;
    margin-bottom: 8px;
    color: #fff;
}

.game-genre {
    color: #b0b7c3;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-description {
    color: #8a94a6;
    font-size: 15px;
    line-height: 1.5;
}

.game-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 107, 157, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

/* 分类游戏区域 */
.category-section {
    margin: 60px 0 40px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-tab {
    background-color: #252b3a;
    color: #b0b7c3;
    padding: 10px 22px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    font-size: 16px;
}

.category-tab.view-all {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab:hover, .category-tab.active {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
}

.category-content {
   
    animation: fadeIn 0.5s;
}

.category-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 主页游戏网格 */
.home-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.home-game-card {
    background-color: #1a1f2e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.home-game-card.view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #252b3a, #1a1f2e);
    border: 2px dashed #3a4255;
}

.home-game-card.view-more a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #5d8af0;
}

.view-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.view-more-content i {
    font-size: 24px;
}

.view-more-content span {
    font-weight: 600;
    font-size: 16px;
}

.home-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.home-game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.home-game-card-info {
    padding: 15px;
}

.home-game-card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-game-card-meta {
    display: flex;
    justify-content: space-between;
    color: #8a94a6;
    font-size: 13px;
}

/* 最新游戏区域 */
.latest-section {
    margin: 60px 0 40px;
}

.latest-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.latest-game {
    background-color: #1a1f2e;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: transform 0.3s;
}

.latest-game:hover {
    transform: translateX(5px);
    background-color: #202636;
}

.latest-game img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.latest-game-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.latest-game-info p {
    color: #8a94a6;
    font-size: 14px;
    margin-bottom: 8px;
}

.new-badge {
    background-color: #5d8af0;
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    display: inline-block;
}

/* ==================== 分类页样式 ==================== */

/* 分类页面头部 */
.category-header {
    margin: 40px 0 30px;
}

.category-header .section-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.category-description {
    color: #8a94a6;
    font-size: 18px;
    line-height: 1.6;
}

/* 分类页游戏网格 */
.category-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-game-card {
    background-color: #1a1f2e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.category-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.category-game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-game-card-info {
    padding: 15px;
}

.category-game-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.category-game-card-meta {
    display: flex;
    justify-content: space-between;
    color: #8a94a6;
    font-size: 13px;
    margin-bottom: 10px;
}

.category-game-card-description {
    color: #8a94a6;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
}

.pagination a, .pagination-btn {
    background-color: #252b3a;
    color: #b0b7c3;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.pagination a:hover, .pagination-btn:hover, 
.pagination a.active, .pagination-btn.active {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
}

.pagination a.disabled, .pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination a.disabled:hover, .pagination-btn.disabled:hover {
    background-color: #252b3a;
    color: #b0b7c3;
}

.pagination-ellipsis {
    color: #8a94a6;
    padding: 0 10px;
}

/* 其他分类区域 */
.other-categories {
    margin: 60px 0 40px;
}

/* ==================== 详情页样式 ==================== */

/* 游戏头部区域 */
.game-header {
    margin: 0px 0 20px;	
}

.game-header-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.game-logo {
    flex-shrink: 0;
}

.game-logo img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-header-info {
    flex: 1;
}

.game-title-main {
    font-size: 42px;
    margin-bottom: 15px;
    color: #fff;
}

.game-rating-large {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-stars i {
    color: #ffd700;
    font-size: 24px;
}

.rating-value {
    font-size: 28px;
    font-weight: bold;
    margin-left: 10px;
}

.rating-count {
    color: #8a94a6;
    font-size: 16px;
}

.game-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b7c3;
}

.meta-item i {
    color: #5d8af0;
    width: 20px;
}

.store-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.store-btn.google-play {
    background: linear-gradient(135deg, #3cba54, #0f9d58);
    color: white;
}

.store-btn.apple-store {
    background: linear-gradient(135deg, #000, #333);
    color: white;
}

.store-btn i {
    font-size: 32px;
}

.store-btn div {
    display: flex;
    flex-direction: column;
}

.store-btn span {
    font-size: 12px;
}

.store-btn strong {
    font-size: 18px;
}

/* 广告占位符 */
.ad-placeholder {
    background: linear-gradient(135deg, #1a1f2e, #252b3a);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    border: 2px dashed #3a4255;
    color: #8a94a6;
}

.ad-placeholder i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
    color: #5d8af0;
}

.ad-placeholder h3 {
    margin-bottom: 10px;
    color: #fff;
}

/* 游戏描述区域 */
.game-description-section {
    margin: 40px 0;
}

.game-description-content {
    background-color: #1a1f2e;
    border-radius: 10px;
    padding: 30px;
    line-height: 1.8;
	font-size:18px;
}

.game-description-content p {
    margin-bottom: 20px;
    color: #b0b7c3;
}

.game-description-content h3 {
    color: #fff;
    margin: 25px 0 15px;
    font-size: 22px;
}

.game-description-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.game-description-content li {
    margin-bottom: 10px;
    color: #b0b7c3;
}

.system-requirements {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2a3140;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.requirement {
    background-color: #252b3a;
    padding: 20px;
    border-radius: 8px;
}

.requirement h4 {
    color: #5d8af0;
    margin-bottom: 10px;
}

.requirement p {
    color: #b0b7c3;
    font-size: 14px;
}

/* 游戏截图区域 */
.screenshots-section {
    margin: 40px 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.screenshot {
    background-color: #1a1f2e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.screenshot:hover {
    transform: scale(1.03);
}

.screenshot img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 商店区域 */
.store-section {
    margin: 40px 0;
}

.store-content {
    background-color: #1a1f2e;
    border-radius: 10px;
    padding: 30px;
}

.qrcode-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.qrcode {
    flex-shrink: 0;
}

.qrcode-placeholder {
    width: 200px;
    height: 200px;
    background-color: #252b3a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
	text-align:center;
    justify-content: center;
    color: #8a94a6;
}

.qrcode-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
}

.qrcode-info {
    flex: 1;
}

.qrcode-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.qrcode-info p {
    color: #b0b7c3;
    margin-bottom: 25px;
}

.store-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #252b3a;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s;
}

.store-link:hover {
    background-color: #2d3446;
}

.store-link i {
    font-size: 28px;
}

.store-link span {
    font-weight: 600;
}

/* 相关游戏区域 */
.related-games-section {
    margin: 40px 0;
}

/* 评论区域 */
.comments-section {
    margin: 40px 0;
}

.comments-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.rating-breakdown {
    background-color: #1a1f2e;
    border-radius: 10px;
    padding: 25px;
}

.rating-breakdown h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.breakdown-item span:first-child {
    width: 70px;
    color: #b0b7c3;
}

.breakdown-bar {
    flex: 1;
    height: 10px;
    background-color: #252b3a;
    border-radius: 5px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    border-radius: 5px;
}

.breakdown-item span:last-child {
    width: 40px;
    text-align: right;
    color: #b0b7c3;
}

.add-comment {
    background-color: #1a1f2e;
    border-radius: 10px;
    padding: 25px;
}

.add-comment h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-input span {
    color: #b0b7c3;
}

.star-rating {
    display: flex;
    gap: 5px;
}

.star-rating i {
    color: #ffd700;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.comment-form textarea {
    width: 100%;
    background-color: #252b3a;
    border: 1px solid #3a4255;
    border-radius: 8px;
    padding: 15px;
    color: #fff;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 20px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #5d8af0;
}

.btn.submit-review {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
    font-size: 16px;
}

.btn.submit-review:hover {
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    background-color: #1a1f2e;
    border-radius: 10px;
    padding: 25px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comment-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-user h4 {
    color: #fff;
    margin-bottom: 5px;
}

.comment-rating {
    display: flex;
    gap: 3px;
}

.comment-rating i {
    color: #ffd700;
    font-size: 14px;
}

.comment-date {
    color: #8a94a6;
    font-size: 14px;
}

.comment-content p {
    color: #b0b7c3;
    line-height: 1.6;
}

/* 页脚 */
footer {
    background-color: #151920;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #2a3140;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #5d8af0;
    margin-bottom: 15px;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #8a94a6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #5d8af0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #252b3a;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #5d8af0;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: #8a94a6;
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid #2a3140;
}

/* 响应式设计 - 移动端菜单 */
@media (max-width: 992px) {
    .featured-games {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .home-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .category-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .game-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .game-logo img {
        width: 150px;
        height: 150px;
    }
    
    .game-title-main {
        font-size: 36px;
    }
    
    .game-meta {
        justify-content: center;
    }
    
    .qrcode-container {
        flex-direction: column;
        text-align: center;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
    
    /* 汉堡菜单按钮固定定位 */
    .hamburger {
        display: flex;
        order: 2;
        position: relative;
        z-index: 101;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
    }
	
	/* 汉堡菜单按钮在菜单打开时的样式 */
    .hamburger.active i {
        color: #ff6b9d;
    }
    
    /* 确保Logo在移动端菜单打开时不会移动 */
    .logo {
        position: relative;
        z-index: 101;
        flex-grow: 1;
    }
    
    /* 导航菜单使用fixed定位，覆盖整个屏幕 */
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(26, 31, 46, 0.98);
        backdrop-filter: blur(10px);
        z-index: 100;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px;
        overflow-y: auto;
        transition: transform 0.3s ease-in-out;
        transform: translateX(100%);
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
        animation: slideIn 0.3s ease-in-out;
    }
	
	/* 当菜单打开时，防止body滚动 */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
	
	@keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    .nav-links {
        flex-direction: column;
        width: 90%;
        max-width: 400px;
        gap: 0;
        margin-bottom: 30px;
    }
    
    .nav-links a {
        padding: 18px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
        font-size: 18px;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .user-actions {
        width: 90%;
        max-width: 400px;
        flex-direction: column;
        gap: 20px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .login-btn {
        width: 100%;
        text-align: center;
    }
    
    /* 其他响应式样式 */
    .featured-games {
        grid-template-columns: 1fr;
    }
    
    .home-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .category-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .latest-games {
        grid-template-columns: 1fr;
    }
    
    .game-title-main {
        font-size: 30px;
    }
    
    .store-links {
        justify-content: center;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .comments-summary {
        grid-template-columns: 1fr;
    }
    
    .category-header .section-title {
        font-size: 30px;
    }
    
    .category-description {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .category-tabs {
        justify-content: center;
    }
    
    .home-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-game-grid {
        grid-template-columns: 1fr;
    }
    
    .game-logo img {
        width: 120px;
        height: 120px;
    }
    
    .game-title-main {
        font-size: 26px;
    }
    
    .rating-stars i {
        font-size: 20px;
    }
    
    .rating-value {
        font-size: 24px;
    }
    
    .store-btn {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }
    
    .store-btn i {
        font-size: 24px;
    }
    
    .store-btn strong {
        font-size: 16px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .pagination a, .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    margin: 20px 0 10px;
    padding: 15px 0;
}

.breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.breadcrumb li i.fa-chevron-right {
    font-size: 12px;
    color: #5d8af0;
    margin: 0 8px;
}

.breadcrumb a {
    color: #5d8af0;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #ff6b9d;
    text-decoration: underline;
}

.breadcrumb li.active {
    color: #b0b7c3;
    font-size: 14px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 - 面包屑导航 */
@media (max-width: 768px) {
    .breadcrumb {
        margin: 15px 0 5px;
        padding: 10px 0;
    }
    
    .breadcrumb a {
        font-size: 13px;
    }
    
    .breadcrumb li.active {
        font-size: 13px;
        max-width: 150px;
    }
    
    .breadcrumb li i.fa-chevron-right {
        margin: 0 5px;
    }
}

@media (max-width: 576px) {
    .breadcrumb a {
        font-size: 12px;
    }
    
    .breadcrumb li.active {
        font-size: 12px;
        max-width: 120px;
    }
    
    .breadcrumb li i.fa-chevron-right {
        font-size: 10px;
        margin: 0 3px;
    }
}

/* ==================== 在线游戏播放页样式 ==================== */

/* 游戏操作按钮 */
.game-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.play-btn {
    background: linear-gradient(90deg, #3cba54, #0f9d58);
    color: white;
}

.btn-secondary {
    background: #252b3a;
    color: white;
}

.btn-secondary:hover {
    background: #2d3446;
}

/* 游戏控制说明 */
.game-controls {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #2a3140;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: #252b3a;
    border-radius: 8px;
}

.control-key {
    background: linear-gradient(135deg, #5d8af0, #ff6b9d);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
    font-family: monospace;
}

/* 游戏播放器区域 */
.game-player-section {
    margin: 40px 0;
}

.player-container {
    background-color: #1a1f2e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #252b3a;
    border-bottom: 1px solid #3a4255;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-info span:first-child {
    font-weight: 600;
    color: #fff;
}

.player-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #8a94a6;
}

.player-stats i {
    margin-right: 5px;
}

.player-actions {
    display: flex;
    gap: 10px;
}

.player-btn {
    background-color: #1a1f2e;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.player-btn:hover {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    transform: scale(1.1);
}

/* 游戏iframe容器 */
.game-frame-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
}

.iframe-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 31, 46, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.fallback-content {
    text-align: center;
    padding: 30px;
    max-width: 500px;
}

.fallback-content i {
    font-size: 60px;
    color: #5d8af0;
    margin-bottom: 20px;
}

.fallback-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.fallback-content p {
    color: #8a94a6;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 游戏提示 */
.player-tips {
    padding: 20px;
    background-color: #252b3a;
    border-top: 1px solid #3a4255;
}

.player-tips h4 {
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-tips h4 i {
    color: #ffd700;
}

.player-tips ul {
    list-style: none;
    padding-left: 0;
}

.player-tips li {
    color: #b0b7c3;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.player-tips li:before {
    content: "•";
    color: #5d8af0;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* 响应式设计 - 游戏播放页 */
@media (max-width: 992px) {
    .game-frame-container {
        height: 500px;
    }
    
    .controls-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .game-frame-container {
        height: 400px;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .player-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .game-frame-container {
        height: 300px;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .control-item {
        justify-content: space-between;
    }
    
    .player-stats {
        flex-direction: column;
        gap: 5px;
    }
}

/* ==================== 搜索页面样式 ==================== */

/* 搜索头部 */
.search-header {
    margin: 30px 0;
}

.search-description {
    color: #8a94a6;
    font-size: 18px;
    max-width: 800px;
    line-height: 1.6;
}

/* 搜索表单 */
.search-form-section {
    margin: 40px 0;
}

.search-form-container {
    background-color: #1a1f2e;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #b0b7c3;
    font-weight: 600;
    font-size: 16px;
}

.form-group label i {
    color: #5d8af0;
    width: 20px;
}

.form-control {
    background-color: #252b3a;
    border: 1px solid #3a4255;
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #5d8af0;
}

/* 评分滑块 */
.rating-input-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    border-radius: 4px;
    outline: none;
}

.rating-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.rating-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.rating-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-stars-small {
    display: flex;
    gap: 3px;
}

.rating-stars-small i {
    font-size: 14px;
    color: #ffd700;
}

/* 排序容器 */
.sort-container {
    display: flex;
    gap: 10px;
}

.sort-order {
    display: flex;
    gap: 5px;
}

.order-btn {
    background-color: #252b3a;
    color: #b0b7c3;
    border: 1px solid #3a4255;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.order-btn:hover, .order-btn.active {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
    border-color: transparent;
}

/* 表单操作按钮 */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.search-btn {
    background: linear-gradient(90deg, #3cba54, #0f9d58);
    color: white;
    font-size: 16px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-btn {
    background-color: #252b3a;
    color: white;
    font-size: 16px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-btn:hover {
    background-color: #2d3446;
}

/* 搜索结果 */
.search-results-section {
    margin: 40px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.results-info span {
    color: #8a94a6;
    font-size: 16px;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    background-color: #252b3a;
    color: #b0b7c3;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover, .view-btn.active {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
}

/* 搜索结果网格 */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.search-results-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-results-grid.list-view .search-game-card {
    display: flex;
    flex-direction: row;
    height: 180px;
}

.search-results-grid.list-view .game-card-image {
    width: 250px;
    height: 100%;
}

.search-results-grid.list-view .game-card-image img {
    height: 100%;
    object-fit: cover;
}

.search-results-grid.list-view .game-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-results-grid.list-view .game-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-game-card {
    background-color: #1a1f2e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.game-card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.search-game-card:hover .game-card-image img {
    transform: scale(1.05);
}

.game-card-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 107, 157, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.game-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(93, 138, 240, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

.game-card-badge.online {
    background-color: rgba(60, 186, 84, 0.9);
}

.game-card-info {
    padding: 20px;
}

.game-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.game-card-meta {
    display: flex;
    justify-content: space-between;
    color: #8a94a6;
    font-size: 13px;
    margin-bottom: 12px;
}

.game-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #b0b7c3;
    font-size: 14px;
}

.game-price {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 14px;
}

.game-card-description {
    color: #8a94a6;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-small.play-btn {
    background: linear-gradient(90deg, #3cba54, #0f9d58);
    color: white;
}

/* 无结果消息 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 60px;
    color: #5d8af0;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.no-results p {
    color: #8a94a6;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 热门搜索 */
.popular-searches {
    margin: 60px 0 40px;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-tag {
    background-color: #252b3a;
    color: #b0b7c3;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.search-tag:hover {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    color: white;
    transform: translateY(-2px);
}

/* 响应式设计 - 搜索页面 */
@media (max-width: 992px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .search-results-grid.list-view .search-game-card {
        height: 160px;
    }
    
    .search-results-grid.list-view .game-card-image {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .search-form-container {
        padding: 20px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .sort-order {
        justify-content: flex-start;
    }
    
    .search-results-grid.list-view .search-game-card {
        flex-direction: column;
        height: auto;
    }
    
    .search-results-grid.list-view .game-card-image {
        width: 100%;
        height: 160px;
    }
    
    .search-results-grid.list-view .game-card-description {
        -webkit-line-clamp: 3;
    }
    
    .game-card-actions {
        flex-direction: column;
    }
    
    .game-card-actions .btn-small {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-tags {
        justify-content: center;
    }
}

/* ========== 核心：Font Awesome风格的二维码样式 ========== */
.style-item {
            text-align: center;
        }
/* 1. 基础Font Awesome风格（复刻fa-qrcode默认样式） */
.qr-icon-basic {
    width: 64px;  /* 与fa-6x图标大小一致 */
    height: 64px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));  /* 模拟图标阴影 */
    /* 调整颜色（覆盖二维码原本的黑色） */
    filter: invert(20%) sepia(100%) saturate(7000%) hue-rotate(180deg) drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* 2. 彩色风格（类似fa-qrcode text-primary） */
.qr-icon-primary {
    width: 64px;
    height: 64px;
    filter: invert(39%) sepia(98%) saturate(1341%) hue-rotate(204deg) brightness(97%) contrast(94%) drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* 3. 大号风格（类似fa-8x）+ 圆角 */
.qr-icon-large {
    width: 128px;
    height: 128px;
    border-radius: 8px;  /* Font Awesome图标圆角 */
    padding: 8px;
    background: #f8f9fa;  /* 浅背景色 */
    filter: invert(15%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(95%) contrast(86%);
}

/* 4. 悬停效果（类似fa-hover） */
.qr-icon-hover {
    width: 64px;
    height: 64px;
    filter: invert(20%) sepia(100%) saturate(7000%) hue-rotate(180deg);
    transition: all 0.2s ease;
}
.qr-icon-hover:hover {
    transform: scale(1.1);  /* 悬停放大 */
    filter: invert(15%) sepia(98%) saturate(7000%) hue-rotate(180deg) drop-shadow(0 4px 4px rgba(0,0,0,0.2));
}

/* Font Awesome原生图标样式（用于对比） */
.fa-qrcode {
    font-size: 64px;
    color: #212529;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}
.fa-qrcode.text-primary {
    color: #0d6efd;
}

/**/
/* 游戏iframe容器 */
.game-iframe-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 600px;
    margin: 30px 0;
    border-radius: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1f2e, #252b3a);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#iframeContainer{width:100%;height:100%;}
.game-iframe-wrapper iframe {
    max-width: 100%;
    border: none;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* 全屏按钮 */
.fullscreen-btn {
    background-color: #5d8af0;
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-left: auto;
}

.fullscreen-btn:hover {
    background-color: #4a7de4;
}

/* 加载覆盖层 
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 46, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 10px;
    transition: opacity 0.5s;
}

.loading-content {
    text-align: center;
    color: #5d8af0;
}

.loading-content i {
    font-size: 48px;
    margin-bottom: 20px;
}

.loading-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

/* 进度条 */
.progress-bar {
    width: 300px;
    height: 8px;
    background-color: #3a4255;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5d8af0, #4a7de4);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 18px;
    color: #fff;
    margin: 0;
}

/* 全屏模式 */
.game-iframe-wrapper:fullscreen {
    padding: 0;
    border-radius: 0;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game-iframe-wrapper:fullscreen iframe {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    border-radius: 0;
    object-fit: contain;
}

/* Webkit全屏支持 */
.game-iframe-wrapper:-webkit-full-screen {
    padding: 0;
    border-radius: 0;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.game-iframe-wrapper:-webkit-full-screen iframe {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    border-radius: 0;
    object-fit: contain;
}

/* 原有的加载动画样式（保留兼容性） */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #5d8af0;
    background: rgba(26, 31, 46, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    min-width: 300px;
}

.loading-spinner .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #3a4255;
    border-top: 6px solid #5d8af0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner i {
    font-size: 48px;
    margin-bottom: 15px;
}

.loading-spinner p {
    font-size: 18px;
    margin-bottom: 10px;
}


/* ==================== 详情页侧边栏布局样式 ==================== */

/* 主布局容器 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 20px;
}

/* 左侧主内容区 */
.detail-main {
    min-width: 0;
}

/* 右侧侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 侧边栏区块 */
.sidebar-section {
    background-color: #1a1f2e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-section.store-section {
    background: linear-gradient(135deg, #1a1f2e, #252b3a);
}

.sidebar-section.ad-section {
    padding: 15px;
}

/* 侧边栏标题 */
.sidebar-title {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.sidebar-title i {
    color: #ff6b9d;
}

/* 侧边栏二维码区域 */
.detail-sidebar .qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.detail-sidebar .qrcode-placeholder {
    width: 150px;
    height: 150px;
    background-color: #252b3a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8a94a6;
}

.detail-sidebar .qrcode-placeholder i {
    font-size: 50px;
    margin-bottom: 8px;
}

.detail-sidebar .qrcode-placeholder p {
    font-size: 12px;
}

.detail-sidebar .store-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.detail-sidebar .store-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background-color: #252b3a;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
}

.detail-sidebar .store-link:hover {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    transform: translateY(-2px);
}

.detail-sidebar .store-link i {
    font-size: 24px;
}

.detail-sidebar .store-link span {
    font-weight: 600;
    font-size: 14px;
}

/* 紧凑广告占位符 */
.ad-placeholder.compact {
    padding: 20px;
    margin: 0;
}

.ad-placeholder.compact i {
    font-size: 28px;
    margin-bottom: 10px;
}

.ad-placeholder.compact h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.ad-placeholder.compact p {
    font-size: 12px;
}

/* 侧边栏游戏列表 */
.sidebar-game-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-game-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    background-color: #252b3a;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
}

.sidebar-game-item:hover {
    background-color: #2d3446;
    transform: translateX(5px);
}

.sidebar-game-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-game-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-game-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-game-info .game-tag {
    font-size: 11px;
    color: #5d8af0;
    margin-bottom: 4px;
}

.sidebar-game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8a94a6;
}

.sidebar-game-meta .rating {
    color: #ffd700;
}

.sidebar-game-meta .rating i {
    font-size: 10px;
    margin-right: 3px;
}

.sidebar-game-meta .downloads {
    color: #5d8af0;
}

.sidebar-game-meta .downloads i {
    margin-right: 3px;
}

/* 调整主内容区各section的间距 */
.detail-main .screenshots-section,
.detail-main .game-description-section,
.detail-main .comments-section {
    margin: 0 0 25px 0;
}

.detail-main .section-title {
    font-size: 22px;
    margin-bottom: 18px;
}

/* 调整截图网格 */
.detail-main .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.detail-main .screenshot img {
    height: 140px;
}

/* 调整描述内容 */
.detail-main .game-description-content {
    padding: 25px;
}

.detail-main .game-description-content h3 {
    font-size: 18px;
    margin: 20px 0 12px;
}

.detail-main .game-description-content ul {
    margin-bottom: 15px;
}

.detail-main .game-description-content li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* 调整评论区域 */
.detail-main .comments-summary {
    gap: 20px;
    margin-bottom: 25px;
}

.detail-main .rating-breakdown,
.detail-main .add-comment {
    padding: 20px;
}

.detail-main .comments-list {
    gap: 15px;
}

.detail-main .comment {
    padding: 20px;
}

/* 响应式设计 - 详情页侧边栏布局 */
@media (max-width: 1200px) {
    .detail-layout {
        grid-template-columns: 1fr 300px;
        gap: 25px;
    }
    
    .detail-main .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .detail-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-section.ad-section {
        display: none;
    }
    
    .detail-main .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-sidebar {
        grid-template-columns: 1fr;
    }
    
    .detail-main .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-main .screenshot img {
        height: 120px;
    }
    
    .detail-main .comments-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .detail-main .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-main .screenshot img {
        height: 180px;
    }
    
    .detail-main .requirements-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 在线游戏播放页样式 ==================== */

/* 游戏操作按钮 */
.game-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.play-btn {
    background: linear-gradient(90deg, #3cba54, #0f9d58);
    color: white;
}

.btn-secondary {
    background: #252b3a;
    color: white;
}

.btn-secondary:hover {
    background: #2d3446;
}

/* 全宽按钮 */
.btn.full-width {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

/* 快速访问按钮 */
.quick-access-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 游戏控制说明 */
.game-controls {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #2a3140;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: #252b3a;
    border-radius: 8px;
}

.control-key {
    background: linear-gradient(135deg, #5d8af0, #ff6b9d);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
    font-family: monospace;
}

/* 游戏播放器区域 */
.game-player-section {
    margin: 0 0 25px 0;
}

.player-container {
    background-color: #1a1f2e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #252b3a;
    border-bottom: 1px solid #3a4255;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-info span:first-child {
    font-weight: 600;
    color: #fff;
}

.player-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #8a94a6;
}

.player-stats i {
    margin-right: 5px;
}

.player-actions {
    display: flex;
    gap: 10px;
}

.player-btn {
    background-color: #1a1f2e;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.player-btn:hover {
    background: linear-gradient(90deg, #5d8af0, #ff6b9d);
    transform: scale(1.1);
}

/* 游戏iframe容器 */
.game-frame-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #000;
}

.iframe-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 31, 46, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.fallback-content {
    text-align: center;
    padding: 30px;
    max-width: 500px;
}

.fallback-content i {
    font-size: 60px;
    color: #5d8af0;
    margin-bottom: 20px;
}

.fallback-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.fallback-content p {
    color: #8a94a6;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* 游戏提示 */
.player-tips {
    padding: 20px;
    background-color: #252b3a;
    border-top: 1px solid #3a4255;
}

.player-tips h4 {
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-tips h4 i {
    color: #ffd700;
}

.player-tips ul {
    list-style: none;
    padding-left: 0;
}

.player-tips li {
    color: #b0b7c3;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.player-tips li:before {
    content: "•";
    color: #5d8af0;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* 响应式设计 - 游戏播放页 */
@media (max-width: 992px) {
    .game-frame-container {
        height: 500px;
    }
    
    .controls-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .game-frame-container {
        height: 400px;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .player-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .game-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .game-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .game-frame-container {
        height: 300px;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .control-item {
        justify-content: space-between;
    }
    
    .player-stats {
        flex-direction: column;
        gap: 5px;
    }
}

/* 广告示例样式 */
.ad-example {
    margin: 20px 0;
    border: 1px dashed #3a4255;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.ad-example .ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8a94a6;
    font-size: 14px;
}

.ad-example .ad-content span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ad-example.leaderboard {
    width: 100%;
    max-width: 970px;
    height: 90px;
    background: linear-gradient(135deg, #1a1f2e, #252b3a);
}

.ad-example.medium-rectangle {
    width: 100%;
    max-width: 300px;
    height: 250px;
    background: linear-gradient(135deg, #1a1f2e, #252b3a);
    margin-left: auto;
    margin-right: auto;
}

/* 响应式广告调整 */
@media (max-width: 992px) {
    .ad-example.leaderboard {
        height: 80px;
    }
}

@media (max-width: 768px) {
    .ad-example.leaderboard {
        height: 60px;
    }
    
    .ad-example.medium-rectangle {
        max-width: 100%;
    }
}