

.alg-page {
    overflow-x: hidden;
    background: #fff;
    color: #333;
    font-family: var(--font-normal);
}


.alg-page .alg-line {
    display: block;
}


/* 首屏 banner：宽度始终 100vw，按 1920 × 600 设计比例，内容等比缩放；
   字号在桌面/平板上按档位放大后，盒子允许长高，保证文案不被裁切 */
.alg-page .alg-hero {
    position: relative;
    background: #dcefff url("../images/hero-bg.png") center top / 100% 100% no-repeat;
    overflow: hidden;
    width: 100%;
    container-type: inline-size;
    
    min-height: calc(100vw * 600 / 1920);
    height: auto;
}

.alg-page .alg-hero > * {
    --hero-scale: tan(atan2(var(--cqw-length), 1920px)); /* hero 实际宽度 / 1920 */
    zoom: var(--hero-scale);
}

.alg-page .alg-hero .container {
    --cqw-length: 100cqw;
    position: relative;
    height: 100%;
}


.alg-page .alg-hero-copy {
    width: 860px;
    margin-left: 128px;
    padding-top: 113px;
    text-align: center;
}


.alg-page .alg-hero-label {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 34px;
    font-weight: 700;
    line-height: 46px;
    color: #142aed;
    background: linear-gradient(90deg, #142aed 0%, #142aed 40%, #27a8fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.alg-page .alg-hero-title {
    margin: 11px -80px 0;
    font-family: var(--font-bold);
    font-size: 72px;
    font-weight: 700;
    line-height: 96px;
    letter-spacing: 3.5px;
    white-space: nowrap;
    color: #142aed;
    background: linear-gradient(90deg, #142aed 0%, #142aed 40%, #27a8fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.alg-page .alg-hero-tags {
    display: flex;
    width: 654px;
    flex-direction: column;
    gap: 36px;
    margin: 59px 0 0 3px;
    padding: 0;
    list-style: none;
}

.alg-page .alg-hero-tag-row {
    display: flex;
    height: 60px;
    background: #ecf6fd;
    border: 1px solid #4895fe;
    border-radius: 8px;
}

.alg-page .alg-hero-tag-item {
    position: relative;
    display: flex;
    width: 327px;
    align-items: center;
    padding-left: 80px;
}

.alg-page .alg-hero-tag-icon {
    position: absolute;
    top: -18px;
    left: 20px;
    width: 44px;
    height: 44px;
}

.alg-page .alg-hero-tag-text {
    font-family: var(--font-bold);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #142aed;
    background: linear-gradient(90deg, #142aed 0%, #142aed 40%, #27a8fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}


.alg-page .alg-necessity {
    position: relative;
    height: 583px;
    background: #f4f9ff url("../images/necessity-bg.png") center top / 1919px 583px no-repeat;
}

.alg-page .alg-necessity-inner {
    display: flex;
    align-items: flex-start;
    padding-top: 75px;
}

.alg-page .alg-necessity-left {
    width: 500px;
    flex: 0 0 auto;
}

.alg-page .alg-necessity-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 30px;
    font-weight: 700;
    line-height: 42px;
    color: #333;
}

.alg-page .alg-necessity-text {
    margin: 99px 0 0;
    font-size: 22px;
    line-height: 40px;
    color: #3c4054;
}


.alg-page .alg-warn {
    position: relative;
    width: 630px;
    height: 378px;
    flex: 0 0 auto;
    margin: 67px 18px 0 auto;
    padding: 41px 30px 0;
}

.alg-page .alg-warn-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
    color: #3c4054;
    text-align: center;
}

.alg-page .alg-warn-body {
    position: relative;
    margin-top: 52px;
}

.alg-page .alg-warn-list {
    position: relative;
    z-index: 1;
    display: flex;
    width: 360px;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}


.alg-page .alg-warn-item {
    position: relative;
    display: flex;
    height: 80px;
    align-items: center;
    padding: 0 16px 0 38px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(89, 143, 204, .12);
}

.alg-page .alg-warn-dot {
    position: absolute;
    top: 19px;
    left: 15px;
    width: 8px;
    height: 8px;
    background: #ff1200;
    border-radius: 50%;
    box-shadow: 0 0 7px rgba(255, 18, 0, .5);
}

.alg-page .alg-warn-text {
    margin: 0;
    font-size: 20px;
    line-height: 30px;
    color: #3c4054;
}


.alg-page .alg-warn-img {
    position: absolute;
    top: 19px;
    left: 390px;
    width: 150px;
    height: 144px;
    pointer-events: none;
}


.alg-page .alg-category {
    padding: 70px 0 0;
}

.alg-page .alg-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 232px);
    gap: 10px;
    justify-content: center;
    margin-top: 57px;
}

.alg-page .alg-cat-card {
    display: flex;
    height: 380px;
    flex-direction: column;
    overflow: hidden;
}

.alg-page .alg-cat-img {
    width: 232px;
    height: 170px;
    flex: 0 0 auto;
}

.alg-page .alg-cat-body {
    flex: 1 1 auto;
    padding: 15px 16px 0;
}

.alg-page .alg-cat-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #333;
    text-align: center;
}

.alg-page .alg-cat-text {
    margin: 9px 0 0;
    font-size: 18px;
    line-height: 26px;
    color: #666;
}


.alg-page .alg-industry {
    padding: 65px 0 67px;
}

.alg-page .alg-industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 285px);
    gap: 20px;
    justify-content: center;
    margin-top: 55px;
}


.alg-page .alg-ind-card {
    display: flex;
    height: 285px;
    flex-direction: column;
    align-items: center;
    padding-top: 49px;
    background: url("../images/industry-card-bg.png") center / 100% 100% no-repeat;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(64, 128, 224, .06);
    transition: transform .22s ease, box-shadow .22s ease;
}

.alg-page .alg-ind-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -18px rgba(78, 162, 255, .5);
}

.alg-page .alg-ind-icon {
    width: 90px;
    height: 90px;
    flex: 0 0 auto;
}

.alg-page .alg-ind-title {
    margin: 20px 0 0;
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #333;
    text-align: center;
}


.alg-page .alg-ind-text {
    width: 217px;
    margin: 27px auto 0;
    font-size: 18px;
    line-height: 26px;
    color: #666;
    text-align: left;
}


.alg-page .alg-industry .u-consult-wrap {
    margin-top: 62px;
}


.alg-page .alg-flow {
    padding: 41px 0 0;
    background:
        repeating-linear-gradient(116deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0) 118px,
            rgba(255, 255, 255, .05) 156px,
            rgba(255, 255, 255, 0) 196px),
        linear-gradient(180deg,
            #d3effd 0%,
            #dcf1fd 8%,
            #e6f4fd 16%,
            #edf5fd 22%,
            #f0f6fd 32%,
            #eef6fd 40%,
            #eaf4fd 50%,
            #e3f2fd 58%,
            #ddf1fd 66%,
            #d7effd 74%,
            #d2eefd 82%,
            #cceefd 90%,
            #c6ecfd 96%,
            #c5ecfd 100%);
    height: 500px;
    overflow: hidden;
}

.alg-page .alg-flow-list {
    display: flex;
    width: 1000px;
    margin: 53px auto 0;
    padding: 0;
    list-style: none;
}

.alg-page .alg-flow-step {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}


.alg-page .alg-flow-icon {
    display: flex;
    width: 110px;
    height: 110px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(97, 170, 240, .18);
}

.alg-page .alg-flow-icon img {
    width: 54px;
    height: 54px;
}


.alg-page .alg-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 27px;
    left: calc(50% + 112px);
    width: 62px;
    height: 56px;
    background: url("../images/flow-arrow.png") center / contain no-repeat;
    pointer-events: none;
}

.alg-page .alg-flow-name {
    margin: 35px 0 0;
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: 700;
    line-height: 36px;
    color: #333;
}

.alg-page .alg-flow-desc {
    width: 250px;
    margin: 6px auto 0;
    font-size: 18px;
    line-height: 24px;
    color: #333;
}


.alg-page .alg-advantage {
    padding: 72px 0 97px;
}

.alg-page .alg-advantage .u-section-subtitle {
    margin-top: 19px;
}

.alg-page .alg-adv-cards {
    display: grid;
    grid-template-columns: repeat(3, 386px);
    gap: 21px;
    justify-content: center;
    margin-top: 40px;
}


.alg-page .alg-adv-card {
    height: 116px;
    padding-top: 21px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    text-align: center;
}

.alg-page .alg-adv-card-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: #333;
}

.alg-page .alg-adv-card-text {
    margin: 6px 0 0;
    font-size: 20px;
    line-height: 26px;
    color: #666;
}


.alg-page .alg-adv-panel {
    display: grid;
    height: 210px;
    grid-template-columns: repeat(8, 1fr);
    align-items: start;
    margin-top: 26px;
    padding: 36px 40px 0;
}

.alg-page .alg-adv-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.alg-page .alg-adv-item img {
    width: 94px;
    height: 94px;
}

.alg-page .alg-adv-item-name {
    margin-top: 15px;
    font-family: var(--font-bold);
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    color: #000;
    white-space: nowrap;
}


@media (max-width: 1279px) {
    .alg-page .alg-necessity-left {
        width: 440px;
    }

    .alg-page .alg-necessity-text {
        margin-top: 60px;
    }

    .alg-page .alg-category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .alg-page .alg-cat-img {
        width: 100%;
        height: auto;
    }

    .alg-page .alg-industry-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .alg-page .alg-adv-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .alg-page .alg-necessity {
        height: auto;
        padding: 56px 0 64px;
        background-size: cover;
    }

    .alg-page .alg-necessity-inner {
        flex-wrap: wrap;
        gap: 40px;
        padding-top: 0;
    }

    .alg-page .alg-necessity-left {
        width: 100%;
    }

    .alg-page .alg-necessity-text {
        margin-top: 28px;
    }

    .alg-page .alg-warn {
        width: 100%;
        max-width: 630px;
        margin: 0 auto;
    }

    .alg-page .alg-category {
        padding-top: 56px;
    }

    .alg-page .alg-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .alg-page .alg-cat-card {
        height: auto;
        padding-bottom: 20px;
    }

    .alg-page .alg-industry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .alg-page .alg-flow {
        height: auto;
        padding-bottom: 56px;
    }

    .alg-page .alg-flow-list {
        width: 100%;
        flex-wrap: wrap;
        gap: 34px 0;
    }

    .alg-page .alg-flow-step {
        flex: 0 0 50%;
    }

    .alg-page .alg-flow-step:not(:last-child)::after {
        display: none;
    }

    .alg-page .alg-adv-panel {
        height: auto;
        padding: 30px 24px 34px;
        grid-template-columns: repeat(4, 1fr);
        gap: 26px 0;
    }
}

@media (max-width: 760px) {
    .alg-page .alg-necessity-title {
        font-size: 24px;
        line-height: 36px;
    }

    .alg-page .alg-necessity-text {
        font-size: 16px;
        line-height: 30px;
    }

    .alg-page .alg-warn {
        height: auto;
        padding: 24px 20px 28px;
    }

    .alg-page .alg-warn-title {
        font-size: 20px;
        line-height: 30px;
    }

    .alg-page .alg-warn-body {
        margin-top: 24px;
    }

    .alg-page .alg-warn-list {
        width: 100%;
    }

    .alg-page .alg-warn-item {
        height: auto;
        min-height: 70px;
        padding: 14px 16px 14px 34px;
    }

    .alg-page .alg-warn-text {
        font-size: 16px;
        line-height: 26px;
    }

    .alg-page .alg-warn-img {
        display: none;
    }

    .alg-page .alg-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .alg-page .alg-cat-card {
        height: auto;
    }

    .alg-page .alg-industry-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .alg-page .alg-flow-step {
        flex: 0 0 100%;
    }

    .alg-page .alg-adv-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .alg-page .alg-adv-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 桌面/平板：首屏文案比例系数 = max(--hero-typo 断点档位, --hero-scale)。
   视口 ≤ 1920 时取断点档位（小屏字号比设计值略大，避免字太小）；
   > 1920（宽屏 / 浏览器缩小页面）时取 hero 缩放比，字号严格跟着 banner 等比放大，
   这样滚轮缩放时「字 / 按钮 / 背景图」的比例保持不变。 */
@media (min-width: 1024px) {
    .alg-page .alg-hero-label {
        font-size: calc(34px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
        line-height: calc(46px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }

    .alg-page .alg-hero-title {
        font-size: calc(72px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
        line-height: calc(96px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }

    .alg-page .alg-hero-tag-text {
        font-size: calc(32px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }
}
