/**
 * Home Hero Banner Widget
 * 首页英雄横幅小工具样式
 * 借鉴 Teeno App Landing Page 设计风格
 */

.hhb-hero-banner {
    position: relative;
    background-color: #f5f7ff;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 100px 0 110px;
    overflow: hidden;
    isolation: isolate;
}

.hhb-hero-banner .hhb-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hhb-hero-banner .container {
    position: relative;
    z-index: 3;
}

.hhb-row {
    margin-top: 50px;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.hhb-banner-content {
    margin-bottom: 40px;
    max-width: 560px;
}

.hhb-subtitle {
    display: inline-block;
    background: rgba(34, 142, 214, 0.1);
    color: #228ed6;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hhb-title {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 800;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.hhb-text {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 32px;
    font-weight: 400;
}

.hhb-cta-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hhb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 22px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(34, 142, 214, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hhb-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(34, 142, 214, 0.25);
}

.hhb-btn-img img {
    max-height: 36px;
    width: auto;
    display: block;
}

.hhb-btn-text {
    color: #1a1a2e;
    font-weight: 600;
    font-size: 15px;
}

/* 文字按钮悬停：绿色文字 + 浅绿背景 */
.hhb-btn:has(.hhb-btn-text):hover {
    background: #e6f7ed;
    border-color: #b7e4c7;
}

.hhb-btn:has(.hhb-btn-text):hover .hhb-btn-text {
    color: #2ea380;
}

.hhb-clients-avatar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hhb-client-img {
    display: inline-flex;
    align-items: center;
}

.hhb-client-img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-left: -12px;
}

.hhb-client-img img:first-child {
    margin-left: 0;
}

.hhb-avatar-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #228ed6;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border: 3px solid #ffffff;
    margin-left: -12px;
    box-shadow: 0 4px 12px rgba(34, 142, 214, 0.25);
}

.hhb-avatar-text {
    color: #5a5a72;
    font-size: 14px;
    font-weight: 500;
}

.hhb-banner-image {
    position: relative;
    text-align: center;
}

.hhb-banner-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 24px 48px rgba(34, 142, 214, 0.18));
    animation: hhb-float 4s ease-in-out infinite;
    border-radius: 20px;
}

@keyframes hhb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* 装饰形状 */
.hhb-shape {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hhb-shape img {
    position: absolute;
    opacity: 0.9;
}

.hhb-shape-1 {
    top: 12%;
    left: 6%;
    width: 60px;
    animation: hhb-rotate 18s linear infinite;
}

.hhb-shape-2 {
    top: 18%;
    right: 8%;
    width: 48px;
    animation: hhb-bounce 5s ease-in-out infinite;
}

.hhb-shape-3 {
    bottom: 14%;
    left: 10%;
    width: 40px;
    animation: hhb-bounce 6s ease-in-out infinite 0.5s;
}

.hhb-shape-4 {
    bottom: 22%;
    right: 14%;
    width: 56px;
    animation: hhb-rotate 22s linear infinite reverse;
}

.hhb-shape-5 {
    top: 45%;
    left: 3%;
    width: 32px;
    animation: hhb-bounce 7s ease-in-out infinite;
}

.hhb-shape-6 {
    top: 8%;
    right: 30%;
    width: 28px;
    animation: hhb-rotate 16s linear infinite;
}

.hhb-shape-7 {
    bottom: 8%;
    right: 4%;
    width: 36px;
    animation: hhb-bounce 5.5s ease-in-out infinite 1s;
}

@keyframes hhb-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes hhb-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* 布局方向 */
.hhb-layout-left .hhb-banner-content {
    margin-left: auto;
}

.hhb-hero-banner .flex-row-reverse {
    flex-direction: row-reverse;
}

/* 响应式适配 */
@media (max-width: 991.98px) {
    .hhb-hero-banner {
        padding: 60px 0 70px;
    }

    .hhb-banner-content {
        margin-bottom: 30px;
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hhb-title {
        font-size: 34px;
    }

    .hhb-text {
        font-size: 15px;
    }

    .hhb-cta-btn {
        justify-content: center;
    }

    .hhb-clients-avatar {
        justify-content: center;
    }

    .hhb-banner-image {
        margin-top: 20px;
    }

    .hhb-banner-image img {
        max-width: 80%;
    }

    .hhb-shape-1 { width: 40px; }
    .hhb-shape-2 { width: 32px; }
    .hhb-shape-3 { width: 28px; }
    .hhb-shape-4 { width: 38px; }
    .hhb-shape-5 { width: 22px; }
    .hhb-shape-6 { width: 20px; }
    .hhb-shape-7 { width: 26px; }
}

@media (max-width: 575.98px) {
    .hhb-hero-banner {
        padding: 40px 0 50px;
    }

    .hhb-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .hhb-text {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .hhb-btn {
        height: 46px;
        padding: 0 16px;
    }

    .hhb-btn-img img {
        max-height: 30px;
    }

    .hhb-client-img img,
    .hhb-avatar-count {
        width: 36px;
        height: 36px;
    }

    .hhb-banner-image img {
        max-width: 100%;
    }

    .hhb-subtitle {
        font-size: 12px;
        padding: 4px 12px;
    }
}

/* 移动端隐藏部分装饰形状以提升性能 */
@media (max-width: 767.98px) {
    .hhb-shape-5,
    .hhb-shape-6 {
        display: none;
    }
}

/* 动画偏好适配：尊重用户 prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hhb-banner-image img,
    .hhb-shape img {
        animation: none;
    }
}
