/* 横幅区域优化 - 更细腻的动画和层次感 */
.banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 7.5rem;
    display: flex;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* 背景视差效果 */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 0;
    transition: transform 8s ease;
}

.banner:hover::after {
    transform: scale(1.1);
}

.banner .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner h1 {
    margin-bottom: 25px;
    animation: fadeInDown 1s ease-out;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.banner p {
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 新增banner内容样式 */
.banner .banner-content {
    animation: fadeInUp 1s ease-out 0.6s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #e0e0e0;
    margin-top: 20px;
}

/* 动画优化 - 新增舒缓的动画曲线 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 核心优化1：更舒缓的淡入缩放动画 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 核心优化2：图片缓入动画 */
@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 核心优化3：文字渐入动画 */
@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 核心统一样式：智能化解决方案 + 智能体产品 ========== */
/* 1. 统一标签样式 (text_b / text_f) */
.section-tag {
    display: inline-block;
    background: #e6f7ff;
    color: var(--color-primary);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 123, 187, 0.1);
    display: inline-block;
}

/* 2. 统一主标题样式 (text_a / text_e) */
.solution-header h2,
.products-header h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-align: center;
}

/* 3. 统一描述文本样式 (text_c / text_g) */
.solution-header div,
.products-header .desc {
    font-size: 16px;
    color: var(--text-color2);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

/* ========== 智能化解决方案区域 ========== */
.solution-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #eef5f9 100%);
    color: var(--text-color);
    padding: 120px 0;
    position: relative;
    overflow-x: hidden;
}

.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('?static/images/industry-ai/bg-grid.png') repeat;
    opacity: 0.1;
    z-index: 0;
}

.solution-header {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.architecture-section {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.architecture-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.architecture-image {
    margin: 0 auto;
    transition: all 0.5s ease;
    border-radius: 12px;
    overflow: hidden;
}

.architecture-image:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.architecture-image img {
    transition: all 0.5s ease;
    max-width: 100%;
}

.architecture-image img:hover {
    box-shadow: 0 0 100px rgba(0, 212, 255, 0.6);
}

.architecture-placeholder {
    background: linear-gradient(135deg, #00d4ff, #0066cc);
    border-radius: 12px;
    padding: 80px 40px;
    box-shadow: 0 0 80px rgba(0, 212, 255, 0.3);
    transition: all 0.5s ease;
    max-width: 800px;
    margin: 0 auto;
}

.architecture-placeholder:hover {
    box-shadow: 0 0 100px rgba(0, 212, 255, 0.6);
    transform: scale(1.03);
    animation: pulse 3s infinite ease-in-out;
}

/* ========== 智能体产品区域 ========== */
.products-section {
    background: linear-gradient(180deg, #eef5f9 100%, #f8f9fa 0%);
    padding: 120px 0;
    position: relative;
    overflow-x: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 187, 0.03), rgba(0, 212, 255, 0.03));
    z-index: 0;
}

.products-container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.products-header {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 1s ease-out;
}

/* 核心优化1：产品卡片横向排列不换行 - 取消滚动条 + 左对齐 */
.products-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    /* 取消滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* 左对齐 */
    justify-content: flex-start;
    transform: translateZ(0);
    will-change: scroll-position;
}

/* Chrome/Safari隐藏滚动条 */
.products-grid::-webkit-scrollbar {
    display: none;
}

/* 核心优化2：使用CSS变量管理宽度 */
:root {
    --product-card-width: 350px;
    --product-card-hover-width: 800px;
    --product-card-height: 500px;
    --base-transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    --fast-transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 响应式CSS变量 */
@media (max-width: 992px) {
    :root {
        --product-card-width: 280px;
        --product-card-hover-width: 700px;
        --product-card-height: 450px;
    }

    .solution-header h2,
    .products-header h2 {
        font-size: 32px;
    }

    .solution-header div,
    .products-header .desc {
        font-size: 15px;
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    :root {
        --product-card-width: 260px;
        --product-card-hover-width: 600px;
        --product-card-height: 400px;
    }

    .solution-header h2,
    .products-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    :root {
        --product-card-width: 240px;
        --product-card-hover-width: calc(100vw - 40px);
        --product-card-height: 380px;
    }

    .solution-header h2,
    .products-header h2 {
        font-size: 24px;
    }

    .section-tag {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* 核心优化3：产品卡片基础样式 */
.product-item {
    flex: 0 0 var(--product-card-width);
    height: var(--product-card-height);
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: var(--base-transition);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(0, 123, 187, 0.05);
    transform: translateZ(0);
    will-change: flex-basis;
}

/* 激活状态（初始首卡/最后悬停的卡片） */
.product-item.active {
    flex: 0 0 var(--product-card-hover-width) !important;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 187, 0.1);
}

/* 悬停样式（优先级低于active类） */
.product-item:hover {
    flex: 0 0 var(--product-card-hover-width) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 187, 0.1);
    z-index: 10;
    transform: translateY(0) !important;
}

/* 背景图片 - 未激活/悬停时保持原有样式 */
.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    opacity: 1;
    transition: var(--base-transition);
}

/* 激活/悬停卡片的背景图片满铺 */
.product-item.active .product-image,
.product-item:hover .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    animation: imageFadeIn 1s ease-out;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--base-transition);
}

/* 激活/悬停时图片轻微缩放 */
.product-item.active .product-image img,
.product-item:hover .product-image img {
    transform: scale(1.02);
}

/* 内容区域 - 未激活/悬停保持原有样式 */
.product-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    background: transparent;
    color: inherit;
    height: auto;
    display: block;
    transition: var(--base-transition);
}

/* 激活/悬？ㄆ哪谌萸蚓酉孪允 */
.product-item.active .product-content,
.product-item:hover .product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    color: white;
}

/* 产品图标 */
.product-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #f5f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: var(--fast-transition);
    z-index: 3;
    opacity: 1;
    transform: translateY(0);
}

/* 激活/悬停时图标样式变化 */
.product-item.active .product-icon,
.product-item:hover .product-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05) translateY(0);
    animation: textFadeIn 0.8s ease-out 0.2s both;
    filter: brightness(0) invert(1);
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 产品标题 */
.product-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.3;
    z-index: 3;
    transition: var(--fast-transition);
}

/* 激活/悬停时标题变白 */
.product-item.active .product-title,
.product-item:hover .product-title {
    color: white;
    animation: textFadeIn 0.8s ease-out 0.4s both;
}

/* 产品描述 */
.product-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color2);
    margin-bottom: 20px;
    z-index: 3;
    transition: var(--fast-transition);
    max-width: 100%;
}

/* 激活/悬停时描述文字变白 */
.product-item.active .product-description,
.product-item:hover .product-description {
    color: white;
    animation: textFadeIn 0.8s ease-out 0.6s both;
    flex: none;
}

.product-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    z-index: 3;
}

.product-link {
    display: inline-block;
    padding: 9px 18px;
    background: #f5f9ff;
    color: var(--color-primary);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--fast-transition);
    text-decoration: none;
    z-index: 3;
}

.product-item.active .product-link,
.product-item:hover .product-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: textFadeIn 0.8s ease-out 0.7s both;
}

.product-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 187, 0.2);
}

/* 了解更多按钮 */
.product-more {
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--fast-transition);
    position: relative;
    z-index: 10;
}

/* 激活状态默认显示按钮 */
.product-item.active .product-more {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeInScale 1s ease-out 0.8s both;
    margin-top: 0;
}

/* 悬停显示按钮 */
.product-item:hover .product-more {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeInScale 1s ease-out 0.8s both;
    margin-top: 0;
}

.product-more a {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(90deg, var(--color-primary), #0099cc);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--fast-transition);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 123, 187, 0.15);
    border: none;
}

.product-more a:hover {
    background: linear-gradient(90deg, #005a8b, var(--color-primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 123, 187, 0.25);
}

/* 产品卡片动画延迟优化 */
.product-item:nth-child(1) {
    animation-delay: 0.1s;
}

.product-item:nth-child(2) {
    animation-delay: 0.2s;
}

.product-item:nth-child(3) {
    animation-delay: 0.3s;
}

.product-item:nth-child(4) {
    animation-delay: 0.4s;
}

.product-item:nth-child(5) {
    animation-delay: 0.5s;
}

.product-item:nth-child(6) {
    animation-delay: 0.6s;
}

/* 响应式适配优化 */
@media (max-width: 992px) {
    .banner {
        padding: 80px 0;
        height: auto;
        min-height: 60vh;
    }

    .banner h1 {
        font-size: 36px;
    }

    .banner p {
        font-size: 18px;
    }

    .banner .banner-content {
        font-size: 14px;
    }

    .solution-section,
    .products-section {
        padding: 80px 0;
    }

    /* 移动端激活/悬停内容适配 */
    .product-item.active .product-content,
    .product-item:hover .product-content {
        padding: 30px 25px;
    }

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

    .product-title {
        font-size: 20px;
    }

    .product-description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .banner {
        min-height: 50vh;
    }

    .banner h1 {
        font-size: 32px;
    }

    .product-content {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .banner {
        min-height: 40vh;
    }

    .banner h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .banner p {
        font-size: 16px;
    }

    .product-icon {
        width: 50px;
        height: 50px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-more a {
        padding: 10px 20px;
        font-size: 13px;
    }
}
