/* =====================================================
   recommend.css — 猜你喜欢推荐栏 (Windows 7 Aero Glass)
   ===================================================== */

/* ---------- 推荐栏容器 ---------- */
.aero-rec {
    padding: 20px 24px 32px;
    animation: aero-rec-fade-in 0.5s ease 0.3s both;
}

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

/* ---------- 主标题 ---------- */
.aero-rec__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.aero-rec__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-rec__title-icon {
    font-size: 18px;
}

/* ---------- 三等分布局 ---------- */
.aero-rec__grid {
    display: flex;
    gap: 16px;
}

.aero-rec__col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-height: 320px;
}

/* ---------- 板块副标题 ---------- */
.aero-rec__subtitle {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- 游戏卡片 ---------- */
.aero-rec__card {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.aero-rec__card:last-child {
    margin-bottom: 0;
}

.aero-rec__card:last-child {
    margin-bottom: 0;
}

.aero-rec__card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

/* ---------- 封面 (2:3) ---------- */
.aero-rec__cover {
    flex: 0 0 56px;
    width: 56px;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
}

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

.aero-rec__card:hover .aero-rec__cover img {
    transform: scale(1.08);
}

.aero-rec__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.18);
}

/* ---------- 卡片信息区 ---------- */
.aero-rec__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

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

/* 价格行 */
.aero-rec__pricing {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.aero-rec__discount {
    display: inline-block;
    padding: 2px 7px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}

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

.aero-rec__current {
    font-size: 15px;
    font-weight: 700;
    color: #4fc3f7;
}

/* 仅显示现价（无折扣时） */
.aero-rec__current--only {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 14px;
}

/* ---------- 加载状态 ---------- */
.aero-rec__loading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aero-rec__loading-card {
    display: flex;
    gap: 10px;
    padding: 8px;
}

.aero-rec__loading-cover {
    flex: 0 0 44px;
    width: 44px;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: aero-rec-shimmer 1.5s ease-in-out infinite;
}

.aero-rec__loading-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.aero-rec__loading-line {
    height: 10px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: aero-rec-shimmer 1.5s ease-in-out infinite;
    border-radius: 3px;
}

.aero-rec__loading-line--short {
    width: 50%;
}

@keyframes aero-rec-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 隐藏加载骨架 */
.aero-rec__loading--hidden {
    display: none !important;
}

/* 隐藏真实卡片（加载前） */
.aero-rec__card--loading {
    display: none !important;
}

/* ---------- 错误提示 ---------- */
.aero-rec__error {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: none;
}

.aero-rec__error--visible {
    display: block;
}

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

@media (max-width: 900px) {
    .aero-rec__grid {
        gap: 12px;
    }

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

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

    .aero-rec__current--only {
        font-size: 13px;
    }

    .aero-rec__discount {
        font-size: 11px;
    }

    .aero-rec__cover {
        flex: 0 0 50px;
        width: 50px;
    }
}

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

    .aero-rec__grid {
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
        padding-bottom: 8px;
    }

    .aero-rec__grid::-webkit-scrollbar {
        height: 3px;
    }

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

    .aero-rec__col {
        flex: 0 0 280px;
        min-width: 280px;
        min-height: auto;
    }
}

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

    .aero-rec__col {
        flex: 0 0 240px;
        min-width: 240px;
    }

    .aero-rec__title {
        font-size: 17px;
    }

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

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

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

    .aero-rec__current--only {
        font-size: 12px;
    }

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

    .aero-rec__cover {
        flex: 0 0 46px;
        width: 46px;
    }
}
