/* ==================== Hero Banner模块 ==================== */
.hero-banner {
    margin-top: 64px;
    overflow: hidden;
    position: relative;
    line-height: 0;
}

.banner-slider {
    display: flex;
    transition: transform 0.6s ease;
    width: 300%;
}

.banner-slide {
    width: calc(100% / 3);
    flex-shrink: 0;
    position: relative;
}

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

/* 轮播图文字覆盖层 */
.banner-text-overlay {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 5;
    line-height: 1.6;
}

.banner-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.banner-desc {
    font-size: 16px;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.8;
}

.banner-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.banner-cta-btn:hover {
    background: var(--primary-dark);
}

/* 右侧文字布局 */
.banner-text-right {
    left: auto;
    right: 8%;
}

.banner-btn-group {
    display: flex;
    gap: 12px;
}

/* 按钮包裹器 - 用于小程序码悬浮 */
.banner-btn-wrapper {
    position: relative;
}

.qrcode-popup {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: white;
}

.qrcode-popup img {
    width: 100px;
    height: 100px;
    display: block;
    border-radius: 4px;
}

.banner-btn-wrapper:hover .qrcode-popup {
    display: block;
}

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dots .dot.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .hero-banner {
        margin-top: 56px;
    }

    .banner-text-overlay {
        left: 4%;
    }

    .banner-text-right {
        left: auto;
        right: 4%;
    }

    .banner-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .banner-desc {
        font-size: 10px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .banner-cta-btn {
        padding: 5px 12px;
        font-size: 10px;
        border-radius: 4px;
    }

    .banner-btn-group {
        gap: 6px;
    }

    .banner-dots {
        bottom: 8px;
    }

    .banner-dots .dot {
        width: 6px;
        height: 6px;
    }

    .banner-dots .dot.active {
        width: 18px;
    }
}
