/* Game游戏中心专用样式 - 基于APK样式修改 */
.game-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 650px;
    margin-bottom: 20px;
}

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

.game-card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-search-list {
    padding: 5px;
}

.game-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.game-card-body {
    padding: 20px;
}

.game-card-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
    background-color: rgba(0, 0, 0, 0.01);
}

/* 游戏列表样式 */
.game-list-app-list {
    margin: 0;
}

.game-list-app-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

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

.game-list-app-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.game-list-app-info {
    flex: 1;
    max-width: calc(100% - 165px);
    overflow: hidden;
}

.game-list-app-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px; /* 名称和标签之间的间距 */
}

/* 名称链接样式 */
.game-list-app-name a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    color: inherit;
}

/* 标签容器 */
.game-name-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0; /* 防止标签被压缩 */
}

/* 精选标签样式 */
.game-badge-featured {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: linear-gradient(45deg, #FFCC00, #FFB400);
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

/* 推荐标签样式 */
.game-badge-recommend {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

.game-list-app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
}

.game-list-app-category,
.game-list-app-downloads,
.game-list-app-version,
.game-list-app-date {
    display: inline-flex;
    align-items: center;
}

.game-list-app-category i,
.game-list-app-downloads i,
.game-list-app-version i,
.game-list-app-date i {
    margin-right: 4px;
}

.game-list-app-desc {
    margin-top: 5px;
    font-size: 13px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.game-list-app-actions {
    display: flex;
    align-items: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.game-list-app-actions .btn {
    padding: 8px 16px;
    min-width: 80px;
}

/* 分页容器 */
.game-list-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.game-list-pagination-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: #f0f7ff;
    color: #3b82f6;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.game-list-pagination-info {
    margin: 0 15px;
    color: var(--gray);
}

/* 搜索结果为空时的样式 */
.game-list-empty-result {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.game-list-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--border);
}

.game-list-empty-result h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.game-list-empty-result p {
    margin-bottom: 15px;
}

.game-list-empty-result ul {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
    padding-left: 20px;
}

.game-list-empty-result li {
    margin-bottom: 5px;
}

.game-list-next-btn .fa-angle-right {
    margin-left: 5px;
}

.game-list-prev-btn .fa-angle-left {
    margin-right: 5px;
}

/* 空游戏列表样式 */
.game-list-empty-apps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
    padding: 40px 20px;
}

.game-list-empty-apps-content {
    text-align: center;
    max-width: 400px;
}

.game-list-empty-apps-icon {
    font-size: 5rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.game-list-empty-apps-icon i {
    animation: floating 3s ease-in-out infinite;
}

.game-list-empty-apps-text h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #505050;
}

.game-list-empty-apps-text p {
    color: #888;
    font-size: 16px;
}

/* 投稿按钮样式 */
.game-list-category-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-list-category-submit-btn {
    padding: 6px 15px;
    font-size: 14px;
    border-radius: 4px;
    margin-left: 15px;
}

/* 空游戏容器中也添加投稿按钮 */
.game-list-empty-apps-action {
    margin-top: 20px;
}

.game-list-empty-apps-action .btn {
    padding: 8px 20px;
}

/* 游戏投稿区域样式 */
.game-submit-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-image: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.1));
    max-width: 650px;
}

.game-submit-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.game-submit-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.game-submit-icon {
    width: 60px;
    height: 60px;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.game-submit-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #1f2937;
}

.game-submit-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 300px;
}

.game-submit-button {
    padding: 0.8rem 1.5rem;
    background-color: #22c55e;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.game-submit-button:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

/* 分类网格布局 */
.game-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.game-category-item {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.game-category-item:hover {
    background-color: rgba(34, 197, 94, 0.05);
    transform: translateY(-3px);
}

.game-category-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f3f4f6;
}

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

.game-category-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.game-category-name {
    font-size: 1rem;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-align: left;
}

.game-category-desc {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* 游戏网格 */
.game-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.7rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.game-app-item {
    display: flex;
    gap: 1rem;
    padding: 0.7rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.game-app-item:hover {
    background-color: rgba(34, 197, 94, 0.05);
}

.game-app-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f3f4f6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.game-app-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-app-name {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-app-name a {
    text-decoration: none;
    color: #111827;
    transition: all 0.3s ease;
}

.game-app-name a:hover {
    color: #22c55e;
}

.game-app-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #6b7280;
}

.game-app-category, .game-app-version, .game-app-downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.game-app-desc {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-app-button {
    align-self: flex-start;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background-color: #22c55e;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

.game-app-button:hover {
    background-color: #16a34a;
}

/* 平台介绍样式 */
.game-announcement {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.game-announcement p {
    margin-bottom: 1rem;
}

.game-announcement ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    list-style-type: disc;
}

.game-announcement li {
    margin-bottom: 0.5rem;
    position: relative;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e5e7eb;
    text-align: center;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.stats-item {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    position: relative;
}

.stats-num::after {
    content: "+";
    position: absolute;
    font-size: 1rem;
    top: 0;
    right: -12px;
}

.stats-label {
    font-size: 0.9rem;
    color: #6b7280;
}

/* 保留原有的分类描述样式 */
.category-description {
    padding: 20px;
    background: white;
    margin-top: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.category-description h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
}

.category-description p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* 分页按钮悬停和活跃状态 */
.game-list-pagination-btn:hover,
.game-list-pagination-btn:active,
.game-list-pagination-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.game-list-next-btn:hover,
.game-list-prev-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* 专辑推荐区域样式 */
.game-topic-section {
    margin-bottom: 30px;
}

.game-topic-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* 使用伪元素实现背景图片放大效果 */
.game-topic-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    z-index: 0;
}

.game-topic-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 悬停时只放大背景图片 */
.game-topic-image:hover::before {
    transform: scale(1.1);
}

.game-topic-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-decoration: none;
    color: inherit;
    z-index: 1;
}

.game-topic-more {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.game-topic-more:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

.game-topic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 25px;
    color: white;
    z-index: 1;
}

.game-topic-info {
    flex: 1;
}

.game-topic-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.game-topic-desc {
    font-size: 14px;
    margin: 0 0 10px 0;
    opacity: 0.9;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.game-topic-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.8;
}

.game-topic-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-topic-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.game-topic-image:hover .game-topic-play {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}


/* 精选游戏专栏样式 */
.game-featured-section {
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.game-featured-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.game-featured-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.game-featured-cover {
    width: 100%;
    height: 100%;
    position: relative;
}

.game-featured-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-featured-section:hover .game-featured-cover img {
    transform: scale(1.05);
}

.game-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    color: white;
    padding: 24px;
}


.game-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(45deg, #FFCC00, #FFB400);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.game-featured-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.game-featured-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}


/* 推荐游戏卡片样式 */
.game-recommend-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    max-width: 650px;
    margin-bottom: 20px;
    
}

.game-recommend-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.game-recommend-item:hover {
    background-color: rgba(34, 197, 94, 0.1);
    transform: translateY(-3px);
}

.game-recommend-icon {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.game-recommend-item:hover .game-recommend-icon {
    transform: scale(1.1);
}

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

/* 推荐标签样式 - 修改位置到卡片顶部 */
.game-recommend-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 8px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.game-recommend-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 70px;
}



/* 响应式调整 */
@media (max-width: 767px) {
    .game-card {
        width: 100%;
        max-width: 100%;
    }
    
    .game-list-app-item {
        flex-direction: row;
        align-items: center;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .game-list-app-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .game-list-app-info {
        flex: 1;
        max-width: calc(100% - 140px);
    }
    
    .game-list-app-name {
        margin: 0;
        font-size: 15px;
    }
    
    .game-list-app-meta,
    .game-list-app-desc {
        display: none;
    }
    
    .game-list-app-actions {
        margin-left: 10px;
    }
    
    .game-list-app-actions .btn {
        padding: 6px 12px;
        min-width: 70px;
        font-size: 13px;
    }
    
    .category-description,
    .section-header,
    .game-list-pagination-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .game-list-pagination-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .game-list-pagination-info {
        width: 100%;
        text-align: center;
        margin: 5px 0;
        order: -1;
    }
    
    .game-list-pagination-btn {
        margin: 5px 0;
    }
    
    .game-category-grid {
        grid-template-columns: 1fr;
    }
    
    .game-submit-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .game-submit-button {
        align-self: stretch;
        text-align: center;
        justify-content: center;
    }
    
    .game-submit-text p {
        max-width: 100%;
    }
    
    .game-topic-image {
        height: 200px;
        border-radius: 10px;
    }
    
    .game-topic-more {
        top: 12px;
        right: 12px;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .game-topic-overlay {
        padding: 20px;
    }
    
    .game-topic-title {
        font-size: 18px;
    }
    
    .game-topic-desc {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
    
    .game-topic-meta {
        font-size: 12px;
        gap: 12px;
    }
    
    .game-topic-play {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .game-featured-container {
        height: 220px;
    }
    
    .game-featured-overlay {
        padding: 20px;
    }
    
    .game-featured-title {
        font-size: 18px;
    }
    
    .game-featured-desc {
        font-size: 13px;
        -webkit-line-clamp: 1;
    }
    .game-recommend-simple {
        gap: 8px;
    }
    
    .game-recommend-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 6px;
    }
    
    .game-recommend-badge {
        font-size: 7px;
        padding: 1px 3px;
        top: 3px;
        right: 3px;
    }
    
    .game-recommend-name {
        font-size: 11px;
        max-width: 50px;
    }
    
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
