

.pha-page {
    background: #fff;
}

.pha-page .u-section-title {
    line-height: 44px;
}

.pha-page .u-section-subtitle {
    margin-top: 8px;
}

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

.pha-hero > * {
    --cqw-length: 100cqw; /* 先按容器宽度解析成 px 再进 atan2，避免部分浏览器跨单位返回 0 */
    --hero-scale: tan(atan2(var(--cqw-length), 1920px)); /* hero 实际宽度 / 1920 */
    zoom: var(--hero-scale);
}

.pha-hero-copy {
    padding: 143px 0 0 34px;
}

.pha-hero-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 60px;
    font-weight: 700;
    line-height: 78px;
    letter-spacing: 1.5px;
    color: #1a1a1a;
}

.pha-hero-desc {
    width: 760px;
    max-width: 100%;
    margin: 43px 0 0;
    font-family: var(--font-normal);
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    color: #333;
}

.pha-hero-actions {
    display: flex;
    gap: 28px;
    margin-top: 96px;
}

.pha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 10px;
    font-family: var(--font-medium);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

/* hero 内按钮固定设计值，避免 <980 断点的 .pha-btn 覆盖影响等比缩放 */
.pha-hero-actions .pha-btn {
    height: 56px;
    padding: 0 47px;
    font-size: 24px;
}

.pha-btn--primary {
    background: linear-gradient(90deg, #1c4ede 0%, #1e8af2 100%);
    color: #fff;
}

.pha-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -14px rgba(28, 78, 222, .72);
    color: #fff;
}

.pha-btn--ghost {
    background: #fff;
    border: 1px solid #2f6bea;
    color: #1f66e5;
}

.pha-btn--ghost:hover {
    background: #eef5ff;
    color: #1f66e5;
}

.pha-stats {
    display: flex;
    gap: 15px;
    margin: 73px 0 0;
    padding: 0;
    list-style: none;
}

.pha-stat {
    display: flex;
    min-width: 0;
    height: 146px;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 10px;
    background:url(../images/pha-stat-bg.png);
    box-shadow: 0 8px 18px -10px rgba(110, 165, 235, .35);
}

.pha-stat-line {
    margin: 0;
    font-family: var(--font-medium);
    font-size: 26px;
    font-weight: 500;
    line-height: 36px;
    color: #333;
    white-space: nowrap;
}

.pha-stat-line em {
    font-style: normal;
    font-family: var(--font-bold);
    font-weight: 700;
    color: #1f66e5;
}

.pha-why {
    padding: 94px 0 75px;
    background: #fff;
}

.pha-law-panel {
    height: 693px;
    margin-top: 45px;
    padding: 49px 28px 44px;
    border-radius: 10px;
    background: transparent url("../images/law-panel-bg.png") center top / 100% 100% no-repeat;
}

.pha-law-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 32px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: .5px;
    color: #333;
    text-align: center;
}

.pha-law-meta {
    margin: 20px 0 0;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 27px;
    color: #666;
    text-align: center;
}

.pha-law-meta + .pha-law-meta {
    margin-top: 0;
}

.pha-law-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.pha-law-card {
    height: 466px;
    padding: 26px 20px 22px;
    border-radius: 10px;
    background: #fff;
}

.pha-law-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
    color: #333;
}

.pha-law-head img {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
}

.pha-law-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pha-law-list li {
    position: relative;
    margin: 0 0 0;
    padding-left: 32px;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #333;
}

.pha-law-list li + li {
    margin-top: 20px;
}

.pha-law-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1f66e5;
}

.pha-ref-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 31px;
}

.pha-ref-card {
    height: 526px;
    overflow: hidden;
    padding: 27px 34px;
    background: #fff url("../images/ref-card-bg.png") center top / 100% 100% no-repeat;
}

.pha-ref-tag {
    display: inline-flex;
    height: 40px;
    align-items: center;
    padding: 0 25px;
    border: 1px solid #cfe2f8;
    border-radius: 20px;
    background: #fff;
    font-family: var(--font-medium);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    color: #1f66e5;
}

.pha-ref-title {
    margin: 26px 0 0;
    font-family: var(--font-bold);
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    color: #333;
}

.pha-ref-meta {
    margin: 30px 0 0;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #333;
}

.pha-ref-label {
    display: inline-block;
    margin-top: 13px;
    padding: 0 16px;
    border-radius: 6px;
    background: #dbe9fe;
    font-family: var(--font-medium);
    font-size: 20px;
    font-weight: 500;
    line-height: 36px;
    color: #1f66e5;
}

.pha-ref-text {
    margin: 18px 0 0;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    color: #333;
}

.pha-ref-text + .pha-ref-label {
    margin-top: 22px;
}

.pha-standard {
    padding: 80px 0 99px;
    background: #f2f8fd url("../images/standard-scenes-bg.png") center top / cover no-repeat;
}

.pha-page .pha-standard .u-section-subtitle {
    margin-top: 11px;
}

.pha-std-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 55px;
}

.pha-std-card {
    overflow: hidden;
    background: #fff;
}

.pha-std-head {
    display: flex;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #0659d5;
    font-family: var(--font-bold);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .5px;
    color: #fff;
    text-align: center;
}

.pha-std-body {
    min-height: 271px;
    padding: 17px 20px 24px;
    background: linear-gradient(180deg, #eaf6fd 0%, #f4fbfe 42%, #fff 100%);
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    color: #333;
}

.pha-std-body p {
    margin: 0;
}

.pha-std-body p + p {
    margin-top: 11px;
}

.pha-std-card:nth-child(3) .pha-std-body {
    padding-top: 25px;
    line-height: 30px;
}

.pha-tip {
    margin: 0;
    border-radius: 10px;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #333;
}

.pha-tip b {
    font-family: var(--font-medium);
    font-weight: 500;
}

.pha-tip--std {
    margin-top: 26px;
    padding: 16px 49px 14px 74px;
    background: #d7ecfc;
}

.pha-scene-title {
    margin-top: 68px;
}

.pha-scene-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 21px 20px;
    margin-top: 66px;
}

.pha-scene-card {
    height: 322px;
    padding: 42px 28px 0;
    text-align: center;
}

.pha-scene-icon {
    width: 130px;
    height: 102px;
    margin: 0 auto;
    object-fit: contain;
}

.pha-scene-name {
    margin: 18px 0 0;
    font-family: var(--font-bold);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    color: #333;
}

.pha-scene-desc {
    margin: 17px 0 0;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #666;
}

.pha-page .u-flow.pha-flow {
    padding: 92px 0 0;
    background: #fff;
}

.pha-page .pha-flow {
    --u-flow-circle: 115px;
    --u-flow-arrow-gap: 8px;
    --u-flow-arrow-h: 14px;
    --u-flow-name-size: 30px;
    --u-flow-name-leading: 40px;
    --u-flow-desc-size: 20px;
    --u-flow-desc-leading: 30px;
    --u-flow-desc-color: #666;
}

.pha-page .pha-flow .u-flow-num {
    font-size: 34px;
}

.pha-page .pha-flow .u-flow-list {
    margin-top: 45px;
    padding: 52px 14px 31px;
    border: 1px solid #e2eefb;
    border-radius: 10px;
    background: #fff url("../images/flow-panel-bg.png") center bottom / 100% auto no-repeat;
    box-shadow: 0 10px 30px -18px rgba(80, 150, 230, .45);
}

.pha-page .pha-flow .u-flow-name {
    margin-top: 14px;
}

.pha-page .pha-flow .u-section-subtitle {
    margin-top: 11px;
}

.pha-page .pha-flow .u-flow-desc {
    max-width: 190px;
    margin: 14px auto 0;
}

.pha-flow-tip {
    padding: 19px 0 57px;
    background: #fff;
}

.pha-tip--flow {
    padding: 14px 49px 14px 74px;
    background: #eaf6fd;
}

.pha-stages {
    padding: 70px 0 115px;
    background: #f4f9ff url("../images/stages-section-bg.png") center top / cover no-repeat;
}

.pha-page .pha-stages .u-section-subtitle {
    line-height: 30px;
}

.pha-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 19px 20px;
    margin-top: 59px;
}

.pha-stage-card {
    height: 269px;
    overflow: hidden;
    background: #fff;
}

.pha-stage-head {
    display: flex;
    height: 57px;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: #0659d5;
    font-family: var(--font-bold);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .5px;
    color: #fff;
    text-align: center;
}

.pha-stage-body {
    position: relative;
    padding: 11px 24px 20px;
    background: #fff;
}

.pha-stage-body p {
    width: 240px;
    margin: 0;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #333;
}

.pha-stage-icon {
    position: absolute;
    top: 33px;
    right: 26px;
    width: 90px;
    height: 102px;
    object-fit: contain;
}

.pha-service {
    padding: 71px 0 70px;
    background: #0b5ccc url("../images/service-section-bg.png") center top / cover no-repeat;
}

.pha-service-title {
    color: #fff;
}

.pha-page .pha-service .pha-service-subtitle {
    margin-top: 13px;
    font-size: 18px;
    line-height: 28px;
    color: #eaf3ff;
}

.pha-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px 22px;
    margin-top: 31px;
}

.pha-service-card {
    height: 143px;
    padding: 17px 29px 21px;
    background: #fff;
}

.pha-service-card:nth-child(1),
.pha-service-card:nth-child(2) {
    height: 232px;
}

.pha-service-card--wide {
    grid-column: 1 / -1;
}

.pha-service-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-bold);
    font-size: 30px;
    font-weight: 700;
    line-height: 40px;
    color: #333;
}

.pha-service-head img {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

.pha-service-desc {
    margin: 5px 0 0;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #333;
}

.pha-service-intro {
    margin: 8px 0 0;
    font-family: var(--font-normal);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    color: #333;
}

.pha-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 6px;
    margin: 5px -19px 0 -8px;
    padding: 0;
    list-style: none;
}

.pha-service-tags li {
    display: inline-flex;
    height: 36px;
    align-items: center;
    padding: 0 10px;
    border-radius: 18px;
    background: rgba(1, 55, 177, .1);
    font-family: var(--font-normal);
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
    color: #2C63DF;
    white-space: nowrap;
}

.pha-cta {
    height: 407px;
    padding-top: 103px;
    background: #fff url("../images/cta-bg.png") center top / cover no-repeat;
    text-align: center;
}

.pha-cta-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    letter-spacing: .5px;
    color: #1a1a1a;
}

.pha-cta-title em {
    font-style: normal;
    color: #1f66e5;
}

.pha-cta-desc {
    width: 760px;
    max-width: 100%;
    margin: 28px auto 0;
    font-family: var(--font-normal);
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    color: #333;
}

.pha-cta-actions {
    display: flex;
    justify-content: center;
    gap: 23px;
    margin-top: 39px;
}

.pha-btn--cta-blue {
    width: 342px;
    height: 62px;
    background: linear-gradient(90deg, #1c4ede 0%, #1e8af2 100%);
    font-size: 26px;
    color: #fff;
}

.pha-btn--cta-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -14px rgba(28, 78, 222, .6);
    color: #fff;
}

.pha-btn--cta-white {
    width: 191px;
    height: 62px;
    background: #fff;
    font-size: 26px;
    color: #1a1a1a;
}

.pha-btn--cta-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -18px rgba(30, 80, 200, .45);
    color: #1a1a1a;
}

@media (max-width: 1280px) {
    .pha-std-head,
    .pha-stage-head,
    .pha-scene-name,
    .pha-service-head {
        font-size: 24px;
    }

    .pha-law-panel {
        height: auto;
        padding-bottom: 40px;
    }

    .pha-law-card {
        height: auto;
        min-height: 400px;
    }

    .pha-ref-card {
        height: auto;
        min-height: 480px;
    }
}

@media (max-width: 1080px) {
    .pha-ref-grid,
    .pha-law-grid {
        grid-template-columns: 1fr;
    }

    .pha-law-panel {
        padding: 40px 20px;
    }

    .pha-law-card {
        min-height: 0;
    }

    .pha-ref-card {
        min-height: 0;
    }

    .pha-standard,
    .pha-stages,
    .pha-service {
        background-size: cover;
    }

    .pha-page .pha-flow .u-flow-list {
        padding: 40px 16px 36px;
    }
}

@media (max-width: 980px) {
    .pha-btn {
        height: 48px;
        padding: 0 26px;
        font-size: 18px;
    }

    .pha-std-grid,
    .pha-scene-grid,
    .pha-stage-grid,
    .pha-service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pha-service-card:nth-child(1),
    .pha-service-card:nth-child(2) {
        height: auto;
        min-height: 200px;
    }

    .pha-service-card {
        height: auto;
        min-height: 150px;
    }

    .pha-scene-card {
        height: auto;
        padding-bottom: 30px;
    }

    .pha-scene-icon {
        width: 104px;
        height: 82px;
    }

    .pha-scene-name {
        font-size: 22px;
        line-height: 32px;
    }

    .pha-tip--std,
    .pha-tip--flow {
        padding: 16px 20px;
    }

    .pha-cta {
        height: auto;
        padding: 64px 0;
    }

    .pha-cta-title {
        font-size: 26px;
        line-height: 36px;
    }

    .pha-cta-actions {
        flex-wrap: wrap;
        margin-top: 26px;
    }

    .pha-btn--cta-blue,
    .pha-btn--cta-white {
        width: 260px;
        height: 54px;
        font-size: 20px;
    }

    .pha-page .pha-flow .u-flow-list {
        flex-direction: column;
        gap: 22px;
        padding: 28px 20px;
        background-image: none;
    }

    .pha-page .pha-flow .u-flow-list {
        align-items: center;
    }

    .pha-page .pha-flow .u-flow-step {
        width: 100%;
        max-width: 380px;
        flex: 0 0 auto;
    }

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

@media (max-width: 640px) {
    .pha-std-grid,
    .pha-scene-grid,
    .pha-stage-grid,
    .pha-service-grid {
        grid-template-columns: 1fr;
    }

    .pha-std-body p,
    .pha-law-list li,
    .pha-ref-text,
    .pha-ref-meta {
        font-size: 16px;
        line-height: 28px;
    }

    .pha-cta-desc {
        width: auto;
        font-size: 16px;
        line-height: 28px;
    }
}

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

    .pha-hero-desc {
        font-size: calc(24px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
        line-height: calc(36px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }

    .pha-hero-actions .pha-btn {
        font-size: calc(24px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }
}
