/* =================================
   首页 About 卡片毛玻璃效果
   ================================= */
.hs-home-about-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 248, 251, 0.64) 100%) !important;
    border: 1px solid rgba(209, 213, 219, 0.72);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hs-home-about-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 248, 251, 0.88) 100%) !important;
    }
}

/* =================================
   左侧手风琴文字展开/收起动画
   ================================= */
.solutions-list .solution-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.solutions-list .solution-desc.active {
    max-height: 400px;
    /* 根据内容可调整 */
    opacity: 1;
}
.solutions-list .solution-desc.active a {
    color: #aaa;
}
.solutions-list .solution-desc.active a:hover {
    color: #f0001e;
}
.solutions-list .solution-title {
    cursor: pointer;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.solutions-list .solution-title.active {
    background: linear-gradient(90deg, #f0001e 0%, #000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: #f0001e;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

/* =================================
   右侧图片淡入淡出动画
   ================================= */
.solutions-images {
    position: relative;
    min-height: 300px;
    /* 保证容器高度 */
}

.solutions-images .solution-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    border-radius: 10px;
}

.solutions-images .solution-img.active {
    opacity: 1;
    z-index: 1;
}

/* =================================
   响应式调整
   ================================= */
@media (max-width: 768px) {
    .solutions-container {
        flex-direction: column;
    }

    .solutions-images {
        min-height: 200px;
    }

    .solutions-list .solution-title {
        font-size: 16px;
    }

    .solutions-list .solution-desc {
        font-size: 14px;
    }
}

/* =================================
   生命周期服务卡片：深海蓝液态玻璃
   ================================= */
.lifecycle-service-step {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(143, 209, 245, 0.34) !important;
    background:
        radial-gradient(120% 90% at 12% -10%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 38%, transparent 62%),
        linear-gradient(135deg, rgba(5, 42, 69, 0.88) 0%, rgba(0, 75, 120, 0.74) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 0 0 1px rgba(143, 209, 245, 0.06),
        0 20px 46px rgba(1, 23, 39, 0.32),
        0 6px 16px rgba(0, 120, 192, 0.18) !important;
    -webkit-backdrop-filter: blur(24px) saturate(155%) contrast(108%);
    backdrop-filter: blur(24px) saturate(155%) contrast(108%);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.lifecycle-service-step:hover {
    border-color: rgba(178, 226, 255, 0.56) !important;
    background:
        radial-gradient(120% 90% at 12% -10%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 38%, transparent 62%),
        linear-gradient(135deg, rgba(5, 42, 69, 0.82) 0%, rgba(0, 93, 148, 0.70) 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 0 0 1px rgba(143, 209, 245, 0.10),
        0 24px 56px rgba(1, 23, 39, 0.38),
        0 8px 20px rgba(0, 120, 192, 0.28) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .lifecycle-service-step {
        background: rgba(5, 42, 69, 0.94) !important;
    }
}

/* =================================
   首页合作伙伴图片网格
   ================================= */
.home-partner-grid {
    display: grid !important;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: clamp(14px, 1.2vw, 24px) !important;
}

.home-partner-grid > * {
    min-width: 0;
    aspect-ratio: 4 / 3;
}

.home-partner-grid > .home-partner-item {
    box-sizing: border-box;
    padding: clamp(8px, 0.8vw, 16px) !important;
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12), 0 2px 5px rgba(15, 23, 42, 0.06) !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-partner-grid > .home-partner-item:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16), 0 3px 8px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-2px);
}

.home-partner-grid :is(figure, .wp-block-image, picture) {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3;
    margin: 0 !important;
    overflow: hidden;
}

.home-partner-grid img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 1100px) {
    .home-partner-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-partner-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .home-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
