/* =====================================================
   free_games.css — 免费游戏栏 (Windows 7 Aero Glass)
   ===================================================== */

/* ---------- 免费游戏栏容器 ---------- */
.aero-free {
    padding: 20px 24px 24px;
    animation: aero-free-fade-in 0.5s ease 0.25s both;
}

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

.aero-free__box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

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

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

.aero-free__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.aero-free__title-badge {
    display: inline-block;
    padding: 2px 12px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.6;
}

.aero-free__title-dot {
    width: 6px;
    height: 6px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
    animation: aero-free-pulse 1.5s ease-in-out infinite;
}

@keyframes aero-free-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ---------- 卡片行 ---------- */
.aero-free__track {
    display: flex;
    gap: 16px;
}

/* ---------- 单个游戏卡片 ---------- */
.aero-free__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.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.aero-free__card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---------- 缩略图 (16:9) ---------- */
.aero-free__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

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

.aero-free__card:hover .aero-free__thumb img {
    transform: scale(1.06);
}

/* 缩略图占位（骨架屏） */
.aero-free__thumb-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.1);
    letter-spacing: 2px;
}

/* ---------- 半透明遮罩 "现在免费" ---------- */
.aero-free__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aero-free__overlay-text {
    font-size: 15px;
    font-weight: 700;
    color: #4caf50;
    letter-spacing: 2px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ---------- 卡片信息区 ---------- */
.aero-free__info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* 游戏标题（2行省略） */
.aero-free__name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 时效性信息 */
.aero-free__deadline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: auto;
    padding-top: 4px;
}

.aero-free__deadline strong {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

/* ---------- 骨架屏 ---------- */
.aero-free__skeleton {
    display: flex;
    gap: 16px;
}

.aero-free__skeleton-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.aero-free__skeleton-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    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-free-shimmer 1.5s ease-in-out infinite;
}

.aero-free__skeleton-info {
    padding: 12px 14px 14px;
}

.aero-free__skeleton-line {
    height: 14px;
    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-free-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.aero-free__skeleton-line:last-child {
    width: 60%;
    margin-bottom: 0;
}

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

/* 隐藏骨架屏 */
.aero-free__skeleton--hidden {
    display: none !important;
}

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

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

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

    .aero-free__box {
        padding: 18px;
    }

    .aero-free__track {
        flex-direction: column;
        gap: 12px;
    }

    .aero-free__skeleton {
        flex-direction: column;
        gap: 12px;
    }

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

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

    .aero-free__box {
        padding: 14px;
    }

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

    .aero-free__title-badge {
        font-size: 12px;
    }

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

    .aero-free__overlay-text {
        font-size: 13px;
    }

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