/* =====================================================
   categories.css — 受欢迎的类型栏 (Windows 7 Aero Glass)
   ===================================================== */

/* ---------- 类型栏容器 ---------- */
.aero-cats {
    padding: 24px 24px 16px;
    animation: aero-cats-fade-in 0.5s ease both;
}

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

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

/* ---------- 卡片行 ---------- */
.aero-cats__track {
    display: flex;
    gap: 20px;
    padding: 4px 2px;
}

/* ---------- 类型卡片 ---------- */
.aero-cats__card {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

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

/* ---------- 重叠图片容器 ---------- */
.aero-cats__images {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 三张图片共用样式 */
.aero-cats__img {
    position: absolute;
    width: 100px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.aero-cats__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 左侧图片 */
.aero-cats__img--left {
    left: 8%;
    transform: rotate(-6deg);
    z-index: 1;
}

.aero-cats__card:hover .aero-cats__img--left {
    transform: rotate(-4deg) translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 中间图片（完全显示） */
.aero-cats__img--center {
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 120px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.aero-cats__card:hover .aero-cats__img--center {
    transform: translateX(-50%) translateY(-6px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* 右侧图片 */
.aero-cats__img--right {
    right: 8%;
    transform: rotate(6deg);
    z-index: 1;
}

.aero-cats__card:hover .aero-cats__img--right {
    transform: rotate(4deg) translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 占位文字（无图时） */
.aero-cats__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 1px;
}

/* ---------- 卡片底部 ---------- */
.aero-cats__footer {
    padding: 14px 16px 16px;
    text-align: center;
}

.aero-cats__cat-name {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.aero-cats__cat-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

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

@media (max-width: 900px) {
    .aero-cats {
        padding: 20px 16px 12px;
    }

    .aero-cats__track {
        gap: 14px;
    }

    .aero-cats__images {
        height: 140px;
    }

    .aero-cats__img {
        width: 85px;
        height: 110px;
    }

    .aero-cats__img--center {
        width: 100px;
        height: 125px;
    }
}

@media (max-width: 600px) {
    .aero-cats {
        padding: 16px 12px 8px;
    }

    .aero-cats__track {
        gap: 10px;
    }

    .aero-cats__images {
        height: 120px;
    }

    .aero-cats__img {
        width: 72px;
        height: 94px;
        border-radius: 6px;
    }

    .aero-cats__img--center {
        width: 88px;
        height: 110px;
    }

    .aero-cats__cat-name {
        font-size: 14px;
    }

    .aero-cats__cat-count {
        font-size: 11px;
    }
}
