
.bastion-page {
    --bastion-blue: #1d75ea;
    --bastion-blue-light: #52b8f2;
    --bastion-ink: #000;
    --bastion-text: #4d4d4d;
    --bastion-muted: #4b4b4c;
    --bastion-soft: #f7fafd;
    --bastion-line: #e6e6e6;

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

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

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

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

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

.bastion-section-head { position: relative; top: -3px; margin: 0 0 48px 0px; }
.bastion-section-head h2 {
    margin-bottom: 8px;
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: -.4px;
}
.bastion-section-head p {
    margin-bottom: 0;
    color: var(--bastion-muted);
    font-size: 20px;
    line-height: 1.6;
}

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

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

.bastion-hero-bg {
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}
.bastion-hero-inner { position: relative; height: 580px; }
.bastion-hero-copy { margin-left: 0px; padding-top: 182px; max-width: 1000px; }
.bastion-hero-copy h1 {
    margin-bottom: 19px;
    font-size: 47px;
    line-height: 1.4;
    letter-spacing: -.9px;
}
.bastion-hero-copy p {
    margin-bottom: 0;
    color: #0b0b0b;
    font-size: 24px;
    line-height: 1.4;
}
.bastion-hero-copy .bastion-hero-note { margin-top: 18px; }

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

.bastion-page .quick-grid { --quick-gap: 17px; }
.bastion-page .quick-card { --quick-arrow-right: 15px; padding-top: 28px; }
.bastion-page .quick-card-desc { margin-top: 13px; }

.bastion-functions {
    position: relative;
    z-index: 1;
    margin-top: 0px;
    padding: 130px 0 62px;
    background: var(--bastion-soft);
}
.bastion-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}
.bastion-feature-card {
    display: flex;
    height: 280px;
    flex-direction: column;
    align-items: center;
    padding: 24px 30px 0;
    text-align: center;
    background: #fff;
    border-radius: 10px;
}
.bastion-feature-card img { width: 48px; height: 48px; margin-bottom: 25px; }
.bastion-feature-card h3 { margin-bottom: 6px; font-size: 20px; line-height: 1.4; }
.bastion-feature-card p { margin-bottom: 0; font-size: 16px; line-height: 28px; }
.bastion-feature-card p span { display: block; white-space: nowrap; }

.bastion-value {
    padding: 100px 0;
    background: #f7fbff url("../images/value-background.png") center top / 1920px 920px no-repeat;
}
.bastion-value-layout {
    display: grid;
    align-items: start;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 30px;
}
.bastion-value-intro { position: relative; top: -3px; }
.bastion-value-intro h2 {
    margin-bottom: 8px;
    margin-left: 0px;
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: -.4px;
}
.bastion-value-intro p {
    margin-bottom: 0;
    margin-left: 0px;
    color: var(--bastion-muted);
    font-size: 20px;
    line-height: 1.6;
}
.bastion-value-list { display: flex; flex-direction: column; gap: 30px; }
.bastion-value-card {
    height: 150px;
    padding: 40px 40px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(47, 90, 123, .04);
}
.bastion-value-card.is-tall { height: 180px; }
.bastion-value-card h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.4; }
.bastion-value-card p { margin-bottom: 0; color: var(--bastion-text); font-size: 16px; line-height: 28px; }
.bastion-value-card p span { display: block; white-space: nowrap; }
.bastion-value-card:hover { background: var(--bastion-blue); box-shadow: 0 10px 26px rgba(29, 117, 234, .18); }
.bastion-value-card:hover h3,
.bastion-value-card:hover p { color: #fff; }

.bastion-advantages { padding: 100px 0 0; background: #fff; }
.bastion-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 31px 30px;
}
.bastion-adv-card {
    display: flex;
    height: 219px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 43px 26px 0;
    text-align: center;
    background: #fff;
    border: 1px solid var(--bastion-line);
    border-radius: 12px;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.bastion-adv-card.is-wide {
    grid-row: span 2;
    height: 469px;
    justify-content: center;
    padding: 0 26px 24px;
}
.bastion-adv-icon { position: relative; display: block; width: 40px; height: 40px; margin-bottom: 14px; }
.bastion-adv-icon img { position: absolute; top: 0; left: 0; width: 40px; height: 40px; transition: opacity .2s ease; }
.bastion-adv-icon-hover { opacity: 0; }
.bastion-adv-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.4;
    transition: color .25s ease;
}
.bastion-adv-card p { margin-bottom: 0; color: var(--bastion-text); font-size: 16px; line-height: 26px; transition: color .25s ease; }
.bastion-adv-card p span { display: block; white-space: nowrap; }

.bastion-adv-card:hover,
.bastion-adv-card:focus-within {
    background: var(--bastion-blue);
    border-color: var(--bastion-blue);
    box-shadow: 0 14px 30px rgba(32, 111, 219, .2);
    transform: translateY(-2px);
}
.bastion-adv-card:hover h3,
.bastion-adv-card:hover p,
.bastion-adv-card:focus-within h3,
.bastion-adv-card:focus-within p { color: #fff; }
.bastion-adv-card:hover .bastion-adv-icon-default,
.bastion-adv-card:focus-within .bastion-adv-icon-default { opacity: 0; }
.bastion-adv-card:hover .bastion-adv-icon-hover,
.bastion-adv-card:focus-within .bastion-adv-icon-hover { opacity: 1; }

.bastion-specifications { padding: 111px 0 152px; background: #fff; }
.bastion-specifications .bastion-section-head { top: -4px; margin-bottom: 38px; }
.bastion-page .plan-grid { --plan-columns: 2; --plan-gap: 20px; }
.bastion-page .plan-card {
    --plan-height: 304px;
    --plan-header-height: 150px;
    --plan-header-pad: 34px 40px 0;
    --plan-overlap: 63px;
    --plan-body-pad: 30px 40px 30px;
    --plan-desc-size: 18px;
    --plan-desc-leading: 29px;
    --plan-desc-min-height: 58px;
    --plan-offer-mt: 0;
    --plan-link-pt: 0;
    --plan-arrow-w: 18px;
    --plan-arrow-h: 18px;
}
.bastion-plan-standard { --plan-color: #1d75ea; }
.bastion-plan-pro { --plan-color: #52b8f2; }
.bastion-page .plan-card-desc span { display: block; white-space: nowrap; }

.bastion-plan-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
}

.bastion-page .plan-card-link { position: relative; top: 27px; margin-top: 0; padding-top: 0; }

.bastion-scenes { padding: 80px 0 100px; background: var(--bastion-soft); }
.bastion-scenes .bastion-section-head { top: -5px; margin-bottom: 40px; }
.bastion-scene-panel {
    overflow: hidden;
    padding-top: 48px;
    background: #fff;
    border-radius: 10px;
}
.bastion-scene-diagram { width: 852px; max-width: calc(100% - 48px); height: auto; margin: 0 auto; }
.bastion-scene-notes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 51px;
    padding: 30px 40px 44px;
    background: var(--bastion-soft);
}
.bastion-scene-note h3 {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 24px;
    white-space: nowrap;
}
.bastion-scene-note h3 img { flex: 0 0 16px; width: 16px; height: 16px; }
.bastion-scene-note p { margin-bottom: 0; color: var(--bastion-text); font-size: 16px; line-height: 26px; }
.bastion-scene-note p span { display: block; white-space: nowrap; }

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

@media (max-width: 1180px) {
    .bastion-feature-card { padding-right: 20px; padding-left: 20px; }
    .bastion-feature-card p span,
    .bastion-value-card p span,
    .bastion-adv-card p span,
    .bastion-page .plan-card-desc span { white-space: normal; }
    .bastion-value-layout { grid-template-columns: 300px minmax(0, 1fr); }
    .bastion-scene-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

@media (max-width: 1100px) {
    .bastion-value { background: var(--bastion-soft); }
    .bastion-value-layout { grid-template-columns: 1fr; gap: 36px; }
    .bastion-value-card,
    .bastion-value-card.is-tall { height: auto; padding-bottom: 28px; }
    .bastion-scene-panel { padding-top: 32px; }
}

@media (max-width: 980px) {
    .bastion-br { display: none; }
    .bastion-quick-wrap { margin-top: -90px; }
    .bastion-functions { padding-top: 110px; }
    .bastion-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bastion-feature-card { height: auto; min-height: 270px; padding-bottom: 28px; }
    .bastion-adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bastion-adv-card.is-wide { grid-row: auto; height: 240px; }
}

@media (max-width: 760px) {
    .bastion-feature-grid,
    .bastion-adv-grid,
    .bastion-scene-notes { grid-template-columns: 1fr; }
    .bastion-adv-card.is-wide { height: 240px; }
    .bastion-page .plan-grid { --plan-columns: 1; }
    .bastion-scene-notes { padding: 26px 22px 32px; }
}

@media (max-width: 600px) {
    .bastion-container { max-width: calc(100% - 32px); }
    .bastion-section-head { margin-bottom: 28px; }
    .bastion-section-head h2,
    .bastion-value-intro h2 { font-size: 27px; }
    .bastion-section-head p,
    .bastion-value-intro p { font-size: 16px; }
    .bastion-quick-wrap { margin-top: -64px; }
    .bastion-functions { padding: 92px 0 56px; }
    .bastion-value { padding: 60px 0; }
    .bastion-value-card { padding: 24px 22px 26px; }
    .bastion-advantages { padding-top: 60px; }
    .bastion-specifications { padding: 56px 0 64px; }
    .bastion-page .plan-card { --plan-header-pad: 26px 24px 0; --plan-body-pad: 26px 24px 28px; }
    .bastion-page .plan-card-desc span { white-space: normal; }
    .bastion-page .plan-card > .plan-card-title { font-size: 21px; }
    .bastion-scenes { padding: 56px 0; }
    .bastion-scene-panel { padding-top: 24px; }
    .bastion-scene-notes { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .bastion-adv-card,
    .bastion-adv-card h3,
    .bastion-adv-card p,
    .bastion-adv-icon img { transition: none; }
}

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

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