/* 专业技术页 (page ID 47951) —— 复刻 /software/ 的 .hero，并把正文拉回 1320 栅格
 * 作用域限定 .page-id-47951；Elementor 自带规则权重更高，关键属性加 !important。
 * 回滚 = 删除本文件 + 移除 functions.php 里的 enqueue_technology_page_css()。
 *
 * 目标值来自 /software/ 实测：
 *   宽度 1905/1521/1351/753/375 → hero 高 821/714/643/459/353，圆角 0，全宽出血，文字垂直居中
 *   标题 h1=clamp(32px,4.167vw,60px)，文本列 = 容器 8/12，p=1.5rem / mt 20px
 *   容器宽度沿用 Bootstrap：1320(≥1400) / 1140(≥1200) / 960(≥992) / 720(≥768) / 540(<768)
 */

/* 0) 主题给 .page-content 加了 30px 左右内边距；软件页 hero 是 0→边缘的全宽，本页清零 */
.page-id-47951 .page-content {
    padding-inline: 0 !important;
}

/* 1) hero：全宽 + 去圆角 + 与 .hero 同高，内容垂直居中 */
.page-id-47951 .elementor-element-1d07d17 {
    margin-top: 0 !important;   /* Elementor 默认给了 20px 上外边距 → 页眉与 hero 之间露出白条 */
}
.page-id-47951 .elementor-element-832f459 {
    border-radius: 0 !important;
    min-height: min(47vw, calc(28vw + 288px)) !important;
    padding: 0 !important;
    justify-content: center;
    background-position: center center !important;
    background-size: cover !important;
}

/* 2) hero 内文字回到 .container 栅格（与软件页同一列宽、同一左边界） */
.page-id-47951 .elementor-element-832f459 > .elementor-element {
    width: 100% !important;
    max-width: 1320px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
}

/* 3) 标题 / 副标题：字号与文本列宽（8/12）对齐软件页 */
.page-id-47951 .elementor-element-99997c1 .elementor-heading-title {
    font-size: clamp(32px, 4.167vw, 60px) !important;
    line-height: 1.08 !important;
    margin: 0 !important;
    max-width: 66.667%;
}
.page-id-47951 .elementor-element-2d1ef09 {
    font-size: 1.5rem !important;
    margin: 20px 0 0 !important;
    max-width: 66.667%;
}

/* 4) 正文区回到 .container 栅格（这几个是全宽 section，宽屏行宽会超出设计线）
 *    注意：底部红色 CTA（81021c7）及其内层 6d80bce 不在列表里 —— 它带 force-full-width
 *    和 JS 写入的 inline width，本来就是全宽出血设计，限制宽度会把人物图挤变形。 */
.page-id-47951 .elementor-element-4cc797c,
.page-id-47951 .elementor-element-de6ed9a,
.page-id-47951 .elementor-element-ced7a47,
.page-id-47951 .elementor-element-a1614e1 {
    width: 100% !important;
    max-width: 1320px !important;
    margin-inline: auto !important;
    padding-inline: 0 !important; /* 与 hero 标题同一左边界（页内一致优先） */
}

/* 5) 底部红色 CTA：不锁宽度，保持 force-full-width 的 inline 全宽；
 *    人物图按原始比例显示（contain，不放大不裁切），并贴右下角 */
.page-id-47951 .elementor-element-81021c7 {
    max-width: none !important;
}
.page-id-47951 .elementor-element-81021c7 .elementor-element-d954843,
.page-id-47951 .elementor-element-81021c7 .elementor-widget-image,
.page-id-47951 .elementor-element-81021c7 .elementor-widget-image .elementor-widget-container {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
}
.page-id-47951 .elementor-element-81021c7 .elementor-widget-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    object-position: bottom right;
}

/* 6) 容器宽度对齐 Bootstrap 断点（软件页 .container 就是这么收的） */
@media (max-width: 1399px) {
    .page-id-47951 .elementor-element-832f459 > .elementor-element,
    .page-id-47951 .elementor-element-4cc797c,
    .page-id-47951 .elementor-element-de6ed9a,
    .page-id-47951 .elementor-element-ced7a47,
    .page-id-47951 .elementor-element-a1614e1 {
        max-width: 1140px !important;
    }
}
@media (max-width: 1199px) {
    .page-id-47951 .elementor-element-832f459 > .elementor-element,
    .page-id-47951 .elementor-element-4cc797c,
    .page-id-47951 .elementor-element-de6ed9a,
    .page-id-47951 .elementor-element-ced7a47,
    .page-id-47951 .elementor-element-a1614e1 {
        max-width: 960px !important;
    }
}
@media (max-width: 991px) {
    .page-id-47951 .elementor-element-832f459 > .elementor-element,
    .page-id-47951 .elementor-element-4cc797c,
    .page-id-47951 .elementor-element-de6ed9a,
    .page-id-47951 .elementor-element-ced7a47,
    .page-id-47951 .elementor-element-a1614e1 {
        max-width: 720px !important;
    }
    .page-id-47951 .elementor-element-832f459 {
        min-height: 61vw !important;
    }
}
@media (max-width: 767px) {
    .page-id-47951 .elementor-element-832f459 > .elementor-element,
    .page-id-47951 .elementor-element-4cc797c,
    .page-id-47951 .elementor-element-de6ed9a,
    .page-id-47951 .elementor-element-ced7a47,
    .page-id-47951 .elementor-element-a1614e1 {
        max-width: 540px !important;
    }
    .page-id-47951 .elementor-element-832f459 {
        min-height: 90vw !important;
    }
    .page-id-47951 .elementor-element-99997c1 .elementor-heading-title,
    .page-id-47951 .elementor-element-2d1ef09 {
        max-width: 100%;
    }
    .page-id-47951 .elementor-element-15d30d8,
    .page-id-47951 .elementor-element-010304a,
    .page-id-47951 .elementor-element-d954843 {
        --width: 100% !important;
    }
    /* 手机端补回左右留白（软件页正文离边 ~39px） */
    .page-id-47951 .elementor-element-4cc797c,
    .page-id-47951 .elementor-element-de6ed9a,
    .page-id-47951 .elementor-element-ced7a47,
    .page-id-47951 .elementor-element-a1614e1 {
        padding-inline: 24px !important;
    }
}
