/* =====================================================
   latest_games.css — 最新游戏栏 (Windows 7 Aero Glass)
   ===================================================== */

/* ---------- 最新游戏栏容器 ---------- */
.aero-latest {
    padding: 20px 24px 24px;
    animation: aero-latest-fade-in 0.5s ease 0.2s both;
}

@keyframes aero-latest-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 栏目标题 */
.aero-latest__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.aero-latest__title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.aero-latest__title-badge {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.6;
}

/* ---------- 卡片行（Flex 等分铺满） ---------- */
.aero-latest__track {
    display: flex;
    gap: 14px;
    padding: 4px 0;
}

/* ---------- 单个游戏卡片 ---------- */
.aero-latest__card {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.aero-latest__card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ---------- 封面（竖版矩形） ---------- */
.aero-latest__cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.aero-latest__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.aero-latest__card:hover .aero-latest__cover img {
    transform: scale(1.08);
}

/* 封面占位（无图时显示） */
.aero-latest__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 2px;
}

/* ---------- 卡片信息区 ---------- */
.aero-latest__info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

/* 游戏类型/描述 */
.aero-latest__genre {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏标题 */
.aero-latest__name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 游戏价格 */
.aero-latest__price {
    font-size: 15px;
    font-weight: 700;
    color: #4fc3f7;
    margin-top: auto;
    padding-top: 4px;
}

/* =====================================================
   响应式
   ===================================================== */

@media (max-width: 768px) {
    .aero-latest {
        padding: 16px 16px 20px;
    }

    .aero-latest__track {
        gap: 10px;
    }

    .aero-latest__name {
        font-size: 13px;
    }

    .aero-latest__price {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .aero-latest__track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .aero-latest {
        padding: 12px 12px 16px;
    }

    .aero-latest__info {
        padding: 8px 10px 10px;
    }

    .aero-latest__name {
        font-size: 12px;
    }

    .aero-latest__price {
        font-size: 13px;
    }

    .aero-latest__genre {
        font-size: 10px;
    }
}
