/* index.css —— 首页专属样式 */

/* ========== 轮播图模块 ========== */
.section-carousel {
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    border-radius: 0;
    background: #fff;
}

.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100vw;
    height: 540px;
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-slide img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
}

.carousel-caption {
    position: absolute;
    left: 120px;
    bottom: 200px;
    color: #fff;
    max-width: 520px;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.1, 0.3, 1);
}

.carousel-slide.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel-caption h1 {
    font-size: 3.2em;
    margin-bottom: 16px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.carousel-caption p {
    font-size: 1.2em;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }

/* 鼠标悬停时显示按钮 */
.carousel:hover .carousel-btn {
    opacity: 1;
    pointer-events: auto;
}

/* 灵动岛圆点指示器 */
.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    text-align: center;
    z-index: 11;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.island-dot {
    width: 32px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.2, 0.1, 0.3, 1);
    cursor: pointer;
}

.island-dot.active {
    width: 52px;
    background: #1565c0;
    opacity: 1;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.25);
    transform: scale(1.05);
}

/* ========== 公司简介区块 ========== */
.section-divider{
    padding: 0;
}

.section-intro {
    padding: 10px;
}

.intro-block {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(21, 101, 192, 0.12);
    padding: 50px 40px;
    max-width: 1100px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.intro-block:hover {
    transform: translateY(-5px);
}

.intro-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1 1 340px;
    min-width: 280px;
}

.intro-text .section-title {
    color: #1565c0;
    font-size: 2.2em;
    margin-bottom: 12px;
    font-weight: 700;
}

.intro-subtitle {
    color: #1565c0;
    font-size: 1.3em;
    margin-bottom: 18px;
    font-weight: 500;
}

.intro-paragraph {
    color: #333;
    font-size: 1.08em;
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 600px;
}

.intro-img {
    flex: 0 0 340px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-img img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.15);
    transition: transform 0.4s ease;
}

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

/* ========== 产品优势区块 ========== */
.section-advantages {
    padding: 60px 20px;
}

.section-advantages .section-title h2 {
    color: #1565c0;
    font-size: 2.2em;
    font-weight: 700;
}

.advantages-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin-top: 32px;
}

.advantage-item {
    padding: 32px 28px;
    width: 260px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.advantage-icon {
    width: 76px;
    height: 76px;
    object-fit: contain;
    background: #e3eafc;
    border: 2px solid #1565c0;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.12);
    padding: 10px;
    transition: transform 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-item h3 {
    color: #1565c0;
    font-size: 1.4em;
    margin-bottom: 12px;
    font-weight: 600;
}

.advantage-item p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/* ========== 适用场景区块 ========== */
.section-scenarios {
    padding: 60px 20px;
}

.section-scenarios .section-title h2 {
    color: #1565c0;
    font-size: 2.2em;
    font-weight: 700;
}

.scenarios-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin-top: 32px;
}

.scenario-item {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.scenario-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.8));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scenario-item:hover::before {
    opacity: 1;
}

.scenario-item h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    margin: 0;
    color: #1565c0;
    font-size: 1.3em;
    font-weight: 600;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 2;
}

.scenario-item p {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    margin: 0;
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scenario-item:hover h3 {
    opacity: 0;
    transform: translateY(-20px);
}

.scenario-item:hover p {
    opacity: 1;
    transform: translateY(-50%);
}

/* 场景背景图 */
.home-entertainment { background-image: url('../image/cj1.png'); }
.hotel { background-image: url('../image/cj2.png'); }
.mall-shop { background-image: url('../image/cj3.png'); }
.enterprise { background-image: url('../image/cj4.png'); }

/* ========== 首页响应式优化 ========== */

/* 中等屏幕 (992px-1199px) */
@media (max-width: 1199px) {
    .carousel-slide {
        height: 480px;
    }

    .carousel-caption {
        left: 80px;
        bottom: 180px;
    }

    .intro-block {
        padding: 40px 30px;
    }

    .advantage-item,
    .scenario-item {
        width: 240px;
    }
}

/* 平板尺寸 (768px-991px) */
@media (max-width: 991px) {
    .carousel-slide {
        height: 380px;
    }

    .carousel-caption {
        left: 50px;
        bottom: 120px;
        max-width: 400px;
    }

    .carousel-caption h1 {
        font-size: 2.4em;
    }

    .intro-row {
        flex-direction: column;
        text-align: center;
    }

    .intro-text {
        margin-bottom: 30px;
    }

    .intro-img {
        flex: 0 0 auto;
        margin: 0 auto;
    }

    .advantages-list,
    .scenarios-list {
        gap: 24px;
    }

    .advantage-item,
    .scenario-item {
        width: calc(50% - 18px);
    }
}

/* 大手机尺寸 (576px-767px) */
@media (max-width: 767px) {
    .carousel-slide {
        height: 320px;
    }

    .carousel-caption {
        left: 30px;
        bottom: 100px;
        max-width: 80%;
    }

    .carousel-caption h1 {
        font-size: 2em;
    }

    .carousel-caption p {
        font-size: 1em;
    }

    .intro-block {
        padding: 30px 20px;
    }

    .intro-text .section-title {
        font-size: 1.8em;
    }

    .advantage-item,
    .scenario-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .scenario-item {
        height: 240px;
    }
}

/* 小手机尺寸 (480px-575px) */
@media (max-width: 575px) {
    .carousel-slide {
        height: 280px;
    }

    .carousel-caption {
        left: 20px;
        bottom: 80px;
    }

    .carousel-caption h1 {
        font-size: 1.8em;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4em;
    }

    .island-dot {
        width: 24px;
        height: 12px;
    }

    .island-dot.active {
        width: 40px;
    }
}

/* 超小手机尺寸 (小于480px) */
@media (max-width: 479px) {
    .carousel-slide {
        height: 240px;
    }

    .carousel-caption {
        left: 15px;
        bottom: 60px;
    }

    .carousel-caption h1 {
        font-size: 1.6em;
    }

    .carousel-caption p {
        font-size: 0.9em;
    }

    .intro-block {
        padding: 25px 15px;
    }

    .intro-text .section-title {
        font-size: 1.6em;
    }

    .intro-subtitle {
        font-size: 1.1em;
    }

    .advantage-icon {
        width: 60px;
        height: 60px;
    }

    .scenario-item {
        height: 220px;
    }

    .scenario-item h3 {
        font-size: 1.1em;
    }
}