

.chn-page {
    background: #fff;
}

.chn-page .chn-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 1px;
    color: #2f2f2f;
    text-align: center;
}

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

.chn-hero > * {
    --cqw-length: 100cqw; /* 先按容器宽度解析成 px 再进 atan2，避免部分浏览器跨单位返回 0 */
    --hero-scale: tan(atan2(var(--cqw-length), 1920px)); /* hero 实际宽度 / 1920 */
    zoom: var(--hero-scale);
}
.chn-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 300px;
    padding-bottom: 60px;
}
.chn-hero-title {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 62px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    color: #000;
    text-align: center;
}
.chn-hero-sub {
    margin: 54px 0 0;
    font-family: var(--font-normal);
    font-size: 25px;
    line-height: 1.5;
    letter-spacing: 1px;
    color: #333;
    text-align: center;
}

.chn-hero-promises {
    display: flex;
    gap: 12px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}
.chn-promise {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    height: 142px;
    padding: 16px 12px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 8px 24px rgba(43, 117, 204, .08);
    text-align: center;
}
.chn-promise img {
    display: block;
    width: 54px;
    height: 44px;
    object-fit: contain;
}
.chn-promise span {
    margin-top: 12px;
    font-family: var(--font-medium);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: #1f2937;
}

/* 产品展示区：5 个 tab 面板（设计稿 1:1 —— 卡片 1200×430、圆角 20、
   tab 文字 28/36、选中项 141×4 蓝色下划线、图标 134×104、名称 28/38） */
.chn-market {
    padding: 84px 0 0;
}
.chn-market-card {
    margin-top: 50px;
    min-height: 430px;
    padding: 52px 0 0;
    border-radius: 20px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(224, 238, 255, .95),
        0 24px 60px -34px rgba(31, 102, 229, .38),
        0 8px 24px rgba(31, 102, 229, .06);
}

/* tab 栏：5 个文字 tab 等距、选中项文字加深 + 下方蓝色下划线
   （设计稿 tab 行整体比卡片中心偏左约 10px，用右侧 20px 内边距还原） */
.chn-tabs {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 76px;
    margin: 0;
    padding: 0 20px 0 0;
}
.chn-tab {
    position: relative;
    margin: 0;
    padding: 0 0 9px;
    border: 0;
    background: none;
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-medium);
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: 1px;
    color: #555;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease;
}
.chn-tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 141px;
    height: 4px;
    margin-left: -70.5px;
    border-radius: 2px;
    background: #1c6fef;
    opacity: 0;
    transition: opacity .2s ease;
}
.chn-tab:hover {
    color: #1c6fef;
}
.chn-tab:focus-visible {
    outline: 2px solid #8fb8ff;
    outline-offset: 4px;
    border-radius: 4px;
}
.chn-tab.is-active {
    color: #333;
}
.chn-tab.is-active::after {
    opacity: 1;
}

/* 面板：一行图标 + 名称。4 项 / 5 项各用一套固定槽位
   （设计稿里同名 tab 的图标横向位置在 5 个面板中一致，说明是等宽槽位 + 固定间距，
   左起 108px / 103px，图标间距 147px / 91px） */
.chn-panel {
    padding-top: 73px;
}
.chn-panel[hidden] {
    display: none;
}
.chn-items {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.chn-items-4 {
    padding-left: 108px;
    gap: 147px;
}
.chn-items-5 {
    padding-left: 103px;
    gap: 91px;
}
.chn-item {
    display: flex;
    width: 134px;
    flex: 0 0 134px;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}
.chn-item-icon {
    display: block;
    width: 134px;
    height: 104px;
    object-fit: contain;
    transition: transform .25s ease;
}
.chn-item-name {
    margin-top: 30px;
    font-family: var(--font-normal);
    font-size: 28px;
    line-height: 38px;
    color: #333;
    text-align: center;
    white-space: nowrap;
    transition: color .2s ease;
}
.chn-item:hover .chn-item-icon {
    transform: translateY(-4px);
}
.chn-item:hover .chn-item-name {
    color: #1c6fef;
}

.chn-advantage {
    padding: 72px 0 0;
}
.chn-adv-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
}
.chn-adv-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 478px;
    padding: 52px 20px 30px;
    border: 1px solid #e6f0fb;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.chn-adv-card:hover {
    transform: translateY(-4px);
    border-color: #cfe3fb;
    box-shadow: 0 18px 40px -28px rgba(31, 102, 229, .5);
}
.chn-adv-card img {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: contain;
}
.chn-adv-card h3 {
    margin: 26px 0 0;
    font-family: var(--font-medium);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.4;
    color: #2f2f2f;
    letter-spacing: .5px;
}
.chn-adv-card p {
    margin: 20px 0 0;
    font-family: var(--font-normal);
    font-size: 22px;
    line-height: 1.45;
    color: #565656;
}

.chn-flow {
    padding: 82px 0 0;
}
.chn-flow-card {
    height: 310px;
    margin-top: 40px;
    padding: 45px 40px 0;
    border: 1px solid #e6f0fb;
    border-radius: 10px;
    background: #fff url("../images/flow-dots.png") center bottom / 100% auto no-repeat;
    box-shadow: 0 24px 56px -46px rgba(31, 102, 229, .55);
}
.chn-flow-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.chn-flow-step {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.chn-flow-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 115px;
    height: 115px;
    border: 3px solid transparent;
    border-radius: 50%;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(205deg, #1a5ed2 10%, #d6e6fb 92%) border-box;
    font-family: var(--font-bold);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    color: #1a56c4;
}
.chn-flow-label {
    margin: 11px 0 0;
    font-family: var(--font-medium);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.35;
    color: #2f2f2f;
    white-space: nowrap;
}

.chn-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 57px;
    left: calc(50% + 70px);
    width: calc(100% - 140px);
    height: 22px;
    margin-top: -11px;
    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 11h126' stroke='%232f6fef' stroke-width='7'/%3E%3Cpath d='M124 1l28 10-28 10z' fill='%232f6fef'/%3E%3C/svg%3E") center / 100% 22px no-repeat;
    pointer-events: none;
}

.chn-flow-actions {
    display: flex;
    justify-content: center;
    margin-top: 58px;
}
.chn-flow-btn {
    display: flex;
    height: 54px;
    border: 1px solid #cfe0f7;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 16px 36px -30px rgba(31, 102, 229, .6);
}
.chn-flow-apply,
.chn-flow-consult {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-medium);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.chn-flow-apply {
    width: 404px;
    color: #2f2f2f;
}
.chn-flow-apply:hover {
    color: #1d63dc;
    background: #f7fbff;
}
.chn-flow-consult {
    width: 206px;
    background: #1d70e6;
    color: #fff;
}
.chn-flow-consult:hover {
    background: #1760ce;
    color: #fff;
}

.chn-comments {
    padding: 82px 0 0;
}
.chn-comment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 66px;
}
.chn-comment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 391px;
    padding: 50px 30px 30px;
    border: 1px solid #e6f0fb;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.chn-comment-card:hover {
    transform: translateY(-4px);
    border-color: #cfe3fb;
    box-shadow: 0 18px 40px -28px rgba(31, 102, 229, .5);
}
.chn-comment-card img {
    display: block;
    width: 104px;
    height: 104px;
    object-fit: contain;
}
.chn-comment-card h3 {
    margin: 30px 0 0;
    font-family: var(--font-bold);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #2f2f2f;
}
.chn-comment-text {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    font-family: var(--font-normal);
    font-size: 20px;
    line-height: 1.55;
    color: #565656;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.chn-page .section-partners {
    padding: 84px 0 104px !important;
    background: #fff;
}
.chn-page .section-partners .section-head-only {
    margin-bottom: 0;
    padding-bottom: 8px;
}
.chn-page .section-partners .section-head h2 {
    margin: 0;
    font-family: var(--font-bold);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 1px;
    color: #2f2f2f;
}
.chn-page .section-partners .partner-group {
    margin-top: 41px;
}
.chn-page .section-partners .partner-group-title {
    margin: 0 0 16px;
    font-family: var(--font-medium);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.4;
    color: #2f2f2f;
}

@media (max-width: 1440px) {
    .chn-adv-card {
        height: 430px;
        padding: 44px 16px 24px;
    }
    .chn-adv-card img {
        width: 96px;
        height: 96px;
    }
    .chn-adv-card h3 {
        margin-top: 34px;
        font-size: 26px;
    }
    .chn-adv-card p {
        margin-top: 20px;
        font-size: 18px;
    }
    .chn-flow-card {
        height: 286px;
        padding-top: 34px;
    }
    .chn-flow-num {
        width: 100px;
        height: 100px;
        font-size: 32px;
    }
    .chn-flow-label {
        margin-top: 18px;
        font-size: 27px;
    }
    .chn-flow-step:not(:last-child)::after {
        top: 50px;
        left: calc(50% + 62px);
        width: calc(100% - 124px);
    }
    .chn-flow-apply {
        width: 360px;
        font-size: 21px;
    }
    .chn-flow-consult {
        width: 184px;
        font-size: 21px;
    }
    .chn-comment-card {
        height: 360px;
        padding: 40px 24px 24px;
    }
    .chn-comment-card h3 {
        margin-top: 28px;
        font-size: 28px;
    }
    .chn-comment-text {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .chn-page .chn-title {
        font-size: 32px;
    }
    .chn-market {
        padding-top: 64px;
    }
    .chn-market-card {
        margin-top: 36px;
        min-height: 384px;
        padding-top: 44px;
        border-radius: 18px;
    }
    .chn-tabs {
        gap: 0 52px;
    }
    .chn-tab {
        font-size: 25px;
        line-height: 33px;
        letter-spacing: .5px;
    }
    .chn-tab::after {
        width: 120px;
        height: 4px;
        margin-left: -60px;
    }
    .chn-panel {
        padding-top: 60px;
    }
    .chn-items-4,
    .chn-items-5 {
        justify-content: center;
        padding: 0;
    }
    .chn-items-4 {
        gap: 104px;
    }
    .chn-items-5 {
        gap: 62px;
    }
    .chn-item {
        min-width: 112px;
    }
    .chn-item-icon {
        width: 112px;
        height: 87px;
    }
    .chn-item-name {
        margin-top: 24px;
        font-size: 23px;
        line-height: 32px;
    }
    .chn-advantage {
        padding-top: 60px;
    }
    .chn-adv-grid {
        margin-top: 32px;
    }
    .chn-adv-card {
        height: 380px;
        padding: 34px 14px 20px;
    }
    .chn-adv-card img {
        width: 84px;
        height: 84px;
    }
    .chn-adv-card h3 {
        margin-top: 26px;
        font-size: 22px;
    }
    .chn-adv-card p {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.55;
    }

    .chn-flow {
        padding-top: 62px;
    }
    .chn-flow-card {
        margin-top: 32px;
        height: 260px;
    }
    .chn-flow-num {
        width: 88px;
        height: 88px;
        font-size: 28px;
    }
    .chn-flow-label {
        font-size: 23px;
    }
    .chn-flow-step:not(:last-child)::after {
        top: 44px;
        left: calc(50% + 56px);
        width: calc(100% - 112px);
        height: 20px;
        margin-top: -10px;
    }
    .chn-flow-actions {
        margin-top: 42px;
    }
    .chn-flow-btn {
        height: 50px;
    }
    .chn-flow-apply {
        width: 310px;
        font-size: 19px;
    }
    .chn-flow-consult {
        width: 160px;
        font-size: 19px;
    }

    .chn-comments {
        padding-top: 60px;
    }
    .chn-comment-grid {
        margin-top: 46px;
    }
    .chn-comment-card {
        height: 330px;
        padding: 32px 20px 20px;
    }
    .chn-comment-card img {
        width: 72px;
        height: 72px;
    }
    .chn-comment-card h3 {
        margin-top: 22px;
        font-size: 24px;
    }
    .chn-comment-text {
        margin-top: 12px;
        font-size: 16px;
    }
    .chn-page .section-partners {
        padding: 64px 0 76px !important;
    }
    .chn-page .section-partners .section-head h2 {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .chn-market-card {
        min-height: 0;
        padding: 38px 24px 40px;
        border-radius: 16px;
    }
    .chn-tabs {
        gap: 0 34px;
    }
    .chn-tab {
        padding-bottom: 8px;
        font-size: 21px;
        line-height: 28px;
        letter-spacing: 0;
    }
    .chn-tab::after {
        width: 96px;
        height: 3px;
        margin-left: -48px;
    }
    .chn-panel {
        padding-top: 46px;
    }
    .chn-items-4,
    .chn-items-5 {
        justify-content: center;
        padding: 0;
    }
    .chn-items-4 {
        gap: 56px;
    }
    .chn-items-5 {
        gap: 34px;
    }
    .chn-item {
        min-width: 96px;
    }
    .chn-item-icon {
        width: 96px;
        height: 75px;
    }
    .chn-item-name {
        margin-top: 18px;
        font-size: 19px;
        line-height: 28px;
    }

    .chn-adv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .chn-adv-card {
        height: auto;
        min-height: 300px;
        padding: 34px 22px 30px;
    }
    .chn-adv-card img {
        width: 96px;
        height: 96px;
    }
    .chn-adv-card h3 {
        margin-top: 24px;
        font-size: 26px;
    }
    .chn-adv-card p {
        margin-top: 14px;
        font-size: 18px;
    }

    .chn-flow-card {
        height: auto;
        padding: 38px 26px 54px;
        background-size: cover;
    }
    .chn-flow-list {
        flex-wrap: wrap;
        row-gap: 34px;
    }
    .chn-flow-step {
        flex: 0 0 50%;
    }
    .chn-flow-step::after {
        display: none;
    }
    .chn-flow-label {
        font-size: 24px;
    }

    .chn-comment-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 560px;
        margin-right: auto;
        margin-left: auto;
    }
    .chn-comment-card {
        height: auto;
        min-height: 0;
        padding: 32px 26px 34px;
    }
    .chn-comment-text {
        font-size: 17px;
        -webkit-line-clamp: 6;
    }
}

@media (max-width: 768px) {
    .chn-page .chn-title {
        font-size: 25px;
    }

    .chn-market {
        padding-top: 46px;
    }
    .chn-market-card {
        margin-top: 24px;
        padding: 24px 0 28px;
        border-radius: 12px;
    }
    /* 小屏：tab 栏可横向滚动，条目每行 2 个 */
    .chn-tabs {
        justify-content: flex-start;
        gap: 0 26px;
        overflow-x: auto;
        padding: 0 18px 2px;
        scrollbar-width: none;
    }
    .chn-tabs::-webkit-scrollbar {
        display: none;
    }
    .chn-tab {
        flex: 0 0 auto;
        padding-bottom: 7px;
        font-size: 16px;
        line-height: 22px;
    }
    .chn-tab::after {
        left: 0;
        width: 100%;
        height: 3px;
        margin-left: 0;
    }
    .chn-panel {
        padding: 30px 18px 0;
    }
    .chn-items,
    .chn-items-4,
    .chn-items-5 {
        flex-wrap: wrap;
        justify-content: center;
        gap: 26px 12px;
        padding: 0;
    }
    .chn-item {
        width: calc(50% - 6px);
        min-width: 0;
        flex: 0 0 calc(50% - 6px);
    }
    .chn-item-icon {
        width: 84px;
        height: 65px;
    }
    .chn-item-name {
        margin-top: 14px;
        font-size: 17px;
        line-height: 26px;
    }

    .chn-advantage {
        padding-top: 46px;
    }
    .chn-adv-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }
    .chn-adv-card {
        min-height: 0;
        padding: 28px 20px 30px;
    }
    .chn-adv-card h3 {
        margin-top: 18px;
        font-size: 23px;
    }
    .chn-adv-card p {
        font-size: 16px;
    }

    .chn-flow {
        padding-top: 46px;
    }
    .chn-flow-card {
        margin-top: 24px;
        padding: 28px 18px 38px;
        border-radius: 8px;
    }
    .chn-flow-list {
        row-gap: 26px;
    }
    .chn-flow-step {
        flex: 0 0 100%;
    }
    .chn-flow-num {
        width: 76px;
        height: 76px;
        font-size: 24px;
    }
    .chn-flow-label {
        margin-top: 12px;
        font-size: 20px;
    }
    .chn-flow-actions {
        margin-top: 28px;
    }
    .chn-flow-btn {
        width: 100%;
        height: 46px;
    }
    .chn-flow-apply {
        flex: 1;
        width: auto;
        font-size: 16px;
    }
    .chn-flow-consult {
        flex: 0 0 120px;
        width: 120px;
        font-size: 16px;
    }

    .chn-comments {
        padding-top: 46px;
    }
    .chn-comment-grid {
        margin-top: 28px;
    }
    .chn-comment-card {
        padding: 26px 20px 28px;
    }
    .chn-comment-card img {
        width: 64px;
        height: 64px;
    }
    .chn-comment-card h3 {
        margin-top: 16px;
        font-size: 22px;
    }
    .chn-comment-text {
        font-size: 15px;
        -webkit-line-clamp: 8;
    }

    .chn-page .section-partners {
        padding: 46px 0 56px !important;
    }
    .chn-page .section-partners .section-head h2 {
        font-size: 25px;
    }
    .chn-page .section-partners .partner-group {
        margin-top: 30px;
    }
    .chn-page .section-partners .partner-group-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .chn-item-icon {
        width: 74px;
        height: 57px;
    }
    .chn-item-name {
        font-size: 15px;
        line-height: 24px;
    }
    .chn-flow-apply {
        font-size: 14px;
    }
    .chn-flow-consult {
        flex-basis: 104px;
        width: 104px;
        font-size: 14px;
    }
}

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

    .chn-hero-sub {
        font-size: calc(25px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }
}
