:root{
    --header-bg-color: #1a365d;
    --tag-bg-color: #3182ce;
    --tag-font-color: white;
    --accent-color: #63b3ed;
    --card-bg-color: rgba(255, 255, 255, 0.95);
}


body{
    background-image: linear-gradient(-225deg, #2d3748 0%, #1a365d 50%, #2c5282 100%);
    background-attachment: fixed;
}
main{
    min-height: 400px;
}
.navbar{
    background-color: var(--header-bg-color);
}


.game-wall{
    display: flex;
    position: relative;
    flex-flow: row wrap; /* 设置主轴为水平和允许换行 */
    justify-content: flex-start;
    align-items: stretch;
    gap: 2%;
}
.game-card{
    width: 15%;
    min-width: 150px;
    height: 240px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(26, 54, 93, 0.15);
    margin-bottom: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.game-card:hover{
    margin-top: 0;
    margin-bottom: 15px;
    box-shadow: 0 20px 60px rgba(26, 54, 93, 0.35);
    transform: translateY(-8px) scale(1.02);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.game-card .tag{
    position: absolute;
    left: 0;
    top: 12px;
    padding: 6px 12px;
    background: var(--tag-bg-color);
    color: var(--tag-font-color);
    font-size: 11px;
    font-weight: bold;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.game-card .tag.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.game-card .tag.new {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}
.game-image-container {
    position: relative;
    width: 100%;
    height: 75%;
    overflow: hidden;
}

.game-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.game-card:hover .play-button {
    transform: scale(1);
}

.icon-play {
    width: 0;
    height: 0;
    border-left: 18px solid #1a365d;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}
.game-info {
    padding: 12px;
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-card .name{
    width: 100%;
    color: #2d3748;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 4px 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.category {
    font-size: 0.75rem;
    font-weight: 500;
    color: #63b3ed;
    background: rgba(99, 179, 237, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 476px) {
    .game-card{
        width: 30%;
        min-width: 110px;
        height: 160px;
    }

    .game-info {
        padding: 8px;
    }

    .game-card .name {
        font-size: 0.8rem;
    }

    .category {
        font-size: 0.65rem;
        padding: 1px 6px;
    }

    .play-button {
        width: 40px;
        height: 40px;
    }

    .icon-play {
        border-left-width: 14px;
        border-top-width: 10px;
        border-bottom-width: 10px;
    }
}

.wall-title{
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
}
.wall-title img{
    width: 1.5rem;
}


.home-link{
    color: #e2e2e2;
    cursor: pointer;
}
.home-link a{
    color: red;
}
.home-link span:last-child{
    color: #f5d03c;
}

footer{
    color: white;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.about{
    width: 100%;
    text-align: left;

}
.copyright{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    justify-items: center;
    font-size: .75rem;
    color: #f3f3f3;
}
.copyright a{
    color: black;
}

/* 图标样式 */
.icon-fire {
    width: 10px;
    height: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    clip-path: polygon(50% 0%, 40% 30%, 40% 40%, 20% 60%, 25% 80%, 50% 100%, 75% 80%, 80% 60%, 60% 40%, 60% 30%);
    display: inline-block;
}

.icon-star {
    width: 10px;
    height: 10px;
    background: #f5d03c;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    display: inline-block;
}