
.ngfw-page {
    --ngfw-blue: #1d75ea;
    --ngfw-ink: #000;
    --ngfw-text: #4d4d4d;
    --ngfw-muted: #9f9f9f;
    --ngfw-line: #e9eff7;
    --ngfw-soft: #f7fafd;

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

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

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

.ngfw-page p { margin-top: 0; }
.ngfw-page img { display: block; max-width: 100%; }
.ngfw-page ul { margin: 0; padding: 0; list-style: none; }

.ngfw-container { width: 1200px; max-width: calc(100% - 48px); margin: 0 auto; }

.ngfw-section-head { margin: 0 0 49px 0px; }
.ngfw-section-head h2 {
    margin-bottom: 8px;
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: -.4px;
}
.ngfw-section-head p {
    margin-bottom: 0;
    color: #4b4b4c;
    font-size: 20px;
    line-height: 1.6;
}

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

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

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

.ngfw-quick-wrap { position: relative; z-index: 2; margin-top: -70px; }

.ngfw-page .quick-grid { --quick-gap: 17px; }
.ngfw-page .quick-card { --quick-arrow-right: 15px; }

.ngfw-functions {
    position: relative;
    z-index: 1;
    margin-top: -50px;
    padding: 130px 0 61px;
    background: var(--ngfw-soft);
}
.ngfw-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ngfw-feature-card {
    display: flex;
    min-height: 356px;
    align-items: center;
    flex-direction: column;
    padding: 32px 30px 27px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
}
.ngfw-feature-card img { width: 48px; height: 48px; margin-bottom: 19px; }
.ngfw-feature-card h3 { margin-bottom: 6px; font-size: 20px; line-height: 1.4; }
.ngfw-feature-card li {
    color: var(--ngfw-text);
    font-size: 16px;
    line-height: 28px;
}

.ngfw-value {
    min-height: 940px;
    padding-top: 101px;
    background: var(--ngfw-soft) url("../images/value-background.png") center top / 1920px 940px no-repeat;
}
.ngfw-value-layout {
    display: grid;
    align-items: start;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 30px;
}
.ngfw-value-intro h2 {
    margin-bottom: 8px;
    margin-left: 0px;
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: -.4px;
}
.ngfw-value-intro p {
    margin-bottom: 0;
    margin-left: 0px;
    color: #4b4b4c;
    font-size: 20px;
    line-height: 1.6;
}
.ngfw-value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.ngfw-value-card {
    display: flex;
    height: 170px;
    flex-direction: column;
    padding: 31px 40px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(47, 90, 123, .04);
    transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ngfw-value-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.4;
    transition: color .25s ease;
}
.ngfw-value-card p {
    margin-bottom: 0;
    color: var(--ngfw-text);
    font-size: 16px;
    line-height: 28px;
    transition: color .25s ease;
}
.ngfw-value-card:hover {
    background: var(--ngfw-blue);
    box-shadow: 0 14px 30px rgba(32, 111, 219, .2);
    transform: translateY(-2px);
}
.ngfw-value-card:hover h3,
.ngfw-value-card:hover p { color: #fff; }

.ngfw-specifications { padding: 80px 0 119px; background: #fff; }
.ngfw-specifications .ngfw-section-head { margin-bottom: 39px; }

.ngfw-page .plan-grid { --plan-columns: 3; --plan-gap: 22px; }
.ngfw-page .plan-card {
    --plan-height: 397px;
    --plan-header-height: 150px;
    --plan-body-pad: 28px 40px 47px;
    --plan-offer-mt: 43px;
    --plan-link-pt: 38px;
}

.ngfw-plan-desktop { --plan-color: #1d75ea; }
.ngfw-plan-smb { --plan-color: #59c7f2; }
.ngfw-plan-enterprise { --plan-color: #52b8f2; }
.ngfw-plan-datacenter { --plan-color: #26cde5; }
.ngfw-plan-carrier { --plan-color: #54a9f7; }

.ngfw-deployments { padding: 80px 0 120px; background: var(--ngfw-soft); }
.ngfw-deploy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.ngfw-deploy-head h2 {
    margin-bottom: 0;
    margin-left: 0px;
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: -.4px;
    white-space: nowrap;
}
.ngfw-deploy-tabs { display: flex; align-items: center; gap: 80px; padding-right: 60px; }
.ngfw-deploy-tab {
    position: relative;
    padding: 12px 0 6px;
    color: var(--ngfw-ink);
    font-family: var(--font-medium);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    background: none;
    border: 0;
    cursor: pointer;
}
.ngfw-deploy-tab::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    content: "";
    background: transparent;
}
.ngfw-deploy-tab.is-active { color: var(--ngfw-blue); }
.ngfw-deploy-tab.is-active::after { background: var(--ngfw-blue); }
.ngfw-deploy-tab:focus-visible { outline: 2px solid var(--ngfw-blue); outline-offset: 5px; border-radius: 2px; }

.ngfw-deploy-panels { margin-top: 40px; }
.ngfw-deploy-panel {
    display: grid;
    min-height: 523px;
    grid-template-columns: 686fr 512fr;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(50, 85, 115, .045);
}
.ngfw-deploy-panel[hidden] { display: none; }
.ngfw-deploy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 30px 40px;
}
.ngfw-deploy-visual img { width: auto; max-width: 100%; max-height: 463px; object-fit: contain; }
.ngfw-deploy-content {
    display: flex;
    flex-direction: column;
    padding: 79px 45px 60px 52px;
    background: #fafafb;
}
.ngfw-deploy-content h3 { margin-bottom: 20px; font-size: 18px; line-height: 1.6; }
.ngfw-deploy-content li {
    color: #1a1a1a;
    font-size: 16px;
    line-height: 26px;
}

.ngfw-faq {
    padding: 80px 0 65px;
    background: #fff url("../images/faq-background.png") center top / 1920px 520px no-repeat;
}
.ngfw-faq-list { width: 658px; max-width: 100%; padding-left: 20px; }
.ngfw-faq-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 46px;
}
.ngfw-faq-question { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ngfw-faq-question img { flex: 0 0 16px; width: 16px; height: 16px; }
.ngfw-faq-question span { color: var(--ngfw-text); font-size: 16px; line-height: 1.5; }
.ngfw-faq-link {
    display: inline-flex;
    width: 113px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    color: var(--ngfw-blue);
    font-size: 16px;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.ngfw-faq-link:hover { color: #1765df; }
.ngfw-faq-link img { width: 25px; height: 18px; }

@media (max-width: 1300px) {
    .ngfw-section-head { margin-left: 0; }
    .ngfw-value-intro h2,
    .ngfw-value-intro p,
    .ngfw-deploy-head h2 { margin-left: 0; }
    .ngfw-deploy-tabs { padding-right: 0; }
}

@media (max-width: 1180px) {
    .ngfw-feature-grid { gap: 20px; }
    .ngfw-feature-card { padding-right: 24px; padding-left: 24px; }
    .ngfw-page .plan-card { --plan-header-pad: 30px 28px 0; --plan-body-pad: 28px 28px 47px; }
    .ngfw-page .plan-card > .plan-card-title { font-size: 23px; }
    .ngfw-value-layout { grid-template-columns: 320px minmax(0, 1fr); }
    .ngfw-value-card { padding-right: 30px; padding-left: 30px; }
    .ngfw-deploy-tabs { gap: 40px; }
    .ngfw-deploy-tab { font-size: 18px; }
    .ngfw-deploy-content { padding: 60px 36px 50px 40px; }
}

@media (max-width: 1100px) {

    .ngfw-value {
        min-height: 0;
        padding-bottom: 80px;
        background: var(--ngfw-soft);
    }
    .ngfw-value-layout { grid-template-columns: 1fr; gap: 40px; }
    .ngfw-value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .ngfw-br { display: none; }
    .ngfw-quick-wrap { margin-top: -90px; }
    .ngfw-functions { margin-top: -40px; padding-top: 110px; }
    .ngfw-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .ngfw-feature-card { min-height: 0; }
    .ngfw-deploy-head { align-items: flex-start; flex-direction: column; gap: 20px; }
    .ngfw-deploy-tabs { width: 100%; padding-bottom: 4px; overflow-x: auto; }
    .ngfw-deploy-tab { flex: 0 0 auto; }
    .ngfw-deploy-panel { grid-template-columns: 1fr; min-height: 0; }
    .ngfw-deploy-visual { padding: 32px 24px; }
    .ngfw-deploy-content { padding: 32px 28px 40px; }
}

@media (max-width: 760px) {
    .ngfw-feature-grid { grid-template-columns: 1fr; }
    .ngfw-feature-card { min-height: 0; }
    .ngfw-value-grid { grid-template-columns: 1fr; gap: 16px; }
    .ngfw-value-card { height: auto; padding-bottom: 24px; }
    .ngfw-faq-list { padding-left: 0; }
    .ngfw-faq-row { align-items: flex-start; flex-direction: column; gap: 6px; padding: 12px 0 14px; }
    .ngfw-faq { background-image: none; }
}

@media (max-width: 600px) {
    .ngfw-container { max-width: calc(100% - 32px); }
    .ngfw-section-head { margin-bottom: 28px; }
    .ngfw-section-head h2,
    .ngfw-value-intro h2,
    .ngfw-deploy-head h2 { font-size: 27px; }
    .ngfw-section-head p,
    .ngfw-value-intro p { font-size: 16px; }
    .ngfw-quick-wrap { margin-top: -64px; }
    .ngfw-functions { padding: 92px 0 48px; }
    .ngfw-feature-card { padding: 28px 22px 26px; }
    .ngfw-feature-card h3 { font-size: 19px; }
    .ngfw-feature-card li { font-size: 15px; line-height: 26px; }
    .ngfw-value { padding-top: 60px; padding-bottom: 56px; }
    .ngfw-value-card { padding: 24px 22px; }
    .ngfw-value-card h3 { font-size: 19px; }
    .ngfw-value-card p { font-size: 15px; }
    .ngfw-specifications { padding: 56px 0 64px; }
    .ngfw-specifications .ngfw-section-head { margin-bottom: 26px; }
    .ngfw-page .plan-card {
        --plan-header-height: 132px;
        --plan-header-pad: 24px 24px 0;
        --plan-desc-min-height: 0;
        --plan-desc-size: 16px;
        --plan-desc-leading: 26px;
        --plan-offer-mt: 26px;
    }
    .ngfw-deployments { padding: 56px 0 64px; }
    .ngfw-deploy-tabs { gap: 26px; }
    .ngfw-deploy-tab { font-size: 16px; }
    .ngfw-deploy-panels { margin-top: 24px; }
    .ngfw-deploy-visual { padding: 24px 16px; }
    .ngfw-deploy-content { padding: 24px 22px 30px; }
    .ngfw-deploy-content h3 { font-size: 17px; }
    .ngfw-deploy-content li { font-size: 15px; line-height: 24px; }
    .ngfw-faq { padding: 56px 0 56px; }
    .ngfw-faq .ngfw-section-head { margin-bottom: 32px; }
    .ngfw-faq-row { padding: 10px 0; }
    .ngfw-faq-question span,
    .ngfw-faq-link { font-size: 15px; }
    .ngfw-faq-link img { width: 22px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ngfw-value-card,
    .ngfw-value-card h3,
    .ngfw-value-card p { transition: none; }
}

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

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