/* 游戏网格布局 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* 游戏卡片 */
.game-card {
    /*background: rgba(255, 255, 255, 0.95);*/
    border-radius: 15px;
    padding: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* 游戏信息区域 */
.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* 游戏标题区域 */
.game-title {
    padding: 25px;
    margin-bottom: 20px;

}

.game-title h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-title p {
    font-size: 1rem;
    /*color: #6b7280;*/
    line-height: 1.6;
    margin: 0;
}

/* 游戏网格布局 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* 游戏卡片 */
.game-card {
    /*background: rgba(255, 255, 255, 0.95);*/
    border-radius: 15px;
    padding: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/*.game-card:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);*/
/*}*/

/* 游戏信息区域 */
.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* 游戏标题区域 */
.game-title {
    padding: 25px;
    margin-bottom: 20px;

}

.game-title h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-title p {
    font-size: 1rem;
    /*color: #6b7280;*/
    line-height: 1.6;
    margin: 0;
}

/* 立即前往按钮区域 */
.game-goto {
    margin-top: auto;
    padding: 8px 0 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    margin-top: 10px;
    border-radius: 0 0 10px 10px;
    height: auto;
    min-height: 50px;
    z-index: 11;
}

/* 黄色斜角背景 - 现在在容器级别 */
.game-goto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 120%;
    height: 100%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transform: skewX(-14deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.game-goto p {
    font-family: '黑体', 'Microsoft YaHei', 'SimHei', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    font-style: italic;
    color: #DA3535;
    text-align: left;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: inline-block;
    position: relative;
    padding: 6px 15px 6px 12px;
    z-index: 2;
    background: transparent;
    line-height: 1.2;
    width: 100%;
    height: 100%;

}

/* 鼠标悬停效果 */
.game-goto:hover::before {
    left: -10%;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF8C00);
}

.game-goto p:hover {
    color: #000000;
    transform: translateX(25px);
    padding-left: 80%;
}

/* 游戏卡片背景图片支持 */
.game-card[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(255, 255, 255, 0.3);
}

.game-card[style*="background-image"] .game-title h3,
.game-card[style*="background-image"] .game-title p {
    /*color: white;*/
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-card[style*="background-image"] .game-title h3 {
    -webkit-text-fill-color: white;
    background: none;
}

/* 立即前往部分不显示背景图片 */
.game-card[style*="background-image"] .game-goto {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px 0;
    }

    .game-card {
        padding: 20px;
    }

    .game-title h3 {
        font-size: 1.3rem;
    }

    .game-goto p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .game-card {
        padding: 15px;
    }

    .game-title h3 {
        font-size: 1.2rem;
    }

    .game-goto p {
        font-size: 1.1rem;
    }

    .game-goto {
        min-height: 45px;
        padding: 6px 0 0 0;
    }

    .game-goto p {
        padding: 4px 12px 4px 10px;
    }
}