/* =====================================================
   hero_banner.css — 首页巨幅轮播图 (Windows 7 Aero Glass)
   ===================================================== */

/* ---------- 轮播容器 ---------- */
.aero-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #0d0d1a;
    user-select: none;
}

/* ---------- 左右分栏容器 ---------- */
.aero-hero__grid {
    display: flex;
    width: 100%;
    height: 100%;
}

/* ---------- 左侧巨幅栏 (5/6) ---------- */
.aero-hero__main {
    flex: 0 0 calc(100% / 6 * 5);
    max-width: calc(100% / 6 * 5);
    position: relative;
    overflow: hidden;
}

/* ---------- 左侧幻灯片容器 ---------- */
.aero-hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.aero-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.05);
    display: flex;
    align-items: flex-end;
    padding: 48px;
    background-size: cover;
    background-position: center;
}

.aero-hero__slide--active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* 幻灯片渐变遮罩（底部文字可读性） */
.aero-hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(0, 0, 0, 0.4) 65%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
}

/* ---------- 幻灯片内容 (左下角) ---------- */
.aero-hero__slide-content {
    position: relative;
    z-index: 3;
    max-width: 560px;
    animation: aero-hero-content-in 0.5s ease 0.2s both;
}

@keyframes aero-hero-content-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 游戏名称 */
.aero-hero__title {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    line-height: 1.2;
}

/* 游戏简述 */
.aero-hero__desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 480px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 价格信息 ---------- */
.aero-hero__price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* 优惠后价格 */
.aero-hero__price-current {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* 折扣标签 */
.aero-hero__price-discount {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.5;
}

/* 原价（删除线） */
.aero-hero__price-original {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

/* ---------- 操作按钮组 ---------- */
.aero-hero__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 购买按钮 */
.aero-hero__btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.7), rgba(0, 102, 204, 0.7));
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.aero-hero__btn-buy:hover {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.9), rgba(0, 102, 204, 0.9));
    box-shadow: 0 4px 20px rgba(0, 153, 255, 0.3);
    transform: translateY(-1px);
}

.aero-hero__btn-buy:active {
    transform: translateY(0);
}

/* 图标按钮（礼物、收藏） */
.aero-hero__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.aero-hero__btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.aero-hero__btn-icon:active {
    transform: translateY(0);
}

.aero-hero__btn-icon svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.8);
    display: block;
}

.aero-hero__btn-icon:hover svg {
    fill: #fff;
}

/* ---------- 右侧缩略图区域 (1/6) ---------- */
.aero-hero__thumbs {
    flex: 0 0 calc(100% / 6);
    max-width: calc(100% / 6);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

/* 缩略图左侧装饰边框 */
.aero-hero__thumbs::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.aero-hero__thumb {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.aero-hero__thumb:last-child {
    border-bottom: none;
}

/* 缩略图渐变遮罩 */
.aero-hero__thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.3s ease;
}

.aero-hero__thumb:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

/* 当前选中缩略图 */
.aero-hero__thumb--active::after {
    background: rgba(0, 0, 0, 0.15);
}

.aero-hero__thumb--active {
    box-shadow: inset 3px 0 0 rgba(0, 153, 255, 0.8);
}

.aero-hero__thumb--active .aero-hero__thumb-label {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 153, 255, 0.4);
}

/* 缩略图文字 */
.aero-hero__thumb-label {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 0 8px;
    transition: color 0.3s ease;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    word-break: break-all;
}

.aero-hero__thumb:hover .aero-hero__thumb-label {
    color: rgba(255, 255, 255, 0.8);
}

/* 缩略图编号（小字显示） */
.aero-hero__thumb-index {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.15);
    z-index: 2;
    font-weight: 600;
}

/* ---------- 底部进度条 ---------- */
.aero-hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
}

.aero-hero__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(0, 153, 255, 0.6), rgba(0, 153, 255, 1));
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
}

/* 进度条仅在左侧主栏底部 */
.aero-hero__main .aero-hero__progress {
    left: 0;
    right: 0;
}

/* ---------- 幻灯片切换箭头 ---------- */
.aero-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.aero-hero:hover .aero-hero__arrow {
    opacity: 1;
}

.aero-hero__arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

.aero-hero__arrow--prev {
    left: 16px;
}

.aero-hero__arrow--next {
    right: calc(100% / 6 + 16px);
}

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

/* 中等屏幕 */
@media (max-width: 1024px) {
    .aero-hero {
        height: 460px;
    }

    .aero-hero__title {
        font-size: 28px;
    }

    .aero-hero__slide {
        padding: 36px;
    }

    .aero-hero__thumb-label {
        font-size: 12px;
    }
}

/* 小屏幕 — 调整为上下布局 */
@media (max-width: 768px) {
    .aero-hero {
        height: auto;
    }

    .aero-hero__grid {
        flex-direction: column;
    }

    .aero-hero__main {
        flex: 0 0 360px;
        max-width: 100%;
        height: 360px;
    }

    .aero-hero__thumbs {
        flex: 0 0 auto;
        max-width: 100%;
        flex-direction: row;
        height: 80px;
        overflow: hidden;
    }

    .aero-hero__thumbs::before {
        display: none;
    }

    .aero-hero__thumb {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.04);
    }

    .aero-hero__thumb:last-child {
        border-right: none;
    }

    .aero-hero__thumb--active {
        box-shadow: inset 0 -3px 0 rgba(0, 153, 255, 0.8);
    }

    .aero-hero__thumb-label {
        font-size: 11px;
    }

    .aero-hero__thumb-index {
        display: none;
    }

    .aero-hero__arrow--next {
        right: 16px;
    }

    .aero-hero__title {
        font-size: 24px;
    }

    .aero-hero__slide {
        padding: 28px;
    }

    .aero-hero__price-current {
        font-size: 22px;
    }

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

/* 超小屏幕 */
@media (max-width: 480px) {
    .aero-hero__main {
        flex: 0 0 280px;
        height: 280px;
    }

    .aero-hero__thumbs {
        height: 64px;
    }

    .aero-hero__title {
        font-size: 20px;
    }

    .aero-hero__slide {
        padding: 20px;
    }

    .aero-hero__price-current {
        font-size: 18px;
    }

    .aero-hero__btn-buy {
        padding: 8px 18px;
        font-size: 13px;
    }

    .aero-hero__btn-icon {
        width: 34px;
        height: 34px;
    }

    .aero-hero__desc {
        display: none;
    }

    .aero-hero__arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
