/**
 * 游戏资源网 - 矩形容器样式
 * 版本: 1.1
 * 为游戏封面、工具封面、新闻图片等提供统一的矩形容器样式
 */

/* 游戏/工具卡片封面 - 覆盖默认样式 */
.game-cover {
    position: relative;
    overflow: hidden;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.dark-mode .game-cover {
    background-color: #2f2f2f;
}

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

/* 特色游戏背景 */
.featured-game-bg {
    position: relative;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dark-mode .featured-game-bg {
    background-color: #2f2f2f;
}

/* 新闻图片容器 */
.news-image-container {
    background-color: #f5f5f5;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.dark-mode .news-image-container {
    background-color: #2f2f2f;
}

.news-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 媒体缩略图 */
.thumbnail {
    background-color: #f5f5f5;
    padding:15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.dark-mode .thumbnail {
    background-color: #2f2f2f;
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 广告容器 */
.ad-container {
    background-color: #f5f5f5;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.dark-mode .ad-container {
    background-color: #2f2f2f;
}

.ad-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
} 