/* EMS 服务页（设计基准 1920 宽，设计稿 EMS.jpg）。
   沿用全站 Manrope / 主绿 / section-heading / btn；只为本页版式新增 ems- 前缀样式。 */

.ems {
    --ems-dark: #0D1612;
    --ems-title: #1A1C17;
    --ems-text: #4F5550;
    --ems-muted: #7A817B;
    --ems-line: #E5E8E2;
    --ems-tint: #F6F8F4;
    --ems-grey: #F4F4F2;
    --ems-green-soft: #EEF4E9;
    --ems-blue: #1976D2;
}

.ems .site-container { max-width: 1680px; }

/* ---------------------------------------------------------- 通用 */
.ems-section { padding: 120px 0; background: #fff; }
.ems-section--tint { background: var(--ems-tint); }
.ems-section--grey { background: var(--ems-grey); }

.ems-heading h2 { margin-bottom: 14px; font-size: 42px; font-weight: 700; }
.ems-heading p { max-width: 960px; }
.ems-heading strong.ems-heading__sub {
    display: block;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--bess-green);
}
/* 页面前两段副标题放大，与设计稿一致 */
.ems-heading--lead strong.ems-heading__sub { font-size: 32px; font-weight: 700; }
.ems-heading--narrow p { max-width: 600px; }
.ems-heading--teams h2 { max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.05; }
.ems-heading--teams p { font-size: 19px; }

.ems-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ems-green-soft);
    border-radius: 8px;
}
.ems-icon img { width: 20px; height: 20px; display: block; }
.ems-icon--sm { width: 34px; height: 34px; background: #F6F8F4; }
.ems-icon--sm img { width: 24px; height: 24px; }
.ems-icon--md { width: 48px; height: 48px; border-radius: 12px; }
.ems-icon--md img { width: 24px; height: 24px; }
.ems-icon--lg { width: 63px; height: 63px; border-radius: 10px; }
.ems-icon--lg img { width: 32px; height: 32px; }

.ems-dots { list-style: none; margin: 0; padding: 0; }
.ems-dots li { position: relative; padding-left: 18px; }
.ems-dots li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bess-green);
}

/* ---------------------------------------------------------- Hero */
.ems-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 70% at 58% 92%, rgba(92, 148, 52, .16), transparent 70%),
        var(--ems-dark);
}

.ems-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(620px, 43.75vw, 840px);
    padding: 56px 6.1vw 88px;
}

.ems-hero__text { position: relative; z-index: 2; max-width: min(46vw, 780px); }

.ems-hero__title {
    margin: 0 0 32px;
    max-width: 12em;
    font-size: clamp(40px, 3.23vw, 62px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.01em;
    color: #fff;
}
.ems-hero__title span { color: var(--bess-green); }

.ems-hero__lead {
    margin: 0 0 32px;
    /* 窗口从 50.65vw 起，文字起点 6.1vw：留出间距，避免中等屏宽贴到窗口 */
    max-width: min(42vw, 780px);
    font-size: clamp(17px, 1.22vw, 23.5px);
    font-weight: 400;
    line-height: 1.55;
    color: #9BA49D;
}

.ems-hero__cta { display: flex; flex-wrap: wrap; gap: 20px 48px; }
.ems-hero__cta .btn { border-radius: 2px; }

.ems-hero__art {
    position: absolute;
    top: 13.3%;
    right: 5.6vw;
    width: 43.75vw;
    max-width: 840px;
}

.ems-hero__device {
    position: absolute;
    left: -19.5%;
    top: 78%;
    width: 81.2%;
    height: auto;
    display: block;
}

/* 仪表盘窗口（Hero / Local Intelligence 共用） */
.ems-window {
    padding: 0 18px 18px;
    background: #101A16;
    border: 1.5px solid rgba(120, 150, 125, .35);
    border-radius: 22px;
}

.ems-window__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ems-window__bar > i { width: 15px; height: 15px; border-radius: 50%; background: #C24A45; }
.ems-window__bar > i:nth-child(2) { background: #C99A3B; }
.ems-window__bar > i:nth-child(3) { background: #4F8236; }

.ems-window__title {
    margin-left: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #D7DCD8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ems-window__badge {
    flex: none;
    margin-left: auto;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6FA34A;
    background: rgba(92, 148, 52, .14);
    border-radius: 5px;
}

.ems-window__screen { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------- Why EMS */
.ems-why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 72px;
}
.ems-why__img {
    display: block;
    width: 100%;
    aspect-ratio: 2368 / 1088;
    margin-bottom: 24px;
    object-fit: cover;
    border-radius: 8px;
}
.ems-why p { margin: 0; font-size: 17px; line-height: 28px; color: var(--ems-text); }

/* ---------------------------------------------------------- Smart Architecture */
.ems-arch {
    margin-top: 64px;
    padding: 50px 58px 66px 34px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(26, 28, 23, .03);
}

.ems-arch__row {
    display: grid;
    grid-template-columns: 192px minmax(0, 1fr);
    align-items: center;
    column-gap: 33px;
}
.ems-arch__row--link,
.ems-arch__row--bus,
.ems-arch__row--wan { grid-template-columns: minmax(0, 1fr); padding-left: 225px; }

/* 六列轨道：宽度比例取自设计稿，相邻卡片间距不等 */
.ems-arch__track {
    position: relative;
    display: grid;
    grid-template-columns: 190fr 51fr 190fr 89fr 190fr 80fr 190fr 6fr 166fr 10fr 190fr;
    width: 100%;
}
.ems-arch__track > [data-col="1"] { grid-column: 1; }
.ems-arch__track > [data-col="2"] { grid-column: 3; }
.ems-arch__track > [data-col="3"] { grid-column: 5; }
.ems-arch__track > [data-col="4"] { grid-column: 7; }
.ems-arch__track > [data-col="5"] { grid-column: 9; }
.ems-arch__track > [data-col="6"] { grid-column: 11; }

.ems-layer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 125px;
    padding: 14px 48px 14px 22px;
    background: var(--ems-grey);
    clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%);
}
.ems-layer strong { margin-bottom: 6px; font-size: 19px; font-weight: 600; color: #6B7068; }
.ems-layer span { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--ems-title); }

.ems-device {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 124px;
    padding: 8px 8px 12px;
    background: #fff;
    border: 1px solid #EEF0EC;
    border-radius: 6px;
}
.ems-device__img { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 0; width: 100%; }
.ems-device__img img { display: block; max-width: 100%; max-height: 80px; width: auto; height: auto; }
.ems-device__name { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ems-title); text-align: center; }

.ems-device--optional { border: 1px dashed #8FB374; }
.ems-device__tag {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bess-green);
    background: var(--ems-green-soft);
    border-radius: 3px;
}

/* 连接线与箭头 */
.ems-arrow,
.ems-drop,
.ems-device__in,
.ems-bus__arrow { display: block; position: relative; }

.ems-arrow { justify-self: center; width: 12px; height: 48px; }
.ems-arrow::before,
.ems-bus__arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 1px;
    width: 1.5px;
    margin-left: -.75px;
    background: var(--bess-green);
}
.ems-arrow::after,
.ems-bus__arrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 9px;
    height: 9px;
    border-right: 1.5px solid var(--bess-green);
    border-bottom: 1.5px solid var(--bess-green);
    transform: translateX(-50%) rotate(45deg);
}

.ems-arch__row--bus .ems-arch__track { height: 106px; }
.ems-drop {
    justify-self: center;
    width: 1.5px;
    height: 54px;
    background: var(--bess-green);
}
.ems-bus__line {
    position: absolute;
    top: 54px;
    left: 7.03%;
    right: 7.03%;
    height: 1.5px;
    background: var(--bess-green);
}
.ems-bus__label {
    position: absolute;
    top: 26px;
    left: 45.5%;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bess-green);
    white-space: nowrap;
    background: #fff;
    transform: translateX(-50%);
}
.ems-bus__arrow {
    position: absolute;
    top: 55px;
    bottom: 0;
    left: 45.5%;
    width: 12px;
    margin-left: -6px;
}

.ems-device__in {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 1.5px;
    background: var(--bess-green);
}
.ems-device__in::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 1.5px solid var(--bess-green);
    border-right: 1.5px solid var(--bess-green);
}
.ems-device__in--left { left: -8px; }
.ems-device__in--left::after { right: 0; transform: translateY(-50%) rotate(45deg); }
.ems-device__in--right { right: -8px; }
.ems-device__in--right::after { left: 0; transform: translateY(-50%) rotate(-135deg); }

.ems-controller-card {
    display: grid;
    grid-template-columns: 22% 40% minmax(0, 1fr);
    align-items: center;
    column-gap: 2%;
    min-height: 162px;
    padding: 12px 40px;
    border: 1px solid #EEF0EC;
    border-radius: 6px;
}
.ems-controller-card h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ems-title); }
.ems-controller-card__list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr 1fr;
    grid-auto-columns: 1fr;
    gap: 14px 24px;
    font-size: 14px;
    color: var(--ems-text);
}
.ems-controller-card img { justify-self: center; display: block; width: 100%; max-width: 340px; height: auto; }

.ems-wan {
    position: relative;
    display: flex;
    align-items: center;
    height: 58px;
    margin-left: 45.5%;
    padding-left: 18px;
    font-size: 12px;
    color: var(--ems-blue);
}
.ems-wan > i {
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 1.5px;
    background: var(--ems-blue);
}
.ems-wan > i::before,
.ems-wan > i::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 9px;
    height: 9px;
    border-left: 1.5px solid var(--ems-blue);
    border-top: 1.5px solid var(--ems-blue);
}
.ems-wan > i::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.ems-wan > i::after { bottom: 0; transform: translateX(-50%) rotate(-135deg); }

.ems-cloud {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
    padding: 28px 42px;
    border: 1px solid #EEF0EC;
    border-radius: 6px;
}
.ems-cloud__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 98px;
    padding: 16px 10px;
    text-align: center;
    border: 1px solid var(--ems-line);
    border-radius: 10px;
}
.ems-cloud__item strong { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ems-title); }
.ems-cloud__item span { font-size: 14px; color: var(--ems-muted); }
.ems-cloud__item--accent { background: #F4F8F0; border-color: #BCD3A8; }
.ems-cloud__item--accent strong { color: var(--bess-green); }

/* ---------------------------------------------------------- Core Capabilities */
.ems-caps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 56px;
}
.ems-cap {
    padding: 32px;
    background: #F8F8F6;
    border: 1px solid var(--ems-line);
    border-radius: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.ems-cap:hover { border-color: #BCD3A8; box-shadow: 0 8px 24px rgba(26, 28, 23, .06); }
.ems-cap h3 { margin: 30px 0 10px; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--ems-title); }
.ems-cap p { margin: 0; font-size: 18px; line-height: 30px; color: var(--ems-text); }

/* ---------------------------------------------------------- Strategies */
.ems-strategies {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 26px;
    margin-top: 64px;
}
.ems-strategy {
    grid-column: span 2;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(26, 28, 23, .07);
}
.ems-strategy__media { position: relative; aspect-ratio: 512 / 239; }
.ems-strategy__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ems-strategy__tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    color: #fff;
    background: rgba(20, 22, 20, .86);
    border-radius: 4px;
}
.ems-strategy__body { padding: 28px 24px 44px; }
.ems-strategy h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ems-title); }
.ems-strategy p { margin: 0; max-width: 380px; font-size: 15px; line-height: 23px; color: var(--ems-text); }
.ems-strategy--row p { max-width: 520px; }

.ems-strategy--row {
    grid-column: span 3;
    display: flex;
    gap: 20px;
    padding: 30px 28px;
}
.ems-strategy--row h3 { font-size: 18px; }
.ems-strategy__eyebrow {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    color: #98A0A0;
}

/* ---------------------------------------------------------- Local Intelligence */
.ems-visibility { padding: 120px 0 80px; background: var(--bess-footer-bg); }

.ems-visibility__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 84px;
}
.ems-visibility__title::before {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin-bottom: 24px;
    background: var(--bess-green);
}
.ems-visibility__title h2 { margin: 0 0 10px; font-size: 42px; font-weight: 700; line-height: 1.2; color: #fff; }
.ems-visibility__title p { margin: 0; font-size: 17px; line-height: 1.6; color: #D6DBD7; }

.ems-tabs {
    flex: none;
    display: flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 8px;
}
.ems-tabs__btn {
    padding: 8px 20px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #AEB6B0;
    background: transparent;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}
.ems-tabs__btn.is-active { color: #fff; background: var(--bess-green); }
.ems-tabs__btn:focus-visible { outline: 2px solid #A6C98C; outline-offset: 2px; }

.ems-visibility__grid {
    display: grid;
    grid-template-columns: minmax(0, 1105fr) minmax(0, 400fr);
    align-items: start;
    gap: 94px;
}
.ems-window--large { background: #0F1815; }
.ems-window__stage { position: relative; }

.ems-hotspot {
    position: absolute;
    left: 1.74%;
    top: 2.67%;
    width: 66.29%;
    height: 67.23%;
    border: 2.5px solid #5C9434;
    border-radius: 6px;
    pointer-events: none;
}
.ems-hotspot[hidden] { display: none; }
.ems-hotspot[data-ems-hotspot="2"] { left: 69.3%; top: 1.2%; width: 30.2%; height: 36.8%; }
.ems-hotspot[data-ems-hotspot="3"] { left: 69.3%; top: 39%; width: 30.2%; height: 28.4%; }
.ems-hotspot span {
    position: absolute;
    left: 0;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--bess-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ems-features { list-style: none; margin: 0; padding: 0; }
.ems-features[hidden] { display: none; }
.ems-features li { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ems-feature {
    display: flex;
    gap: 22px;
    width: 100%;
    padding: 0 0 28px;
    font: inherit;
    text-align: left;
    color: inherit;
    background: none;
    border: 0;
}
.ems-features li + li .ems-feature { padding-top: 28px; }
button.ems-feature { cursor: pointer; }
button.ems-feature:focus-visible { outline: 2px solid #A6C98C; outline-offset: 4px; border-radius: 4px; }
.ems-feature__no { flex: none; padding-top: 4px; font-size: 14px; font-family: ui-monospace, Menlo, monospace; color: #8B948D; }
.ems-feature__text strong { display: block; margin-bottom: 10px; font-size: 20px; font-weight: 600; color: #F2F4F2; transition: color .15s; }
.ems-feature__text > span { display: block; font-size: 15px; line-height: 23px; color: #8B948D; }
.ems-feature.is-active .ems-feature__text strong,
button.ems-feature:hover .ems-feature__text strong { color: #7CB257; }

.ems-visibility__note { margin-top: 36px; }
.ems-visibility__note p { margin: 0; font-size: 13px; line-height: 20px; color: #707A74; }

/* ---------------------------------------------------------- Teams */
.ems-teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 64px;
}
.ems-team {
    display: flex;
    gap: 24px;
    padding: 36px 40px;
    background: #fff;
    border: 1px solid #ECEEEA;
    border-radius: 15px;
    transition: border-color .2s, box-shadow .2s;
}
.ems-team:hover { border-color: #BCD3A8; box-shadow: 0 8px 24px rgba(26, 28, 23, .06); }
.ems-team h3 { margin: 0 0 12px; font-size: 21px; font-weight: 700; line-height: 1.5; color: var(--ems-title); }
.ems-team li { padding-top: 7px; padding-bottom: 7px; font-size: 16px; line-height: 22px; color: var(--ems-text); }
.ems-team li::before { top: 15px; }

/* ---------------------------------------------------------- Controller */
.ems-product { padding: 84px 0 96px; background: var(--ems-tint); }
.ems-product__grid {
    display: grid;
    grid-template-columns: minmax(0, 790fr) minmax(0, 770fr);
    align-items: center;
    gap: 44px;
}
.ems-product__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 454px;
    padding: 56px 28px 64px;
    background: #fff;
    border: 1px solid var(--ems-line);
    border-radius: 8px;
}
.ems-product__media::after {
    content: "";
    width: 100%;
    height: 1px;
    margin-top: 40px;
    background: var(--ems-line);
}
.ems-product__media img { display: block; width: 93%; height: auto; }
.ems-product__body h2 { margin: 0 0 16px; font-size: 34px; font-weight: 700; line-height: 1.2; color: var(--ems-title); }
.ems-product__body > p { margin: 0 0 36px; font-size: 19px; line-height: 28px; color: var(--ems-text); }

.ems-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 36px;
}
.ems-spec {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--ems-line);
    border-radius: 10px;
}
.ems-spec strong { display: block; font-size: 15px; font-weight: 600; color: var(--ems-title); }
.ems-spec div > span { display: block; font-size: 13px; color: var(--ems-muted); }

/* ---------------------------------------------------------- Process */
.ems-process { padding: 96px 0 120px; background: #fff; }
.ems-process h2 { margin: 0 0 12px; font-size: 34px; font-weight: 700; line-height: 1.2; color: var(--ems-title); }
.ems-process__lead { margin: 0; font-size: 18px; color: var(--ems-muted); }
.ems-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
}
.ems-step { position: relative; padding-right: 32px; }
.ems-step::before {
    content: "";
    position: absolute;
    left: 40px;
    right: 0;
    top: 19px;
    height: 1px;
    background: #DDE0DC;
}
.ems-step__no {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 26px;
    font-size: 15px;
    font-weight: 600;
    color: #5A615C;
    background: #fff;
    border: 1px solid #C9CDC8;
    border-radius: 50%;
    transition: background .2s, color .2s, border-color .2s;
}
.ems-step:first-child .ems-step__no,
.ems-step:hover .ems-step__no { color: #fff; background: var(--bess-green); border-color: var(--bess-green); }
.ems-step__label { display: block; margin-bottom: 14px; font-size: 13px; letter-spacing: .14em; color: #8E9490; }
.ems-step h3 { margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ems-title); }
.ems-step p { margin: 0; max-width: 240px; font-size: 15px; line-height: 25px; color: var(--ems-muted); }

/* ---------------------------------------------------------- 下载登录框（交互同 Academy） */
.ems-login-prompt {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, .55);
}
.ems-login-prompt[hidden] { display: none; }
.ems-login-prompt__dialog {
    position: relative;
    width: 440px;
    max-width: 100%;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
}
.ems-login-prompt__close {
    position: absolute;
    top: 12px;
    right: 16px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
    color: var(--ems-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.ems-login-prompt__dialog h3 { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--ems-title); }
.ems-login-prompt__dialog p { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--ems-text); }
.ems-login-prompt__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ems-login-prompt__actions .btn { flex: 1 1 150px; padding: 0 16px; }
.ems-login-prompt__register { color: var(--bess-green); border-color: var(--bess-green); }
.ems-login-prompt__register:hover { background: var(--ems-green-soft); }

/* 设计稿在宽屏时架构卡比内容区略宽，流程区略内收 */
@media (min-width: 1760px) {
    .ems-arch { margin-left: -34px; margin-right: -34px; }
    .ems-process .site-container { padding-left: 98px; padding-right: 98px; }
}

/* ---------------------------------------------------------- 响应式 */
/* 中等屏宽首屏变矮：按钮收紧、控制器缩小右移，避免下载按钮叠在控制器上 */
@media (min-width: 1101px) and (max-width: 1700px) {
    .ems-hero__cta { gap: 12px 16px; }
    .ems-hero__cta .btn { padding: 0 20px; }
    .ems-hero__device { left: -6%; width: 72%; }
}
@media (min-width: 1101px) and (max-width: 1180px) {
    .ems-hero__cta .btn { padding: 0 14px; font-size: 13px; }
}

@media (max-width: 1400px) {
    .ems-arch { padding: 40px 28px 48px 20px; }
    .ems-arch__row { grid-template-columns: 150px minmax(0, 1fr); column-gap: 20px; }
    .ems-arch__row--link,
    .ems-arch__row--bus,
    .ems-arch__row--wan { grid-template-columns: minmax(0, 1fr); padding-left: 170px; }
    .ems-layer { padding: 12px 34px 12px 14px; }
    .ems-layer strong { font-size: 16px; }
    .ems-layer span { font-size: 13px; }
    .ems-device__name { font-size: 12px; }
    .ems-cloud { padding: 20px; gap: 12px; }
    .ems-cloud__item strong { font-size: 14px; }
    .ems-cloud__item span { font-size: 12px; }
    .ems-caps { grid-template-columns: repeat(2, 1fr); }
    .ems-visibility__grid { gap: 48px; }
    .ems-product__grid { grid-template-columns: 1fr; }
    .ems-product__media { min-height: 0; }
    .ems-product__media img { max-width: 720px; }
}

@media (max-width: 1100px) {
    .ems-hero__inner { display: block; padding: 64px 40px 72px; min-height: 0; }
    .ems-hero__text { max-width: 720px; }
    .ems-hero__lead { max-width: none; }
    /* 控制器相对窗口左伸 19.5%：左边距留足，避免被裁 */
    .ems-hero__art { position: relative; top: auto; right: auto; width: 82%; max-width: none; margin: 56px 0 14% 18%; }
    .ems-visibility__grid { grid-template-columns: 1fr; }
    .ems-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
    .ems-step:nth-child(2)::before { display: none; }

    /* 架构图窄屏改纵向：层名在上，设备卡网格，隐藏连接线 */
    .ems-arch { padding: 24px; }
    .ems-arch__row { grid-template-columns: minmax(0, 1fr); row-gap: 16px; margin-bottom: 32px; }
    .ems-arch__row--link,
    .ems-arch__row--bus { display: none; }
    .ems-arch__row--wan { padding-left: 0; margin-bottom: 16px; }
    .ems-wan { margin-left: 8px; }
    .ems-layer { min-height: 0; clip-path: none; border-radius: 6px; padding: 12px 16px; }
    .ems-arch__track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    .ems-arch__track > [data-col] { grid-column: auto; }
    .ems-device__in { display: none; }
    .ems-controller-card { grid-template-columns: 1fr 1fr; row-gap: 16px; padding: 20px; }
    .ems-controller-card h3 { grid-column: 1 / -1; }
    .ems-cloud { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .ems .site-container { padding: 0 24px; }
    .ems-section,
    .ems-process { padding: 64px 0; }
    .ems-visibility { padding: 64px 0; }
    .ems-product { padding: 64px 0; }
    .ems-heading strong.ems-heading__sub { font-size: 19px; }
    .ems-hero__inner { padding: 48px 24px 56px; }
    .ems-hero__title { font-size: 34px; }
    .ems-hero__cta { gap: 12px; }
    .ems-hero__cta .btn { width: 100%; padding: 0 16px; }
    .ems-hero__art { width: 84%; margin: 40px 0 16% 16%; }
    .ems-window { padding: 0 10px 10px; border-radius: 14px; }
    .ems-window__bar { gap: 6px; height: 42px; margin-bottom: 8px; }
    .ems-window__bar > i { width: 9px; height: 9px; }
    .ems-window__title { margin-left: 4px; font-size: 11px; }
    .ems-window__badge { padding: 2px 6px; font-size: 10px; }
    .ems-why,
    .ems-caps,
    .ems-teams,
    .ems-steps,
    .ems-specs { grid-template-columns: 1fr; }
    .ems-why { margin-top: 40px; gap: 24px; }
    .ems-strategies { display: flex; flex-direction: column; margin-top: 40px; gap: 20px; }
    .ems-arch__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ems-controller-card { grid-template-columns: 1fr; }
    .ems-controller-card__list { grid-auto-flow: row; grid-template-rows: none; }
    .ems-heading h2,
    .ems-heading--lead strong.ems-heading__sub { font-size: 24px; }
    .ems-heading h2 { font-size: 28px; line-height: 1.2; }
    .ems-heading--teams p { font-size: 17px; }
    .ems-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
    .ems-visibility__head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
    .ems-visibility__title h2,
    .ems-product__body h2,
    .ems-process h2 { font-size: 28px; }
    .ems-team { padding: 24px; gap: 16px; }
    .ems-cap { padding: 24px; }
    .ems-cap h3 { margin-top: 20px; font-size: 20px; }
    .ems-product__media { padding: 20px; }
    .ems-product__body > p { font-size: 16px; line-height: 26px; }
    .ems-product__body .btn { width: 100%; padding: 0 16px; }
    .ems-step::before { display: none; }
}
