
.cpa-page {
    --cpa-blue: #1a5fd8;
    --cpa-btn: #1c6fef;
    --cpa-text: #333;
    --cpa-line: #dbeefb;

    color: var(--cpa-text);
    background: #fff;
    font-family: var(--font-normal);
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
}

.cpa-page *,
.cpa-page *::before,
.cpa-page *::after { box-sizing: border-box; }

.cpa-page :where(p, h1, h2, h3, h4) { margin: 0; }

.cpa-page h1,
.cpa-page h2,
.cpa-page h3,
.cpa-page h4 {
    color: var(--cpa-text);
    font-family: var(--font-bold);
    font-weight: 700;
}

.cpa-page img { display: block; max-width: 100%; }

.cpa-container { width: 1200px; margin: 0 auto; }

.cpa-section-title {
    font-size: 36px;
    line-height: 50px;
    text-align: center;
}

/* 首屏 banner：宽度始终 100vw，锁定 1920 × 634 设计比例，整段等比缩放 */
.cpa-hero {
    position: relative;
    overflow: hidden;
    background: #dce9fd;
    width: 100%;
    container-type: inline-size;
    min-height: calc(100vw * 634 / 1920);
    height: auto;
}

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

.cpa-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
}

.cpa-hero-inner {
    position: relative;
    width: 1080px;
    height: 100%;
    margin: 0 auto;
    padding-top: 117px;
}

.cpa-page .cpa-hero-title {
    color: #000;
    font-size: 62px;
    line-height: 76px;
}

.cpa-page .cpa-hero-desc {
    margin-top: 38px;
    font-size: 25px;
    line-height: 36px;
}

.cpa-btn {
    display: inline-flex;
    width: 212px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-top: 42px;
    color: #fff;
    font-family: var(--font-medium);
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    background: linear-gradient(90deg, #1c4ede 0%, #1f8ff7 100%);
    border-radius: 8px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.cpa-btn:hover {
    box-shadow: 0 10px 24px rgba(28, 78, 222, .28);
    transform: translateY(-1px);
}

.cpa-cta {
    display: flex;
    height: 52px;
    align-items: stretch;
    margin: 60px auto 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #9cbdf8;
    border-radius: 6px;
}

.cpa-cta-text {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.cpa-cta-btn {
    display: flex;
    width: 206px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-medium);
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    background: var(--cpa-btn);
}

.cpa-problem { padding: 65px 0 106px; }

.cpa-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 19px;
    margin-top: 64px;
}

.cpa-problem-card {
    height: 234px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d6eafb;
    border-radius: 10px;
    box-shadow: var(--common-box-shadow);
}

.cpa-page .cpa-problem-name {
    display: flex;
    height: 57px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    background: var(--cpa-blue);
}

.cpa-problem-text {
    padding: 20px 22px 0;
    font-size: 19.5px;
    line-height: 30px;
}

.cpa-problem .cpa-cta { margin-top: 53px; }

.cpa-split {
    display: flex;
    margin-top: 49px;
}

.cpa-split-media { flex: 0 0 auto; margin: 0; }

.cpa-split-media--icon { width: 258px; margin-left: 65px; }

.cpa-split-media--icon img { width: 258px; height: 258px; }

.cpa-split-media--ill { width: 374px; margin-left: 0; }

.cpa-split-media--ill img { width: 374px; height: 248px; }

.cpa-why { padding: 0 0 65px; }

.cpa-split-copy {
    width: 623px;
    margin-left: 77px;
    font-size: 19px;
    line-height: 32px;
}

.cpa-domain { padding: 0 0 82px; }

.cpa-domain .cpa-split { margin-top: 56px; }

.cpa-domain .cpa-split-copy { margin-top: 6px; }

.cpa-domain .cpa-cta { margin-top: 60px; }

.cpa-require {
    padding: 64px 0 149px;
    background: #fff url("../images/section-bg.png") center top / 100% 817px no-repeat;
}

.cpa-require-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 19px;
    margin-top: 64px;
}

.cpa-require-card {
    height: 203px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d6eafb;
    border-radius: 10px;
    box-shadow: var(--common-box-shadow);
}

.cpa-page .cpa-require-name {
    display: flex;
    height: 58px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    background: var(--cpa-blue);
}

.cpa-require-text {
    padding: 18px 22px 0;
    font-size: 19.5px;
    line-height: 30px;
}

.cpa-require .cpa-cta { margin-top: 65px; }

.cpa-basic { padding: 0 0 70px; }

.cpa-basic-panel {
    width: 1200px;
    height: 338px;
    margin-top: 63px;
    background: url("../images/panel-chips.png") center top / 1200px 338px no-repeat;
}

.cpa-basic-list {
    display: grid;
    grid-template-columns: repeat(3, 340px);
    gap: 27px 20px;
    justify-content: center;
    margin: 0;
    padding: 89px 0 0;
    list-style: none;
}

.cpa-basic-list li {
    display: flex;
    height: 50px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #333;
    background: rgba(255, 255, 255, .82);
    border-radius: 6px;
}

.cpa-basic .cpa-cta { margin-top: 62px; }

.cpa-flow { padding: 0 0 80px; }

.cpa-flow-panel {
    width: 1114px;
    height: 485px;
    margin: 55px auto 0;
    background: #fff url("../images/panel-flow.png") center top / 1114px 485px no-repeat;
}

.cpa-flow-list {
    display: flex;
    margin: 0 0 0 -30px;
    padding: 54px 0 0;
    list-style: none;
}

.cpa-flow-step {
    position: relative;
    display: flex;
    flex: 0 0 287px;
    flex-direction: column;
    align-items: center;
}

.cpa-flow-num {
    display: flex;
    width: 116px;
    height: 116px;
    align-items: center;
    justify-content: center;
    flex: 0 0 116px;
    color: #1b5bd7;
    font-family: var(--font-bold);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(205deg, #1a5ed2 10%, #d6e6fb 92%) border-box;
    border: 5px solid transparent;
    border-radius: 50%;
}

.cpa-page .cpa-flow-name {
    margin: 11px 0 0;
    font-size: 30px;
    line-height: 38px;
    white-space: nowrap;
}

.cpa-flow-items {
    max-width: 185px;
    margin: 19px auto 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.cpa-flow-items li {
    position: relative;
    padding-bottom: 24px;
    font-size: 20px;
    line-height: 24px;
}

.cpa-flow-items li:last-child { padding-bottom: 0; }

.cpa-flow-items li:not(:last-child)::after {
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 11px;
    height: 15px;
    margin-left: -5.5px;
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='15' viewBox='0 0 11 15'%3E%3Cpath d='M5.5 0v8' stroke='%232f6fef' stroke-width='1.6'/%3E%3Cpath d='M1 8.4l4.5 4.6L10 8.4z' fill='%232f6fef'/%3E%3C/svg%3E") center / 11px 15px no-repeat;
}

.cpa-flow-step:not(:last-child)::after {
    position: absolute;
    top: 58px;
    left: calc(50% + 60px);
    width: 165px;
    height: 22px;
    margin-top: -11px;
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='22' viewBox='0 0 160 22' preserveAspectRatio='none'%3E%3Cpath d='M0 11h128' stroke='%232f6fef' stroke-width='7'/%3E%3Cpath d='M126 1l30 10-30 10z' fill='%232f6fef'/%3E%3C/svg%3E") center / 100% 22px no-repeat;
    pointer-events: none;
}

.cpa-advantage { padding: 0 0 79px; }

.cpa-advantage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 19px;
    justify-content: center;
    margin-top: 66px;
}

.cpa-advantage-card {
    width: 387px;
    height: 336px;
    padding: 42px 30px 0;
    text-align: center;
    background: #fff;
    border: 1px solid var(--cpa-line);
    border-radius: 10px;
    box-shadow: var(--common-box-shadow);
}

.cpa-advantage-icon { width: 130px; height: 130px; margin: 0 auto; }

.cpa-page .cpa-advantage-name {
    margin-top: 14px;
    font-size: 26px;
    line-height: 38px;
}

.cpa-advantage-text {
    margin-top: 6px;
    font-size: 18px;
    line-height: 30px;
}

.cpa-hotline {
    display: flex;
    height: 52px;
    align-items: stretch;
    margin: 59px auto 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #9cbdf8;
    border-radius: 6px;
}

.cpa-hotline-label {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.cpa-hotline-label b {
    margin-left: 8px;
    font-family: var(--font-bold);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.cpa-hotline-btn {
    display: flex;
    width: 206px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-medium);
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    background: var(--cpa-btn);
}

@media (max-width: 1248px) {
    .cpa-container { width: auto; max-width: calc(100% - 48px); }

    .cpa-split-media--icon { margin-left: 0; }

    .cpa-split-copy { width: auto; flex: 1; margin-left: 40px; }

    .cpa-basic-panel,
    .cpa-flow-panel { width: auto; max-width: 100%; height: auto; background-size: 100% auto; }

    .cpa-basic-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .cpa-flow-list { margin: 0; padding: 74px 16px 0; }
    .cpa-flow-step { flex: 1 1 0; width: auto; }
}

@media (max-width: 1100px) {
    .cpa-page { font-size: 16px; }

    .cpa-section-title { font-size: 32px; line-height: 46px; }

    .cpa-cta,
    .cpa-hotline { margin-top: 46px; }

    .cpa-cta-text { font-size: 17px; }

    .cpa-cta-btn,
    .cpa-hotline-btn { width: 170px; font-size: 20px; }

    .cpa-hotline-label { font-size: 16px; }

    .cpa-hotline-label b { font-size: 21px; }

    .cpa-problem { padding: 56px 0 64px; }

    .cpa-problem-grid { margin-top: 44px; }

    .cpa-problem-card { height: auto; }

    .cpa-page .cpa-problem-name { height: 50px; font-size: 21px; }

    .cpa-problem-text { font-size: 16px; line-height: 28px; }

    .cpa-split { margin-top: 36px; }

    .cpa-split-media--icon { width: 200px; }

    .cpa-split-media--icon img { width: 200px; height: 200px; }

    .cpa-split-copy { margin-left: 30px; font-size: 17px; line-height: 30px; }

    .cpa-domain { padding-bottom: 60px; }

    .cpa-require { padding: 56px 0 70px; }

    .cpa-require-grid { gap: 20px 16px; margin-top: 44px; }

    .cpa-require-card { height: auto; }

    .cpa-page .cpa-require-name { height: 50px; font-size: 21px; }

    .cpa-require-text { font-size: 16px; line-height: 28px; }

    .cpa-basic { padding-bottom: 60px; }

    .cpa-basic-panel { margin-top: 44px; }

    .cpa-basic-list { padding-top: 60px; gap: 18px 16px; }

    .cpa-basic-list li { height: 44px; font-size: 18px; }

    .cpa-flow { padding-bottom: 60px; }

    .cpa-flow-panel { margin-top: 40px; }

    .cpa-flow-list { margin: 0; flex-wrap: wrap; row-gap: 34px; padding: 40px 16px 0; }
    .cpa-flow-step { flex: 0 0 50%; }
    .cpa-flow-step::after { display: none; }

    .cpa-flow-num { width: 92px; height: 92px; flex-basis: 92px; border-width: 4px; font-size: 30px; }

    .cpa-page .cpa-flow-name { font-size: 22px; line-height: 30px; }

    .cpa-flow-items li { font-size: 16px; line-height: 24px; }

    .cpa-advantage { padding-bottom: 60px; }

    .cpa-advantage-grid { margin-top: 44px; gap: 16px; }

    .cpa-advantage-card { width: 340px; height: auto; padding: 30px 22px; }

    .cpa-advantage-icon { width: 100px; height: 100px; }

    .cpa-page .cpa-advantage-name { font-size: 22px; line-height: 32px; }

    .cpa-advantage-text { font-size: 16px; line-height: 28px; }
}

@media (max-width: 980px) {
    .cpa-split { flex-direction: column; }

    .cpa-split-media--icon { margin: 0 auto; }

    .cpa-split-media--ill { width: 100%; max-width: 374px; margin: 0 auto; }

    .cpa-split-media--ill img { width: 100%; height: auto; }

    .cpa-split-copy { margin: 24px 0 0; }

    .cpa-problem-grid { grid-template-columns: 1fr; }

    .cpa-require-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .cpa-basic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .cpa-advantage-card { width: 100%; }
}

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

    .cpa-cta,
    .cpa-hotline { width: 100% !important; max-width: 420px; height: 46px; margin-top: 34px; }

    .cpa-cta-text { font-size: 13px; }

    .cpa-cta-btn,
    .cpa-hotline-btn { width: 110px; font-size: 15px; }

    .cpa-hotline-label { font-size: 13px; }

    .cpa-hotline-label b { font-size: 18px; }

    .cpa-page .cpa-problem-name { font-size: 18px; }

    .cpa-problem-text { font-size: 15px; line-height: 26px; }

    .cpa-require-grid { grid-template-columns: 1fr; }

    .cpa-page .cpa-require-name { font-size: 18px; }

    .cpa-require-text { font-size: 15px; line-height: 26px; }

    .cpa-basic-list { grid-template-columns: 1fr; padding: 30px 20px; }

    .cpa-basic-list li { font-size: 15px; }

    .cpa-flow-list { padding: 28px 12px 0; }
    .cpa-flow-step { flex: 0 0 100%; }
    .cpa-page .cpa-flow-name { font-size: 22px; line-height: 30px; }
    .cpa-flow-items li { font-size: 15px; line-height: 24px; padding-bottom: 18px; }

    .cpa-page .cpa-advantage-name { font-size: 20px; }

    .cpa-advantage-text { font-size: 15px; line-height: 26px; }
}

@media (max-width: 600px) {
    .cpa-container { max-width: calc(100% - 32px); }

    .cpa-section-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .cpa-btn { transition: none; }
}

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

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