/* 首页特定样式 */

/* 轮播Banner */
.swiper {
    width: 100%;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.swiper-slide {
    width: 100%;
    flex-shrink: 0;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* 左右箭头 */
.swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    border: none;
    outline: none;
}

.swiper-btn:hover {
    background: rgba(0,0,0,0.6);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 2×2 竖版长格子 */
.grid4 {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* 竖版长卡片 苹果圆角 */
.item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 15px #eee;
    height: 520px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* 图片铺满 */
.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 左上角文字 */
.item-text {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
}

.item-main {
    font-size: 17px;
    color: #ffa400;
    margin-bottom: 8px;
    font-weight: 500;
}

.item-sub {
    font-size: 35px;
    color: #000000;
    font-weight: 600;
}

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
    .swiper {
        margin-top: clamp(52px, 14vw, 64px);
    }

    .swiper-btn {
        width: clamp(30px, 9vw, 38px);
        height: clamp(30px, 9vw, 38px);
        font-size: clamp(14px, 4vw, 18px);
    }

    .prev { left: 10px; }
    .next { right: 10px; }

    .grid4 {
        padding: clamp(24px, 7vw, 40px) 0;
        grid-template-columns: 1fr;
        gap: clamp(14px, 4vw, 22px);
    }

    .item {
        height: clamp(240px, 62vw, 360px);
        border-radius: 14px;
    }

    .item-text {
        top: clamp(16px, 5vw, 28px);
        left: clamp(16px, 5vw, 28px);
    }

    .item-main {
        font-size: clamp(12px, 3.6vw, 16px);
        margin-bottom: 4px;
    }

    .item-sub {
        font-size: clamp(20px, 6.5vw, 32px);
    }
}
