/**
 * 游戏详情模块 (game-detail.css)
 * 合并了以下文件：
 * - game-detail.css: 原游戏详情样式
 * - modern-game-detail.css: 现代游戏详情样式
 * - game-modules.css: 游戏模块样式
 * - game-info-unified.css: 游戏信息统一样式
 * - share-modal.css: 分享模态框样式
 * - game-loading.css: 游戏加载样式
 * - lazy-loading.css: 懒加载样式
 */

/* ===== 游戏详情基本样式 ===== */
/* 游戏详情头部 */
.game-detail-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 游戏图标 */
.game-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-yellow);
}

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

/* 游戏信息 */
.game-info {
    flex-grow: 1;
}

/* 游戏来源 */
.game-source {
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--medium-text);
}

.source-label {
    font-weight: 600;
    margin-right: 5px;
}

.source-value {
    background-color: var(--light-border);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr))!important;
    gap: 25px;
}

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

.game-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--star-yellow);
    display: flex;
    align-items: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}



/* 游戏徽章样式 */
.game-badges {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.game-item .game-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

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

.game-meta-info span {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--medium-text);
}

.game-meta-info i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.game-category {
    background-color: var(--primary-blue);
    color: var(--white) !important;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    width: fit-content;
}

.game-category i {
    color: var(--white) !important;
}
.game-rating {
    position: static;
    color: var(--primary-blue) !important;
    width: fit-content;
    padding: 4px 0;
    border-radius: var(--radius-pill);
    margin-left: auto; /* 这会将评分推到右侧 */
    display: flex;     /* 添加这行 */
    align-items: center; /* 添加这行，使子元素垂直居中 */
}
.game-rating span {
    margin: 0 10px;  /* 修改为只有水平方向的边距 */
    max-width: 25px;
    max-height: 25px;
}
.game-item-image-wrapper .game-rating {
    position: absolute;
}

.game-rating i {
    color: var(--star-yellow) !important;
}

.game-meta-info .game-rating {
    position: static;
}

.game-meta-info .game-rating span,
.game-meta-info .game-category span {
    color: var(--primary-blue);
}

/* 游戏操作按钮 */
.game-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.action-button {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--radius-pill);
    padding: 8px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.action-button:hover {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    transform: translateY(-2px);
}

.action-button i {
    margin-right: 5px;
}

/* 瀑布流布局容器 */
.waterfall-container {
    width: 100%; /* 设置为100%宽度 */
    grid-column: 1 / -1; /* 横跨所有列 */
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
}

/* 游戏内容区域 */
.game-detail-content {
    display: grid;
    grid-template-columns: 1fr 18%;
    gap: 15px;
    margin-bottom: 30px;
    align-items: start;
    min-height: calc(100vh - 250px);
}
.game-play-side{
    display: grid;
    gap: 15px;
    height: 100%;
}
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    position: static; /* 改为静态定位，不再浮动 */
}

@media (max-width: 992px) {
    .game-detail-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .game-play-side,
    .game-sidebar {
        height: auto;
    }
    .game-sidebar {
        position: static;
    }
}
.game-play-area {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 350px);
}

#playframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

#playframe.in-page-fullscreen{
    width: 1px;
    min-width: 100%;
    height: 1px;
    min-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}


/* 游戏控制按钮组 */
.game-controls {
    bottom: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
    opacity: 0.8;
    padding: 10px;
}

.game-controls:hover {
    opacity: 1;
}
.control-buttons-group {
    display: flex;
}
.control-button {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: none;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.control-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-button i {
    font-size: 1.1rem;
}

/* 游戏侧边栏 */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    position: static; /* 改为静态定位，不再浮动 */
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 侧边栏卡片标题 */
.sidebar-card h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--dark-text);
}

.rating-big {
    text-align: center;
    margin-bottom: 15px;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.rating-stars {
    color: var(--star-yellow);
    font-size: 1.2rem;
    margin-top: 5px;
}

/* .rating-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.bar-label {
    min-width: 35px;
    color: var(--medium-text);
}

.bar-bg {
    flex: 1;
    height: 6px;
    background: var(--light-bg);
    border-radius: var(--radius-xs);
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary-blue);
    border-radius: var(--radius-xs);
}*/

/* 标签卡片 */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.game-tag {
    background: var(--primary-yellow);
    color: var(--medium-text);
    padding: 3px 6px;
    border-radius: var(--radius-badge);
    font-size: 0.7rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* 统计卡片 */
.game-stats, .rating-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}



.stat-item {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    color: var(--medium-text);
    font-size: 0.8rem;
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.stat-item i {
    color: var(--primary-blue);
    font-size: 0.85rem;
}

.game-meta-info .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--medium-text);
    font-size: 0.9rem;
    min-width: 100px;
    width: auto;
    justify-content: start;
    height: 30px;
}
.game-meta-info .stat-item i {
    color: var(--primary-blue);
    font-size: 0.85rem;
}

/* 广告卡片 */
.promo-card.vertical-ad {
    padding: 0;
    overflow: hidden;
}

.promo-card.vertical-ad .promo-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 游戏简评、特色和热门评论 */
.game-review-container,
.game-features-container,
.game-comments-container,
.game-target-audience-container {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.game-review-container h2,
.game-features-container h2,
.game-comments-container h2,
.game-target-audience-container h2 {
    color: var(--dark-text);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.review-content,
.features-content,
.comments-content,
.target-audience-content {
    color: var(--medium-text);
    line-height: 1.6;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    background: var(--light-bg);
    border-radius: var(--radius-badge);
    padding: 15px;
    position: relative;
}

.comment-item i.fa-quote-left {
    color: var(--primary-blue);
    font-size: 1rem;
    margin-right: 10px;
    opacity: 0.6;
}

.comment-item p {
    margin: 0;
    color: var(--medium-text);
    font-style: italic;
}

.no-content {
    color: var(--light-text);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* 游戏介绍和操作说明 */
.game-description-container {
    border-radius: var(--radius-card);
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    margin-bottom: 20px;
}
.description-pane {
    font-size: 15px;
    color: #5f5f5f;
}

.tabs {
    display: flex;
    padding-top: 20px;
}

.tab-button {
    padding: 12px 25px;
    font-weight: 600;
    color: var(--medium-text);
    border-radius: var(--radius-button);
    margin-right: 15px;
    background: linear-gradient(to right, var(--light-bg), #f8f9fa);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.tab-button.active {
    color: var(--white);
    background: linear-gradient(to right, var(--primary-blue), #4a90e2);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.2);
    border-bottom: 1px solid #004493c7;
}

.tab-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    display: flex;
    line-height: 1.3;
    padding: 15px 0;
    font-style: italic;
    font-size: 15px;
    color:#5d5d5d;
}


/* 游戏截图 */
.game-screenshots {
    margin-top: 30px;
}

.game-screenshots h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.screenshot {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.screenshot img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition:transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.screenshot:hover img {
    transform: scale(1.05);
}

/* 图片预览模态框 */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-modal.active {
    display: flex;
    opacity: 1;
}

.preview-image {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    object-fit: contain;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-preview-modal.active .preview-image {
    transform: scale(1);
    opacity: 1;
}

.close-preview {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-preview-modal.active .close-preview {
    opacity: 1;
    transform: translateY(0);
}

/* 推荐游戏 */
.recommended-games {
    margin-bottom: 20px;
}

.recommended-games h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}


.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-text);
}


/* 关灯模式 */
body.lights-off {
    background: #111;
}
body.lights-off h3{
    color: #3c4685;
}
body.lights-off .game-detail-page{
    background-color: #000;
}

body.lights-off .site-header,
body.lights-off .site-footer {
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

body.lights-off .site-header:hover,
body.lights-off .site-footer:hover {
    opacity: 1;
}

body.lights-off .game-detail-section {
    background: #111;
    color: #eee;
}

body.lights-off .game-title,
body.lights-off h2 {
    color: #8e8e8e;
}
body.lights-off .comment-item {
    background: #363636;
}
body.lights-off .game-play-area {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}
body.lights-off img{
    /*遮罩变暗*/
    filter: brightness(0.5);
}

/* 关灯模式下的背景和卡片样式 */
body.lights-off::before {
    opacity: 0.1;
}

body.lights-off .promo-card,
body.lights-off .sidebar-card,
body.lights-off .info-card,
body.lights-off .game-description-container {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
}

body.lights-off .game-meta-info span {
    color: #767474;
}

body.lights-off .game-category,
body.lights-off .game-rating {
    background-color: #333;
}

body.lights-off .game-tag {
    background-color: #333;
    color: #ccc;
    border: 1px solid #444;
}

body.lights-off .game-tag:hover {
    background-color: #444;
    color: #fff;
}

body.lights-off .stat-item {
    color: #ccc;
}

body.lights-off .stat-item i {
    color: #888;
}

body.lights-off .tab-button {
    background: linear-gradient(to right, #333, #222);
    color: #ccc;
    border: 1px solid #444;
}

body.lights-off .tab-button.active {
    background: linear-gradient(to right, #444, #333);
    color: #fff;
    border-color: #555;
}

body.lights-off .tab-pane {
    background-color: #1a1a1a;
    border-color: #333;
    color: #ccc;
}

body.lights-off .screenshot {
    border: 1px solid #333;
}

body.lights-off .screenshot:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.lights-off .action-button {
    background-color: #333;
    border-color: #444;
    color: #ccc;
}

body.lights-off .action-button:hover {
    background-color: #444;
    border-color: #555;
    color: #fff;
}

body.lights-off .game-controls {
    background-color: rgba(0, 0, 0, 0.7);
}

body.lights-off .control-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 关灯模式下的模态框样式 */
body.lights-off .share-modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

body.lights-off .close-modal {
    color: #ccc;
}

body.lights-off .share-button {
    background-color: #333;
    color: #ccc;
    border: 1px solid #444;
}

body.lights-off .share-button:hover {
    background-color: #444;
    color: #fff;
}

/* 关灯模式下的评分和标签样式 */
body.lights-off .rating-card,
body.lights-off .tags-card,
body.lights-off .stats-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

body.lights-off .rating-number {
    color: #fff;
}

body.lights-off .rating-stars {
    color: #ffd700;
}

/* 关灯模式下的图片预览样式 */
body.lights-off .image-preview-modal {
    background-color: rgba(0, 0, 0, 0.95);
}

body.lights-off .close-preview {
    color: #fff;
}

/* 关灯模式下的滚动条样式 */
body.lights-off ::-webkit-scrollbar {
    width: 8px;
}

body.lights-off ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

body.lights-off ::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

body.lights-off ::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .game-detail-content {
        grid-template-columns: 1fr 20%;
        /* min-height: calc(100vh - 250px); */
        /* max-height: 1200px; */
    }
    .game-play-area {
        min-height: auto;
    }
}

@media (max-width: 992px) {
    .game-detail-content {
        grid-template-columns: 1fr;
        /* min-height: auto; */
        /* max-height: 1200px; */
    }
    .game-play-area {
        min-height: calc(100vh - 200px);;
    }

    .game-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sidebar-card {
        min-width: 250px;
        padding: 20px 10px;
    }

    .meta-info-card {
        order: -1;
        width: 100%;
        flex-basis: 100%;
    }

    .game-meta-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* .promo-card.vertical-ad {
        width: 100%;
        min-height: 120px;
        max-height: 200px;
    } */
}

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

    .game-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .sidebar-card {
        padding: 20px 15px;
    }

    .meta-info-card {
        order: -1;
        width: 100%;
        flex-basis: 100%;
        grid-column: 1 / -1;
    }

    .game-meta-info {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }

    .game-meta-info .stat-item {
        width: auto;
        margin-bottom: 0;
    }

    .game-play-area {
        min-height: calc(100vh - 100px);;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-meta-info {
        gap: 10px;
    }

    .screenshots-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .screenshot img {
        height: 120px;
    }

    .close-preview {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .preview-image {
        max-width: 95%;
        max-height: 85vh;
    }

    /* .game-controls {
        bottom: 10px;
        right: 10px;
        padding: 6px;
    } */

    .control-button {
        width: 32px;
        height: 32px;
    }

    .control-button i {
        font-size: 1rem;
    }

    .sidebar-card {
        min-width: 100%;
        padding: 20px 10px;
    }

    .stat-item {
        font-size: 0.75rem;
    }

    .game-tag {
        font-size: 0.75rem;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .game-detail-content {
        /* min-height: calc(100vh - 150px); */
        /* max-height: 500px; */
    }

    .game-play-area {
        min-height: calc(100vh - 100px);;
    }

    .game-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .tab-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .screenshots-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .screenshot img {
        height: 100px;
    }
}

/* 网页内全屏样式 */
body.in-page-fullscreen {
    position: relative;
    overflow: hidden !important; /* 强制隐藏滚动条 */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.game-play-area.in-page-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* 使用视口宽度单位 */
    height: 100vh; /* 使用视口高度单位 */
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0; /* 移除圆角 */
    overflow: hidden; /* 确保内容不溢出 */
}

.game-play-area.in-page-fullscreen iframe {
    /* width: 100%; */
    height: 100%;
    max-height: none; /* 移除最大高度限制 */
    border: none;
    margin: 0;
    padding: 0;
}

.temp-hidden {
    display: none !important;
}

/* 确保控制按钮在网页内全屏模式下仍然可见 */
.game-play-area.in-page-fullscreen .game-controls {
    position: static;
    z-index: 10000;
}
/**
 * 现代化游戏详情页样式
 * 实现瀑布流布局和更加美观的界面
 */

/* 基础布局调整 */
.game-detail-page {
    padding-top: 10px;
}

/* 游戏主要内容区域 */
.game-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .waterfall-container {
        column-count: 3;
    }
}

@media (min-width: 1200px) {
    .waterfall-container {
        column-count: 3;
    }
}

/* 卡片基础样式 */
.info-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: fit-content;
    border-bottom: 4px solid transparent;
    /* overflow: hidden; */
    /* 瀑布流关键样式：确保每个卡片占据整个列宽并在新列中显示 */
    /* display: inline-block; */
    width: 100%;
    margin-bottom: 20px;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    
    /* 添加Safari前缀 */
    /* -webkit-column-break-inside: avoid;
    break-inside: avoid; */
    
    /* 添加transform前缀 */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    
    /* 添加backface-visibility前缀 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    /* 添加动画前缀 */
    -webkit-animation: fadeIn 0.5s ease forwards;
    animation: fadeIn 0.5s ease forwards;
}

.info-card:hover {
    transform: translateY(-5px);
    
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); */
}

/* 卡片标题样式 */
.info-card h2 {
    font-size: 1.1rem;
    /* margin-bottom: 15px; */
    color: #333;
    position: relative;
    padding-bottom: 5px;
}

.info-card h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4a6cf7, #6e8eff);
    border-radius: 3px;
}

.maple-game-detail {
    margin: 20px 0;
}
.maple-game-detail h2 {
    font-size: 1.5em;
    margin: 1.5em 0 0.5em;
    color: #333;
}
.features-list, .audience-list, .comments-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.features-list li, .audience-list li, .comments-list li {
    padding: 10px 15px;
    margin: 5px 0;
    background: #f5f5f5;
    border-radius: 4px;
}
.intro-content, .review-content {
    line-height: 1.6;
    color: #444;
}

/* 不同卡片类型的顶部边框颜色 */
.description-card:hover {
    box-shadow: 4px 4px 0 3px var(--primary-color);
    /* border-bottom-color: #4a6cf7;  */
    /* 蓝色 */
}

.review-card:hover {
    box-shadow: 4px 4px 0 3px #f7774a;
}

.features-card:hover {
    box-shadow: 4px 4px 0 3px #4af77b;
}

.audience-card:hover {
    box-shadow: 4px 4px 0 3px #f74a9e;
}

.comments-card:hover {
    box-shadow: 4px 4px 0 3px #f7d44a;
}

.instructions-card:hover {
    box-shadow: 4px 4px 0 3px #7b4af7;
}

.related-games-card:hover {
    box-shadow: 4px 4px 0 3px #4acef7;
}

/* 游戏截图卡片样式 */
.screenshots-card:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 3px #9e4af7;
}

/* 卡片内容样式优化 */
.info-card p {
    color: #555;
    line-height: 1.6;
}

/* 游戏标签样式优化 */
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.game-tag {
    background: #f0f3ff;
    color: #4a6cf7;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.game-tag:hover {
    background: #4a6cf7;
    color: #fff;
    transform: translateY(-2px);
}

/* 评论项样式 */
.comment-item {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.comment-item i.fa-quote-left {
    color: #dde4ff;
    font-size: 1.5rem;
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.5;
}

.comment-item p {
    position: relative;
    z-index: 1;
    padding-left: 20px;
}

/* 游戏特色列表样式 */
.features-content ul {
    list-style: none;
    padding-left: 5px;
}

.features-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.5;
    background: none;
}

.features-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4af77b;
    font-weight: bold;
}

/* 适合人群样式 */
.target-audience-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.audience-badge {
    background: #fff0f8;
    color: #f74a9e;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.audience-badge i {
    font-size: 0.8rem;
}


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

/* 相关游戏网格布局 - 改为固定2列 */
.mini-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.mini-game-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mini-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.mini-game-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.mini-game-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.mini-game-title {
    padding: 8px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .waterfall-container {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }

    .info-card {
        padding: 15px;
    }

    .info-card h2 {
        font-size: 1.2rem;
    }

    .mini-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.screenshot {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.screenshot:hover img {
    transform: scale(1.05);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 添加动画关键帧前缀 */
@-webkit-keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-card {
    animation: fadeIn 0.5s ease forwards;
}

/* 为不同卡片设置不同的动画延迟，创造错落感 */
.description-card { animation-delay: 0.1s; }
.review-card { animation-delay: 0.2s; }
.features-card { animation-delay: 0.3s; }
.audience-card { animation-delay: 0.4s; }
.comments-card { animation-delay: 0.5s; }/**
 * 游戏详情页模块样式
 * 为游戏特色、游戏评测、目标受众、操作说明四个模块提供特色样式
 */

/* 通用卡片头部样式 */
.card-header-with-icon {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.card-icon-wrapper {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-wrapper i {
    font-size: 1.2rem;
    color: #fff;
}

/* 游戏特色模块 */
.features-icon {
    background: linear-gradient(135deg, #4af77b, #2ecc71);
    box-shadow: 0 4px 10px rgba(74, 247, 123, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px!important;
    margin-top: 10px;
}

.feature-item {
    background: rgba(74, 247, 123, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: rgba(74, 247, 123, 0.15);
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4af77b, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 0.9rem;
    color: #fff;
}

.feature-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 2;
}

/* 游戏评测模块 */
.review-icon {
    background: linear-gradient(135deg, #f7774a, #e74c3c);
    box-shadow: 0 4px 10px rgba(247, 119, 74, 0.3);
}

.review-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-quote {
    position: relative;
    background: rgba(247, 119, 74, 0.1);
    border-radius: 10px;
    padding: 25px;
}

.quote-icon {
    color: rgba(247, 119, 74, 0.2);
    font-size: 1.5rem;
    position: absolute;
}

.fa-quote-left {
    top: 10px;
    left: 10px;
}

.fa-quote-right {
    bottom: 10px;
    right: 10px;
}

.review-text {
    position: relative;
    z-index: 1;
    color: #333;
    line-height: 1.6;
}

.review-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

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

.rating-stars i {
    color: #f7bb4a;
    font-size: 1.2rem;
}

.rating-score {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.review-highlights {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.highlight-item {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-item.positive {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.highlight-item.negative {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.highlight-item i {
    font-size: 1.1rem;
}

/* 目标受众模块 */
.audience-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3);
}

.audience-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.audience-badge {
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.audience-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.audience-badge i {
    font-size: 0.9rem;
}

.audience-badge span {
    font-size: 0.9rem;
    font-weight: 500;
}

.audience-info {
    margin-top: 20px;
    padding: 15px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 10px;
}

.audience-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8e44ad;
}

.audience-tip i {
    font-size: 1.1rem;
}

/* 操作说明模块 */
.instructions-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* 描述模块图标 */
.description-icon {
    background: linear-gradient(135deg, #4a6cf7, #3a56d4);
    box-shadow: 0 4px 10px rgba(74, 108, 247, 0.3);
}

/* 截图模块图标 */
.screenshots-icon {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.3);
}

/* 评论模块图标 */
.comments-icon {
    background: linear-gradient(135deg, #f7d44a, #f1c40f);
    box-shadow: 0 4px 10px rgba(247, 212, 74, 0.3);
}

/* 相关游戏模块图标 */
.related-games-icon {
    background: linear-gradient(135deg, #4acef7, #3498db);
    box-shadow: 0 4px 10px rgba(74, 206, 247, 0.3);
}


.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.step-item {
    margin-bottom: 15px;
    counter-increment: step-counter;
}

.step-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.step-content:before {
    content: counter(step-counter);
    position: absolute;
    left: -10px;
    top: -10px;
    width: 25px;
    height: 25px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.step-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon i {
    font-size: 0.9rem;
    color: #fff;
}

.step-text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

.single-instruction {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    padding: 20px;
}

.instruction-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instruction-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.controls-legend {
    margin-top: 25px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px dashed rgba(52, 152, 219, 0.3);
}

.legend-title {
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-key {
    background: #3498db;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    min-width: 30px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.control-action {
    font-size: 0.9rem;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-grid,
    .control-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .review-highlights {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .control-items {
        grid-template-columns: 1fr;
    }

    .card-header-with-icon {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .step-content {
        flex-direction: column;
    }
    .waterfall-container {
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
}

/* 暗色模式适配 */
body.lights-off .feature-item,
body.lights-off .review-quote,
body.lights-off .audience-info,
body.lights-off .step-content,
body.lights-off .single-instruction,
body.lights-off .controls-legend {
    background-color: rgba(255, 255, 255, 0.05);
}

body.lights-off .feature-text,
body.lights-off .review-text,
body.lights-off .step-text,
body.lights-off .control-action {
    color: #ccc;
}

body.lights-off .audience-badge {
    opacity: 0.8;
}

/* 控制类型图标容器 */
.control-types-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0 0;

}

.control-types-title {
    width: 100%;
    margin-bottom: 10px;
    font-weight: bold;
    color: #3498db;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-types-title:before {
    content: "\f11b"; /* FontAwesome gamepad icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.control-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(52, 152, 219, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.control-type i {
    font-size: 1.2rem;
}

.control-type span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* 特定控制类型的颜色 */
.control-type.keyboard {
    background: rgba(52, 152, 219, 0.1);
}

.control-type.keyboard i {
    color: #3498db;
}

.control-type.mouse {
    background: rgba(46, 204, 113, 0.1);
}

.control-type.mouse i {
    color: #2ecc71;
}

.control-type.touch {
    background: rgba(231, 76, 60, 0.1);
}

.control-type.touch i {
    color: #e74c3c;
}

.control-type.gamepad {
    background: rgba(155, 89, 182, 0.1);
}

.control-type.gamepad i {
    color: #9b59b6;
}

.control-type.generic {
    background: rgba(241, 196, 15, 0.1);
}

.control-type.generic i {
    color: #f1c40f;
}

/* 暗色模式适配 */
body.lights-off .control-type {
    background-color: rgba(255, 255, 255, 0.05);
}

body.lights-off .control-type span {
    color: #ccc;
}

body.lights-off .control-types-container {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}
/**
 * 游戏信息统一卡片样式
 * 将游戏信息、评分和标签融合为一个统一的模块
 */

/* 游戏信息统一卡片 */
.game-info-unified-card {
    /* background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); */
    /* border-bottom: 4px solid #4a6cf7; */
}

.game-info-unified-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 0 3px var(--primary-color);
}

/* 游戏信息头部 */
.game-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.game-info-header h3 {
    font-size: 1rem;
    margin: 0;
    color: #333;
    font-weight: 600;
}

.game-rating-display {
    display: flex;
    align-items: center;
}

/* 游戏元信息样式优化 */
.game-meta-info {
    display: flex;
    flex-direction: column;
    /* gap: 8px; */
    margin-bottom: 15px;
}

.game-meta-info .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.85rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.game-meta-info .stat-item i {
    color: #4a6cf7;
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

/* 游戏分类样式 */
.game-category {
    color: #4a6cf7 !important;
    font-weight: 500;
    background: transparent !important;
}

.game-category i {
    color: #4a6cf7 !important;
}

/* 游戏标签部分 */
.game-tags-section {
    margin-top: 12px;
}

.game-tags-section h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-tag {
    background: #f0f3ff;
    color: #4a6cf7;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.game-tag:hover {
    background: #4a6cf7;
    color: #fff;
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .game-rating-display {
        align-self: flex-start;
    }

    .game-meta-info {
        gap: 8px;
    }

    .game-meta-info .stat-item {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .game-tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* 暗黑模式适配 */
body.lights-off .game-info-unified-card {
    background: #1a1a1a;
}

body.lights-off .game-info-header {
    border-bottom-color: #333;
}

body.lights-off .game-info-header h3,
body.lights-off .game-tags-section h4 {
    color: #ccc;
}

body.lights-off .game-meta-info .stat-item {
    color: #aaa;
    background: transparent;
}

body.lights-off .game-meta-info .stat-item i,
body.lights-off .game-category i {
    color: #5a7cf7;
}

body.lights-off .game-tag {
    background: #2a2a2a;
    color: #5a7cf7;
    border: 1px solid #444;
}
/**
 * 分享弹窗样式
 * 现代化、响应式设计
 */

/* 分享弹窗基础样式 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.share-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 分享弹窗内容区域 */
.share-modal-content {
    background-color: #fff;
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.9);
    transition:transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

/* 分享弹窗头部 */
.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #4a6cf7, #6e8eff);
    color: white;
}

.share-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-modal {
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    opacity: 1;
}

/* 分享按钮容器 */
.share-buttons {
    padding: 20px 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* 分享区域 */
.share-section {
    margin-bottom: 20px;
}

.share-section h4 {
    font-size: 1rem;
    color: #666;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* 分享按钮网格 */
.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

/* 分享按钮样式 */
.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 12px;
    background-color: #f5f7fa;
    color: #333;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-button i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.share-button span {
    font-size: 0.85rem;
    text-align: center;
}

/* 平台特定颜色 */
/* 中国社交平台 */
.share-button[data-platform="weibo"] {
    color: #e6162d;
}

.share-button[data-platform="weibo"]:hover {
    background-color: #ffeeee;
}

.share-button[data-platform="wechat"] {
    color: #07c160;
}

.share-button[data-platform="wechat"]:hover {
    background-color: #e6f7ef;
}

.share-button[data-platform="qq"] {
    color: #12b7f5;
}

.share-button[data-platform="qq"]:hover {
    background-color: #e6f5fc;
}

/* 主流社交平台 */
.share-button[data-platform="facebook"] {
    color: #1877f2;
}

.share-button[data-platform="facebook"]:hover {
    background-color: #e6f0fe;
}

.share-button[data-platform="twitter"] {
    color: #1da1f2;
}

.share-button[data-platform="twitter"]:hover {
    background-color: #e6f5fe;
}

.share-button[data-platform="instagram"] {
    color: #c32aa3;
}

.share-button[data-platform="instagram"]:hover {
    background-color: #f9e9f6;
}

.share-button[data-platform="whatsapp"] {
    color: #25d366;
}

.share-button[data-platform="whatsapp"]:hover {
    background-color: #e9f9ef;
}

.share-button[data-platform="telegram"] {
    color: #0088cc;
}

.share-button[data-platform="telegram"]:hover {
    background-color: #e6f4fa;
}

.share-button[data-platform="linkedin"] {
    color: #0077b5;
}

.share-button[data-platform="linkedin"]:hover {
    background-color: #e6f3f9;
}

.share-button[data-platform="reddit"] {
    color: #ff4500;
}

.share-button[data-platform="reddit"]:hover {
    background-color: #fff0e6;
}

.share-button[data-platform="pinterest"] {
    color: #e60023;
}

.share-button[data-platform="pinterest"]:hover {
    background-color: #ffe6ea;
}

/* 游戏社区平台 */
.share-button[data-platform="discord"] {
    color: #5865f2;
}

.share-button[data-platform="discord"]:hover {
    background-color: #eff1fe;
}

.share-button[data-platform="twitch"] {
    color: #9146ff;
}

.share-button[data-platform="twitch"]:hover {
    background-color: #f5eeff;
}

.share-button[data-platform="steam"] {
    color: #171a21;
}

.share-button[data-platform="steam"]:hover {
    background-color: #e8e9ea;
}

.share-button[data-platform="youtube"] {
    color: #ff0000;
}

.share-button[data-platform="youtube"]:hover {
    background-color: #ffe6e6;
}

/* 其他分享选项 */
.share-button[data-platform="link"] {
    color: #6c5ce7;
}

.share-button[data-platform="link"]:hover {
    background-color: #f0eefe;
}

.share-button[data-platform="email"] {
    color: #00b894;
}

.share-button[data-platform="email"]:hover {
    background-color: #e6f8f4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .share-buttons-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }

    .share-button {
        padding: 10px 5px;
    }

    .share-button i {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

    .share-button span {
        font-size: 0.75rem;
    }

    .share-modal-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .share-modal-content {
        width: 95%;
    }

    .share-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .share-modal-header {
        padding: 15px 20px;
    }

    .share-buttons {
        padding: 15px 20px;
    }
}
/**
 * 游戏加载样式
 */

.game-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(245, 245, 245, 0.9);
    border-radius: 8px;
    text-align: center;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #f44336;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.game-loading-placeholder p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* 隐藏加载按钮，因为我们现在自动加载 */
.load-game-button {
    display: none;
}

.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* 游戏容器默认已加载状态 */
.game-container.loaded {
    opacity: 1;
}

/* 游戏加载中的动画效果 */
.game-loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* 游戏加载完成后的效果 */
.game-loaded {
    opacity: 1;
    pointer-events: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-loading-placeholder {
        min-height: 300px;
        padding: 30px 15px;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    .game-loading-placeholder p {
        font-size: 14px;
    }

    .load-game-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
/**
 * 图片延迟加载样式
 */

/* 延迟加载图片的占位符 */
.screenshot-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.screenshot-loading-placeholder::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #f44336;
    animation: spin 1s ease-in-out infinite;
}

.screenshot {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    aspect-ratio: 16/9;
    cursor: pointer;
    width: 100%;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.screenshot img.lazy-load {
    opacity: 0;
}

.screenshot img.loaded {
    opacity: 1;
}

.screenshot-loading-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 截图放大图标 */
.screenshot-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.screenshot:hover .screenshot-zoom-icon {
    opacity: 1;
}

/* 图片预览模态框 */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview-modal.active {
    display: flex;
    opacity: 1;
}

.preview-image {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    object-fit: contain;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-preview-modal.active .preview-image {
    transform: scale(1);
    opacity: 1;
}

.close-preview {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-preview-modal.active .close-preview {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .screenshot {
        aspect-ratio: 4/3;
    }

    .screenshot-zoom-icon {
        width: 30px;
        height: 30px;
    }

    .close-preview {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .screenshot-loading-placeholder::after {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .screenshot-zoom-icon {
        width: 25px;
        height: 25px;
    }

    .close-preview {
        top: 10px;
        right: 15px;
        font-size: 25px;
    }
}
