/* slider.css */
/* ========== 大尺寸轮播样式 ========== */
.carousel-container-big {
    max-width: 1032px;
    margin: 0 auto 60px;
}

.carousel-big {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel-big::-webkit-scrollbar {
    display: none;
}

.slide-big {
    flex: 0 0 auto;
    width: 996px;
    height: 560px;
    border-radius: 10px;
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}

/* 通用图片容器 */
.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

/* 通用文字容器 */
.slide-content {
    position: absolute;
    z-index: 2;
    color: #444;
}

/* 卡片1-7的具体样式 */
.slide-1 .slide-content {
    top: 200px;
    left: 60px;
    max-width: 60%;
}

.slide-1 h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.slide-1 p {
    font-size: 24px;
    line-height: 1.6;
    opacity: 0.9;
}

.slide-2 .slide-content {
    top: 30px;
    left: 40%;
    text-align: left;
}

.slide-2 h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.slide-3 .slide-content {
    top: 30px;
    left: 40%;
    text-align: left;
}

.slide-3 h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.slide-4 .slide-content {
    bottom: 190px;
    left: 60px;
    max-width: 50%;
}

.slide-4 h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.slide-4 p {
    font-size: 20px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.slide-5 .slide-content {
    top: 190px;
    left: 60px;
    max-width: 50%;
    text-align: left;
}

.slide-5 h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.slide-5 p {
    font-size: 22px;
    line-height: 1.6;
    color: #666;
}

.slide-6 .title,
.slide-7 .title {
    position: absolute;
    top: 190px;
    left: 50px;
    font-size: 36px;
    z-index: 2;
    color: #444;
}

.slide-6 .subtitle,
.slide-7 .subtitle {
    position: absolute;
    top: 240px;
    left: 50px;
    font-size: 22px;
    opacity: 0.9;
    z-index: 2;
    color: #444;
}

/* ========== 导航通用样式 ========== */
.nav-big,
.nav-small {
    display: flex !important; /* 确保显示 */
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: #333;
}

.arrow:hover {
    background: #f5f5f5;
}

.arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dots {
    display: flex !important; /* 确保显示 */
    gap: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #007aff;
    width: 30px;
}

/* ========== 小尺寸轮播样式 ========== */
.carousel-container-small {
    width: 100%;
    /* max-width: 1360px; */
    margin: 30px auto;
    overflow: hidden;
    position: relative;
}

.carousel-small {
    display: flex;
    scroll-behavior: smooth;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scrollbar-width: none;
    height: 573px; /* 固定高度 */
}

.carousel-small::-webkit-scrollbar {
    display: none;
}

.slide-small {
    flex: 0 0 auto;
    width: 300px;
    height: 100%;
    border-radius: 10px;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.slide-small-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.slide-small:hover .slide-small-img {
    transform: scale(1.05);
}

/* 小卡片文字叠加层 */
.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px;
    padding-top: 60px;
}

/* 小卡片具体样式 */
.small-card .content-overlay {
    background: linear-gradient(to top, rgba(0, 34, 116, 1), transparent);
}

.small-card .title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.small-card .subtitle,
.small-card .description {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.app-card .content-overlay {
    background: linear-gradient(to top, rgba(0, 34, 116, 0.8), transparent);
}

.app-card .title {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.app-card .description {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .slide-big {
        width: calc(100vw - 80px);
        height: 500px;
    }
    .carousel-small {
        height: 573px;
    }
}

@media (max-width: 768px) {
    .slide-big {
        width: calc(100vw - 40px);
        min-height: 400px;
    }

    .carousel-small {
        height: 350px;
        padding: 15px 0;
    }

    .slide-small {
        width: 280px;
    }

    .slide-1 .slide-content {
        top: 40px;
        left: 40px;
        max-width: 80%;
    }

    .slide-2 .slide-content {
        top: 40px;
        right: 40px;
        max-width: 70%;
    }

    .slide-3 .slide-content {
        width: 90%;
    }

    .slide-4 .slide-content {
        bottom: 40px;
        left: 40px;
    }

    .slide-5 .slide-content {
        bottom: 40px;
        right: 40px;
    }

    .slide-6 .title,
    .slide-7 .title {
        top: 30px;
        left: 30px;
        font-size: 36px;
    }

    .slide-6 .subtitle,
    .slide-7 .subtitle {
        top: 80px;
        left: 30px;
        font-size: 18px;
    }

    .nav-big,
    .nav-small {
        flex-wrap: nowrap;
        gap: 15px;
    }

    .arrow {
        order: 1;
    }

    .dots {
        order: 2;
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slide-1 .slide-content,
    .slide-2 .slide-content,
    .slide-4 .slide-content,
    .slide-5 .slide-content {
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: auto;
        max-width: 100%;
        text-align: left;
    }

    .slide-3 .slide-content {
        width: 95%;
        padding: 0 10px;
    }

    .carousel-small {
        height: 573px;
    }

    .slide-small {
        width: 300px;
    }
}