/* =====================================================
   sale_games.css — 特惠游戏栏 (Windows 7 Aero Glass)
   ===================================================== */

/* ---------- 特惠游戏栏容器 ---------- */
.aero-sale {
    padding: 24px 24px 8px;
    animation: aero-sale-fade-in 0.5s ease 0.15s both;
}

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

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

.aero-sale__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-sale__title-accent {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.6;
}

/* ---------- 左右分栏 ---------- */
.aero-sale__grid {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

/* === 左侧横幅 (2/6) === */
.aero-sale__banner {
    flex: 0 0 calc(100% / 6 * 2);
    max-width: calc(100% / 6 * 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
}

/* 标题组 — 占满中间空间，内容居中 */
.aero-sale__banner-title-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Aero Glass 高光 */
.aero-sale__banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* 横幅装饰光晕 */
.aero-sale__banner::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 129, 0.06), transparent 60%);
    pointer-events: none;
}

.aero-sale__banner-title {
    position: relative;
    z-index: 2;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.aero-sale__banner-sub {
    position: relative;
    z-index: 2;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.aero-sale__banner-btn {
    margin-top: auto;
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.7), rgba(255, 107, 129, 0.7));
    border: 1px solid rgba(255, 107, 129, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.aero-sale__banner-btn:hover {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.9), rgba(255, 107, 129, 0.9));
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
    transform: translateY(-1px);
}

.aero-sale__banner-btn:active {
    transform: translateY(0);
}

/* === 右侧游戏列表 (4/6) === */
.aero-sale__games {
    flex: 0 0 calc(100% / 6 * 4);
    max-width: calc(100% / 6 * 4);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    -webkit-overflow-scrolling: touch;
}

.aero-sale__games::-webkit-scrollbar {
    height: 4px;
}

.aero-sale__games::-webkit-scrollbar-track {
    background: transparent;
}

.aero-sale__games::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.aero-sale__games::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 3列×3排网格 */
.aero-sale__game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    min-width: 0;
}

/* ---------- 单个游戏项 ---------- */
.aero-sale__game-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 86px;
}

.aero-sale__game-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* 游戏封面 (16:9) */
.aero-sale__game-cover {
    flex: 0 0 72px;
    width: 72px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
}

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

.aero-sale__game-item:hover .aero-sale__game-cover img {
    transform: scale(1.08);
}

/* 封面懒加载占位 */
.aero-sale__game-cover .aero-sale__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.15);
}

/* 游戏信息区 */
.aero-sale__game-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aero-sale__game-name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* 价格区 */
.aero-sale__game-pricing {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.aero-sale__game-discount {
    display: inline-block;
    padding: 1px 5px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}

.aero-sale__game-original {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
}

.aero-sale__game-current {
    font-size: 12px;
    font-weight: 700;
    color: #4fc3f7;
}

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

@media (max-width: 1024px) {
    .aero-sale__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .aero-sale__grid {
        flex-direction: column;
        min-height: auto;
    }

    .aero-sale__banner {
        flex: none;
        max-width: 100%;
        padding: 20px 16px;
        justify-content: center;
        min-height: auto;
    }

    .aero-sale__banner-title {
        font-size: 26px;
    }

    .aero-sale__games {
        flex: none;
        max-width: 100%;
    }

    .aero-sale__game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .aero-sale__game-grid {
        grid-template-columns: 1fr;
    }

    .aero-sale__game-cover {
        flex: 0 0 64px;
        width: 64px;
    }

    .aero-sale__banner-title {
        font-size: 22px;
    }

    .aero-sale__banner-btn {
        padding: 8px 18px;
        font-size: 12px;
    }
}
