/* ═══ ⑪ 应用场景分组模式（对齐 jietai-b2b）═══ */
/* 说明：主题 html{font-size:10px}，所以本段一律用 px，禁用 rem */

/* ── 区块底色（b2b 是极浅灰）── */
.gallery-area:has(.app-groups) {
    background: #f7f9fb;
}

/* ── 分组 ── */
.app-groups {
    display: block;
}
.app-group {
    margin-bottom: 44px;
}
.app-group:last-child {
    margin-bottom: 0;
}

/* 分组小标题：左侧深蓝短竖条（b2b 原样） */
.app-group__title {
    position: relative;
    margin: 0 0 20px 0;
    padding-left: 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #16202e;
}
.app-group__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #16499c;
    border-radius: 2px;
}

/* ── 网格：flex 3 列（7 个 / 5 个都除不尽 3 列，用 flex 让末行自然留空）── */
.appgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.appgrid > .acard {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    box-sizing: border-box;
}

/* ── 应用卡：图片在上（16:10）+ 白色内容区在下 ── */
.acard.acard--img {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.acard.acard--img:hover {
    border-color: #cfd6df;
    box-shadow: 0 8px 24px rgba(10, 32, 66, .10);
    transform: translateY(-2px);
}

/* 图片：固定 16:10，保证 12 张卡图片区等高 */
.acard.acard--img .acard__pic {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

/* 内容区：白底，不是浮层、不是渐变遮罩 */
.acard.acard--img .acard__in {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: inherit;
}
.acard.acard--img .acard__in h3 {
    margin: 0 0 5px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #16202e;
}
/* 描述限两行，保证所有卡文字区等高、网格不参差 */
.acard.acard--img .acard__in > span:not(.acard__go) {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.5;
    color: #5a6577;
}
.acard.acard--img .acard__go {
    margin-top: auto;
    padding-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #16499c;
}

/* ── 每组末尾的 CTA 卡（深海军蓝）── */
.acard.acard--cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 24px 22px;
    background: #0d2f63;
    border: 1px solid #0d2f63;
    border-radius: 12px;
    color: #fff;
}
.acard.acard--cta h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.acard.acard--cta > span {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .82);
}
.acard.acard--cta .acard__btn {
    align-self: flex-start;
    margin-top: 12px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.acard.acard--cta .acard__btn:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .75);
}

/* ── 响应式：900px 两列 → 640px 单列（b2b 原样）── */
@media (max-width: 900px) {
    .appgrid > .acard {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }
    .appgrid { gap: 20px 0px; row-gap: 20px; column-gap: 20px; }
}
@media (max-width: 640px) {
    .appgrid { gap: 14px; }
    .appgrid > .acard {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .app-group { margin-bottom: 32px; }
    .app-group__title { font-size: 18px; }
    .acard.acard--img .acard__in { padding: 14px 15px 16px; }
    .acard.acard--img .acard__in h3 { font-size: 16px; }
}
