
.waf-page {
    --waf-blue: #1d75e9;
    --waf-deep-blue: #1a6ae0;
    --waf-ink: #111315;
    --waf-text: #626d7b;
    --waf-muted: #8d97a3;
    --waf-line: #e9eff7;

    color: var(--waf-text);
    background: #fff;
    font-family: var(--font-normal);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
}

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

.waf-page h1,
.waf-page h2,
.waf-page h3,
.waf-page h4 {
    margin-top: 0;
    color: var(--waf-ink);
    font-family: var(--font-medium);
    font-weight: 500;
}

.waf-page p { margin-top: 0; }
.waf-page img { display: block; max-width: 100%; }
.waf-container { width: 1200px; max-width: calc(100% - 48px); margin: 0 auto; }

.waf-section-head { margin: 0 0 49px 0px; }
.waf-section-head h2,
.waf-scenes-heading > h2 {
    margin-bottom: 8px;
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: -.4px;
}
.waf-section-head p {
    margin-bottom: 0;
    color: #6f7a87;
    font-size: 20px;
    line-height: 1.6;
}

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

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

.waf-hero-bg {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}
.waf-hero-inner { position: relative; height: 580px; }
.waf-hero-copy { margin-left: 0px; padding-top: 194px; }
.waf-hero-copy h1 {
    margin-bottom: 11px;
    color: #111315;
    font-size: 49px;
    line-height: 1.4;
    letter-spacing: -.5px;
}
.waf-hero-copy p {
    margin-bottom: 11px;
    color: #2f3b49;
    font-size: 24px;
    line-height: 1.8;
}

.waf-quick-grid-wrap {
    position: relative;
    margin-top: -70px;
}

.waf-page .quick-grid { --quick-gap: 20px; }
.waf-page .quick-card {
    --quick-bg: rgba(255, 255, 255, .6);
    --quick-border: rgba(255, 255, 255, .9);
    --quick-title-color: #111315;
    --quick-desc-color: #8e949b;
}

.waf-advantages {
    margin-top: -50px;
    padding: 129px 0 105px;
    background:
        radial-gradient(circle at 6% 62%, rgba(202, 235, 250, .4), transparent 26%),
        radial-gradient(circle at 94% 40%, rgba(202, 235, 250, .38), transparent 28%),
        #f4f9fc;
}
.waf-advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 31px; }
.waf-advantage-card {
    display: flex;
    min-height: 219px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 36px 38px 30px;
    text-align: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(229, 237, 243, .85);
    border-radius: 10px;
    box-shadow: 0 7px 22px rgba(47, 90, 123, .055);
}
.waf-advantage-card img { width: 40px; height: 40px; margin-bottom: 18px; }
.waf-advantage-card h3 { margin-bottom: 9px; font-size: 20px; line-height: 1.4; }
.waf-advantage-card p { margin-bottom: 0; color: #6f7a87; font-size: 16px; line-height: 1.8; }

.waf-functions { padding: 80px 0 47px; background: #fff; }
.waf-function-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 31px; }
.waf-function-card {
    display: flex;
    min-height: 238px;
    grid-column: span 2;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 28px 38px 26px;
    text-align: center;
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 10px;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.waf-function-card:nth-child(7) { grid-column: 2 / span 2; }
.waf-function-card:nth-child(8) { grid-column: 4 / span 2; }
.waf-function-icon { position: relative; width: 44px; height: 44px; margin-bottom: 16px; }
.waf-function-icon img { position: absolute; inset: 0; width: 44px; height: 44px; transition: opacity .2s ease; }
.waf-function-icon-active { opacity: 0; }
.waf-function-card h3 { margin-bottom: 11px; font-size: 20px; line-height: 1.4; transition: color .25s ease; }
.waf-function-card p {
    margin-bottom: 0;
    color: #6f7a87;
    font-size: 16px;
    line-height: 1.8;
    transition: color .25s ease;
}
.waf-function-card:hover,
.waf-function-card:focus-within {
    background: #2878e7;
    border-color: #2878e7;
    box-shadow: 0 14px 30px rgba(32, 111, 219, .18);
    transform: translateY(-2px);
}
.waf-function-card:hover h3,
.waf-function-card:hover p,
.waf-function-card:focus-within h3,
.waf-function-card:focus-within p { color: #fff; }
.waf-function-card:hover .waf-function-icon-default,
.waf-function-card:focus-within .waf-function-icon-default { opacity: 0; }
.waf-function-card:hover .waf-function-icon-active,
.waf-function-card:focus-within .waf-function-icon-active { opacity: 1; }

.waf-specifications { padding: 60px 0 94px; background: #fff; }
.waf-specifications .waf-section-head { margin-bottom: 37px; }

.waf-page .plan-grid { --plan-columns: 4; --plan-gap: 18px; }
.waf-page .plan-card {
    --plan-color: var(--waf-blue);
    --plan-min-height: 363px;
    --plan-header-height: 151px;
    --plan-header-pad: 30px 30px 0;
    --plan-body-pad: 30px 29px 42px;
    --plan-desc-color: #66717e;
    --plan-desc-size: 17.6px;
    --plan-desc-leading: 27px;
    --plan-desc-min-height: 81px;
    --plan-offer-mt: 13px;
    --plan-red: #e60012;
    --plan-muted: #a8b0b9;
    --plan-small-mt: 5px;
    --plan-link-color: #3585d8;
    --plan-link-pt: 24px;
    --plan-link-gap: 6px;
    --plan-arrow-w: 17px;
    --plan-arrow-h: 17px;
}
.waf-page .plan-card:nth-child(2) { --plan-color: #59c3f1; }
.waf-page .plan-card:nth-child(3) { --plan-color: #52b8f3; }
.waf-page .plan-card:nth-child(4) { --plan-color: #479df0; }

.waf-scenes { padding: 80px 0 90px; background: #f4f8fb; }
.waf-scenes-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 34px 0px; padding-right: 51px; }
.waf-scenes-heading > h2 { margin-bottom: 0; }
.waf-scene-tabs { display: flex; align-items: center; gap: 82px; }
.waf-scene-tab {
    position: relative;
    padding: 7px 0 11px;
    color: #333c47;
    font-family: var(--font-medium);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    background: none;
    border: 0;
    cursor: pointer;
}
.waf-scene-tab::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: transparent;
}
.waf-scene-tab.is-active { color: #3184d7; }
.waf-scene-tab.is-active::after { background: #4b9be1; }
.waf-scene-tab:focus-visible { outline: 2px solid #2878e7; outline-offset: 5px; border-radius: 2px; }
.waf-scene-panel {
    display: grid;
    min-height: 711px;
    grid-template-columns: 61.5% 38.5%;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(235, 240, 244, .85);
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(50, 85, 115, .045);
}
.waf-scene-panel[hidden] { display: none; }
.waf-scene-visual { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0; }
.waf-scene-visual img { width: auto; height: 674px; max-width: 100%; object-fit: contain; }
.waf-scene-content { display: flex; flex-direction: column; justify-content: center; padding: 44px 45px 44px 0; }
.waf-scene-content h3 { margin-bottom: 16px; font-size: 18px; line-height: 1.6; }
.waf-scene-desc { margin-bottom: 44px; color: #6f7a87; font-size: 17px; line-height: 1.55; }
.waf-scene-content h4 { margin-bottom: 17px; font-size: 18px; line-height: 1.6; }
.waf-scene-list { display: flex; flex-direction: column; gap: 26px; margin: 0; padding: 0; list-style: none; }
.waf-scene-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #6f7a87;
    font-size: 16px;
    line-height: 1.6;
}
.waf-scene-list li img { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 6px; }

@media (max-width: 1300px) {
    .waf-section-head,
    .waf-scenes-heading { margin-left: 0; }
}

@media (max-width: 1100px) {
    .waf-advantage-card { padding-right: 24px; padding-left: 24px; }
    .waf-function-card { padding-right: 20px; padding-left: 20px; }
    .waf-page .plan-card {
        --plan-header-pad: 30px 20px 0;
        --plan-body-pad: 30px 22px 42px;
        --plan-desc-size: 17px;
    }
    .waf-page .plan-card > .plan-card-title { font-size: 22px; }
    .waf-scene-content { padding-right: 28px; padding-left: 20px; }
}

@media (max-width: 900px) {
    .waf-section-head h2,
    .waf-scenes-heading > h2 { font-size: 32px; }
    .waf-section-head p { font-size: 18px; }
    .waf-page .quick-grid { position: relative; top: auto; margin-top: 90px; }
    .waf-advantage-grid { grid-template-columns: repeat(2, 1fr); }
    .waf-function-grid { grid-template-columns: repeat(2, 1fr); }
    .waf-function-card,
    .waf-function-card:nth-child(7),
    .waf-function-card:nth-child(8) { grid-column: auto; }
    .waf-scenes-heading { align-items: flex-start; flex-direction: column; gap: 16px; padding-right: 0; }
    .waf-scene-panel { grid-template-columns: 1fr; }
    .waf-scene-visual img { height: auto; max-height: 674px; }
    .waf-scene-content { padding: 36px; }
}

@media (max-width: 600px) {
    .waf-container { max-width: calc(100% - 32px); }
    .waf-section-head { margin-bottom: 28px; }
    .waf-section-head h2,
    .waf-scenes-heading > h2 { font-size: 27px; }
    .waf-section-head p { font-size: 16px; }
    .waf-page .quick-grid { margin-top: 58px; }
    .waf-advantages,
    .waf-functions,
    .waf-specifications,
    .waf-scenes { padding: 48px 0 55px; }
    .waf-advantage-grid { grid-template-columns: 1fr; gap: 16px; }
    .waf-advantage-card { min-height: 205px; padding: 30px 24px; }
    .waf-advantage-card img { margin-bottom: 12px; }
    .waf-advantage-card h3 { font-size: 19px; }
    .waf-advantage-card p { font-size: 15px; }
    .waf-function-grid { grid-template-columns: 1fr; gap: 16px; }
    .waf-function-card { min-height: 220px; padding: 26px 22px 22px; }
    .waf-function-card h3 { font-size: 19px; }
    .waf-function-card p { font-size: 15px; }
    .waf-page .plan-card {
        --plan-min-height: 0;
        --plan-desc-min-height: 0;
        --plan-desc-size: 16px;
        --plan-desc-leading: 25px;
        --plan-offer-mt: 22px;
    }
    .waf-scene-tabs { width: 100%; gap: 20px; overflow-x: auto; }
    .waf-scene-tab { flex: 0 0 auto; font-size: 15px; }
    .waf-scenes-heading { margin-bottom: 24px; }
    .waf-scene-panel { min-height: 0; }
    .waf-scene-content { padding: 28px 22px 32px; }
    .waf-scene-content h3 { font-size: 17px; }
    .waf-scene-desc { margin-bottom: 24px; font-size: 15px; }
    .waf-scene-content h4 { font-size: 17px; }
    .waf-scene-list { gap: 14px; }
    .waf-scene-list li { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .waf-function-card,
    .waf-function-icon img { transition: none; }
}

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

    .waf-hero-copy p {
        font-size: calc(24px * max(var(--hero-typo), var(--hero-scale)) / var(--hero-scale));
    }
}
