/* ===== HUCA software page — hero ===== */
body.page-inner {
    background: #FAFCFD;
}

.software-hero {
    position: relative;
    width: 100%;
    height: calc(1080 * var(--rpx));
    overflow: hidden;
    color: var(--text-primary);
}

.software-hero .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.software-hero .hero-bg-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.software-hero .hero-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.software-hero .hero-inner .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding-top: calc(264 * var(--rpx));
    padding-bottom: calc(220 * var(--rpx));
    box-sizing: border-box;
}

.software-hero .hero-title {
    margin: 0;
    font-size: calc(58 * var(--fpx-50));
    font-weight: 600;
    line-height: calc(68 / 58);
}

.software-hero .hero-subtitle {
    margin: calc(16 * var(--rpx)) 0 0;
    max-width: calc(640 * var(--rpx));
    font-size: calc(24 * var(--fpx));
    font-weight: 600;
    line-height: calc(36 / 24);
}

.software-hero .feature-swiper-outer {
    margin-top: auto;
    overflow: visible;
}

.software-hero .feature-swiper.swiper {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.software-hero .feature-swiper .swiper-wrapper {
    align-items: stretch;
}

.software-hero .feature-slide {
    height: auto;
    flex-shrink: 0;
}

@media (min-width: 829px) {
    .software-hero .feature-slide {
        width: auto !important;
    }
}

.software-hero .feature-grid {
    display: grid;
    gap: 0.625%;
    grid-template-columns: minmax(0, 730fr) minmax(0, 280fr) minmax(0, 280fr) minmax(0, 280fr);
    grid-auto-rows: calc(260 * var(--rpx));
    margin-top: auto;
    transition: grid-template-columns 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.software-hero .feature-grid.is-expanded-col-0 {
    grid-template-columns: minmax(0, 730fr) minmax(0, 280fr) minmax(0, 280fr) minmax(0, 280fr);
}

.software-hero .feature-grid.is-expanded-col-1 {
    grid-template-columns: minmax(0, 280fr) minmax(0, 730fr) minmax(0, 280fr) minmax(0, 280fr);
}

.software-hero .feature-grid.is-expanded-col-2 {
    grid-template-columns: minmax(0, 280fr) minmax(0, 280fr) minmax(0, 730fr) minmax(0, 280fr);
}

.software-hero .feature-grid.is-expanded-col-3 {
    grid-template-columns: minmax(0, 280fr) minmax(0, 280fr) minmax(0, 280fr) minmax(0, 730fr);
}

.software-hero .feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: calc(30 * var(--rpx));
    border-radius: calc(10 * var(--rpx));
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(calc(12 * var(--rpx)));
    box-shadow: 0 calc(5 * var(--rpx)) calc(15 * var(--rpx)) rgba(0, 12, 36, 0.1);
    color: var(--text-primary);
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.software-hero .feature-card.is-expanded {
    background: var(--brand-red);
    color: #fff;
}

html.low-gfx .software-hero .feature-card {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.92);
}

html.low-gfx .software-hero .feature-card.is-expanded {
    background: var(--brand-red);
}

.software-hero .feature-main {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.software-hero .feature-title {
    margin: 0;
    flex-shrink: 0;
    font-size: calc(20 * var(--fpx));
    font-weight: 600;
    line-height: calc(30 / 20);
}

.software-hero .feature-detail {
    position: relative;
    flex-shrink: 0;
    width: calc(480 / 1600 * var(--wrapper-width));
    max-width: 100%;
    min-height: calc(60 * var(--rpx));
    margin-top: calc(16 * var(--rpx));
    overflow: hidden;
}

.software-hero .feature-plus {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: calc(20 * var(--rpx));
    height: calc(20 * var(--rpx));
    object-fit: contain;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.software-hero .feature-desc {
    margin: 0;
    font-size: calc(16 * var(--fpx));
    font-weight: 400;
    line-height: calc(30 / 16);
    display: none;
}

.software-hero .feature-card.is-expanded .feature-plus {
    opacity: 0;
    visibility: hidden;
}

.software-hero .feature-card.is-expanded .feature-desc {
    display: block;
}

.software-hero .feature-corner {
    position: absolute;
    right: calc(30 * var(--rpx));
    bottom: calc(30 * var(--rpx));
    z-index: 0;
    width: calc(58 * var(--rpx));
    height: calc(54 * var(--rpx));
    pointer-events: none;
}

.software-hero .feature-corner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.35s ease;
}

.software-hero .feature-card.is-expanded .feature-corner img {
    filter: brightness(0) invert(1);
}

@media (min-width: 829px) and (max-width: 1200px) {
    .software-hero {
        height: auto;
        min-height: calc(840 * var(--rpx));
    }

    .software-hero .hero-inner .wrapper {
        padding-top: calc(180 * var(--rpx));
        padding-bottom: calc(60 * var(--rpx));
    }

    .software-hero .feature-grid,
    .software-hero .feature-grid.is-expanded-col-0,
    .software-hero .feature-grid.is-expanded-col-1,
    .software-hero .feature-grid.is-expanded-col-2,
    .software-hero .feature-grid.is-expanded-col-3 {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: calc(10 * var(--rpx));
    }

    .software-hero .feature-card {
        min-height: calc(120 * var(--rpx));
    }
}

/* ===== @828 mobile ===== */
@media (max-width: 828px) {
    .software-hero {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding-top: var(--header-height);
    }

    .software-hero .hero-bg {
        position: static;
        flex-shrink: 0;
        width: 100%;
        height: calc(600 * var(--rpx));
        margin-top: calc(-1 * var(--header-height));
        z-index: 0;
    }

    .software-hero .hero-bg-image {
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .software-hero .hero-inner {
        position: relative;
        z-index: 1;
        flex: none;
        height: auto;
        margin-top: calc(-240 * var(--rpx));
    }

    .software-hero .hero-inner .wrapper {
        height: auto;
        padding-top: 0;
        padding-bottom: calc(48 * var(--rpx));
    }

    .software-hero .hero-title {
        font-size: calc(36 * var(--fpx));
        text-align: left;
    }

    .software-hero .hero-subtitle {
        max-width: none;
        font-size: calc(18 * var(--fpx));
        font-weight: 600;
        line-height: calc(28 / 18);
        text-align: left;
    }

    .software-hero .feature-swiper-outer {
        margin-top: calc(32 * var(--rpx));
        overflow: visible;
    }

    .software-hero .feature-swiper.swiper,
    .software-hero .feature-swiper .swiper-wrapper {
        overflow: visible;
    }

    .software-hero .feature-swiper.swiper {
        touch-action: pan-y pinch-zoom;
    }

    .software-hero .feature-swiper .swiper-wrapper {
        align-items: stretch;
    }

    .software-hero .feature-grid,
    .software-hero .feature-grid.is-expanded-col-0,
    .software-hero .feature-grid.is-expanded-col-1,
    .software-hero .feature-grid.is-expanded-col-2,
    .software-hero .feature-grid.is-expanded-col-3 {
        display: flex;
        gap: 0;
        margin-top: 0;
    }

    /* feature-grid 与 swiper-wrapper 同元素；须保留 transform 过渡，否则松手瞬间归位 */
    .software-hero .feature-swiper .swiper-wrapper {
        transition-property: transform;
        transition-timing-function: ease-out;
    }

    .software-hero .feature-slide {
        display: flex;
        width: 60vw;
        height: auto;
        opacity: var(--feature-progress-opacity, 0.35);
        transition: opacity 0.15s ease;
    }

    .software-hero .feature-swiper.is-scrolling .feature-slide {
        transition: none;
    }

    .software-hero .feature-slide.swiper-slide-active {
        opacity: 1;
    }

    .software-hero .feature-card {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
        flex: 1;
        padding: calc(36 * var(--rpx));
        cursor: default;
        text-align: center;
    }

    .software-hero .feature-corner {
        position: static;
        flex-shrink: 0;
        width: calc(88 * var(--rpx));
        height: calc(82 * var(--rpx));
        margin-bottom: calc(24 * var(--rpx));
    }

    .software-hero .feature-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-height: 0;
    }

    .software-hero .feature-title {
        font-size: calc(22 * var(--fpx));
        line-height: calc(32 / 22);
        text-align: center;
    }

    .software-hero .feature-detail {
        width: 100%;
        min-height: 0;
        margin-top: calc(16 * var(--rpx));
        text-align: center;
    }

    .software-hero .feature-plus {
        display: none;
    }

    .software-hero .feature-desc {
        display: block;
        font-size: calc(16 * var(--fpx));
        line-height: calc(26 / 16);
    }

    .software-hero .feature-slide.swiper-slide-active .feature-card {
        background: var(--brand-red);
        color: #fff;
    }

    .software-hero .feature-slide.swiper-slide-active .feature-corner img {
        filter: brightness(0) invert(1);
    }

    html.low-gfx .software-hero .feature-slide.swiper-slide-active .feature-card {
        background: var(--brand-red);
    }
}

