/* 首页轮播图：图片比例 1903:447，按宽度自适应完整显示，不做固定高度裁剪 */
.slideshow {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 顶部导航占位：高度随视口缩放，JS 会再按导航栏实测高度校准 */
.head-sm-height {
    height: clamp(56px, 4.4vw, 76px);
}

@media only screen and (max-width: 576px) {
    .head-sm-height {
        height: 60px !important;
    }
}

/* 大屏（≥1200px）下将 Bootstrap 容器最大宽度改为屏幕的 90%，让内容铺得更宽 */
@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 90%;
  }
}

/* 头部右上角电话区 */
.header-phone {
    margin-left: 18px;
    opacity: 0;
    animation: headerPhoneSlideIn 1s ease-out 0.3s forwards;
}

/* 电话区从右侧飘入动画 */
@keyframes headerPhoneSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.header-phone-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}
.header-phone-link:hover {
    text-decoration: none;
    color: #0d6efd;
}

/* 首页产品推荐区标题样式 */
.slogan-section {
    padding: 20px 0 60px;
}
.slogan-title {
    color: #0047AB;
    font-weight: 700;
    /* 字号随屏宽线性缩放：1920px 取 48px，1200px 约 31px，不再出现省略号 */
    font-size: clamp(20px, 2.6vw, 48px);
    line-height: 1.3;
    margin: 0 0 20px;
    /* 不再 nowrap + ellipsis：装不下时换行显示，绝不截断标题 */
    overflow: visible;
    overflow-wrap: break-word;
}
/* 关于我们模块标题（slogen02）颜色 */
.slogan-title-about {
    color: rgb(47, 54, 76);
}
.slogan-subtitle {
    color: #333333;
}
.header-phone-icon {
    width: clamp(22px, 1.85vw, 36px);
    height: clamp(22px, 1.85vw, 36px);
    margin-right: clamp(4px, 0.5vw, 8px);
}
.header-phone-number {
    font-size: clamp(14px, 1.15vw, 22px);
    font-weight: 500;
    color: #333;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ============================================================
   顶部导航：流体三栏布局（logo 左 / 菜单中 / 电话右）
   —— 取消原先 navbar-nav 的绝对定位居中：它脱离文档流后会带不透明
      背景压住左侧 logo 与右侧电话（992~1400px 尤为明显）。
      现改为同排 flex 三栏，菜单占据剩余空间并居中，三者永不重叠，
      且 logo / 菜单字号 / 电话字号全部随视口宽度线性缩放。
   断点说明：≥992px 为电脑端三栏；<992px 走 Bootstrap 折叠菜单。
   ============================================================ */
@media (min-width: 992px) {
    .navbar > .container {
        flex-wrap: nowrap;
        min-width: 0;
    }

    /* 左：logo 随屏宽缩放，宽度不足时优先保证不被菜单覆盖 */
    .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: clamp(10px, 1.2vw, 32px);
        display: flex;
        align-items: center;
    }
    .navbar-brand img,
    .logo-sm-height {
        height: clamp(34px, 3.1vw, 59px);
        width: auto;
        max-width: 100%;
        display: block;
    }

    /* 中：菜单区占据剩余空间 */
    .navbar-collapse {
        flex: 1 1 auto !important;
        flex-basis: auto !important;
        min-width: 0;
        display: flex !important;
        align-items: center;
    }

    .navbar-nav {
        position: static;          /* 回到文档流，不再覆盖 logo */
        left: auto;
        transform: none;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: center;
        background-color: transparent;
        z-index: auto;
    }

    /* 右：电话区 */
    .header-phone {
        flex: 0 0 auto;
        margin-left: clamp(8px, 1vw, 18px);
    }
}

/* 菜单文字与间距随屏宽缩放（覆盖 aoyun.css 的 18px / 1.2rem 固定值） */
.navbar-expand-lg .navbar-nav .nav-link {
    font-size: clamp(13px, 1.05vw, 18px);
    padding-left: clamp(0.4rem, 0.95vw, 1.2rem);
    padding-right: clamp(0.4rem, 0.95vw, 1.2rem);
    white-space: nowrap;
}

/* 导航菜单文字设为黑色 */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #000;
}

/* 底部：黑色背景 + 六列布局 */
.site-footer {
    background-color: #000 !important;
    color: #fff !important;
    padding: 50px 0 0;
    border: none;
    margin-top: 0 !important;
}
.site-footer * {
    color: #fff;
}
.site-footer a {
    color: #fff;
    text-decoration: none;
}
.site-footer a:hover {
    color: #4a9eff;
    text-decoration: none;
}
.site-footer-main {
    padding-bottom: 40px;
}
.site-footer-col {
    color: #fff;
}
.site-footer-title {
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
}
.site-footer-company .site-footer-title {
    font-size: clamp(14px, 1.35vw, 22px);
    margin-bottom: 30px;
    white-space: nowrap;
}
.site-footer-hotline-label {
    color: #fff !important;
    font-size: 15px;
    margin-bottom: 6px;
}
.site-footer-hotline {
    color: #fff !important;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
}
.site-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer-list li {
    line-height: 2;
}
.site-footer-list li a {
    color: #fff !important;
    font-size: clamp(13px, 1vw, 15px);
    text-decoration: none;
}
.site-footer-list li a:hover {
    color: #4a9eff;
    text-decoration: none;
}
.site-footer-qr .site-footer-qr-label {
    color: #fff !important;
    font-size: clamp(13px, 1.1vw, 16px);
    margin-bottom: 12px;
    text-align: center;
    white-space: nowrap;
}
.site-footer-qr .site-footer-qr-img {
    text-align: center;
    margin-bottom: 0;
}
.site-footer-qr .site-footer-qr-img img {
    width: 120px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #fff;
    padding: 6px;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 底部六列按内容长度重新分配宽度（总计 100%）：
   ①公司名(29%) ②关于我们(14%) ③产品解决方案(16%) ④公司动态(14%) ⑤⑥二维码(13.5%)
   公司名最长给最宽，产品列文字较长次之，二维码列需容纳 120px 图片 */
@media (min-width: 992px) {
    .site-footer-main > .site-footer-col:nth-child(1) {
        flex: 0 0 29%;
        max-width: 29%;
    }

    .site-footer-main > .site-footer-col:nth-child(2),
    .site-footer-main > .site-footer-col:nth-child(4) {
        flex: 0 0 14%;
        max-width: 14%;
    }

    .site-footer-main > .site-footer-col:nth-child(3) {
        flex: 0 0 16%;
        max-width: 16%;
    }

    .site-footer-main > .site-footer-col:nth-child(5),
    .site-footer-main > .site-footer-col:nth-child(6) {
        flex: 0 0 13.5%;
        max-width: 13.5%;
    }
}

/* 768~991px：避免六列并排过窄，改为每行三列 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .site-footer-main > .site-footer-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* <768px：每行两列 */
@media (max-width: 767.98px) {
    .site-footer-main > .site-footer-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

.site-footer-copyright {
    border-top: 1px solid #333;
    padding: 18px 0;
    text-align: center;
    color: #fff !important;
    font-size: clamp(12px, 0.8vw, 14px);
    line-height: 1.8;
}
.site-footer-copyright p {
    margin: 0;
}
/* 版权行的公司名：字号随屏宽自适应缩放；装不下时换行而非溢出 */
.site-footer-copyright span,
.site-footer-copyright {
    white-space: normal;
}
.site-footer-copyright b,
.site-footer-copyright strong {
    font-size: clamp(13px, 1.1vw, 18px);
    font-weight: inherit;
    white-space: nowrap;
}
.site-footer-copyright a {
    color: #fff !important;
    text-decoration: none;
    margin: 0 4px;
    white-space: nowrap;
}
.site-footer-copyright a:hover {
    color: #4a9eff;
}

/* 首页四个文字方块 */
.feature-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
}
/* 强制四个方块始终横向四等分排布，不随屏幕宽度退化 */
.feature-col {
    width: 25%;
    flex: 0 0 25%;
    max-width: 25%;
    padding-left: 0;
    padding-right: 0;
    display: flex;
}
@media (max-width: 768px) {
    .feature-col {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 480px) {
    .feature-col {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.feature-card {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* 原为固定 320px：小屏下卡片过高且文字挤压，改为随视口缩放 */
    min-height: clamp(240px, 17vw, 320px);
    padding: clamp(18px, 1.6vw, 30px) clamp(14px, 1.3vw, 24px);
    background-color: #ffffff;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

/* 默认隐藏的背景图层（注意：CSS 中不能使用 PbootCMS 标签，必须用真实路径） */
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/static/images/bg001.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-title {
    color: #1f2a44;
    font-size: clamp(17px, 1.3vw, 24px);
    font-weight: 700;
    margin: 0 0 clamp(10px, 0.85vw, 16px);
}
.feature-desc {
    color: #555;
    font-size: clamp(12px, 0.8vw, 14px);
    line-height: 1.8;
    margin: 0 0 clamp(14px, 1.3vw, 24px);
    text-align: start;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
}
.feature-btn {
    display: inline-block;
    padding: clamp(6px, 0.5vw, 8px) clamp(18px, 1.9vw, 36px);
    background-color: #1e88ff;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: clamp(12px, 0.8vw, 14px);
    text-decoration: none;
    transition: background-color 0.4s ease;
    margin-top: auto;
}
.feature-btn:hover {
    background-color: #0d6efd;
    color: #ffffff !important;
    text-decoration: none;
}

/* 鼠标悬停时：仅显示背景图，文字颜色与遮罩均不改变 */
.feature-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}
.feature-card:hover::before {
    opacity: 1;
}

@media (max-width: 575.98px) {
    .feature-card {
        padding: 24px 18px;
    }
    .feature-title {
        font-size: 20px;
    }
}

/* 首页优势展示 */
.advantage-section {
    /* 原为固定 160px：小屏下三列内容会被纵向裁切 */
    height: auto;
    min-height: clamp(120px, 8.6vw, 160px);
    padding: clamp(16px, 1.4vw, 26px) 0;
    background-image: url("/static/images/bg7878.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.advantage-section .container {
    height: 100%;
    min-height: inherit;
}

.advantage-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: 100%;
}

.advantage-col {
    flex: 1 1 0;
    max-width: 33.333333%;
    display: flex;
    justify-content: center;
    padding: 0 clamp(8px, 0.8vw, 15px);
    min-width: 0;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.1vw, 20px);
    max-width: 380px;
    min-width: 0;
}

.advantage-icon {
    flex-shrink: 0;
    width: clamp(28px, 2.2vw, 42px);
    height: clamp(28px, 2.2vw, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, height 0.3s ease;
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advantage-col:hover .advantage-icon {
    width: clamp(34px, 2.6vw, 50px);
    height: clamp(34px, 2.6vw, 50px);
}

.advantage-content {
    flex: 1;
    min-width: 0;
}

.advantage-title {
    font-size: clamp(14px, 1.05vw, 20px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 clamp(6px, 0.65vw, 12px);
    line-height: 1.4;
    white-space: nowrap;
}

.advantage-desc {
    font-size: clamp(11px, 0.75vw, 14px);
    color: #555;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 767.98px) {
    .advantage-section {
        padding: 50px 0;
    }

    .advantage-row {
        flex-direction: column;
        gap: 30px;
    }

    .advantage-item {
        max-width: 100%;
    }
}

/* 首页公司动态 */
.news-section {
    background-color: #fff;
}
.news-section-title {
    color: #1f2a44;
    font-weight: 700;
    margin-bottom: 10px;
}
.news-section-subtitle {
    color: #888;
    margin-bottom: 40px;
}
.news-card {
    display: block;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.news-card:hover {
    text-decoration: none;
    transform: translateY(-8px);
    box-shadow: 0 14px 32px rgba(0, 71, 171, 0.14);
}
.news-card-img {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background-color: #f5f7fa;
}
.news-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-card:hover .news-card-img img {
    transform: scale(1.05);
}
.news-card-body {
    padding: 20px 22px 22px;
}
.news-card-title {
    color: #1f2a44;
    font-size: clamp(17px, 1.3vw, 24px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: clamp(8px, 0.75vw, 14px);
    min-height: clamp(48px, 3.5vw, 67px);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-card:hover .news-card-title {
    color: #0047AB;
}
.news-card-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 12px;
}
.news-card-desc {
    color: #666;
    font-size: clamp(12px, 0.8vw, 14px);
    line-height: 1.75;
    margin-bottom: clamp(10px, 1vw, 18px);
    min-height: clamp(42px, 2.6vw, 49px);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.news-card-tag {
    display: inline-block;
    color: #666;
    font-size: 13px;
    padding: 4px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.news-card:hover .news-card-tag {
    border-color: #0047AB;
    color: #0047AB;
}
.news-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #0047AB;
    font-size: 14px;
    transition: transform 0.35s ease;
}
.news-card:hover .news-card-arrow {
    transform: translateX(4px);
}

@media (max-width: 575.98px) {
    .news-card-title {
        font-size: 18px;
        min-height: 50px;
    }
    .news-card-body {
        padding: 16px 18px 18px;
    }
}

/* 首页选择理由 */
.reason-section {
    position: relative;
    padding: 70px 0;
    background-color: rgb(238, 238, 238);
    background-image: url("/static/images/services_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.reason-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
}

.reason-header-left {
    flex: 0 0 55%;
    max-width: 55%;
    min-width: 0;
}

.reason-header-right {
    flex: 0 0 42%;
    max-width: 42%;
    min-width: 0;
}

.reason-title {
    font-size: clamp(18px, 2.5vw, 40px);
    font-weight: 700;
    color: #222f30;
    line-height: 1.35;
    margin: 0;
    /* 不再 nowrap + ellipsis：宽度不足时由字号自适应 / 换行兜底 */
    overflow: visible;
    overflow-wrap: break-word;
}

.reason-desc {
    font-size: clamp(13px, 0.95vw, 16px);
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.reason-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 45px;
}

.reason-cards-row {
    margin-left: -12px;
    margin-right: -12px;
}

.reason-cards-row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

.reason-card {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f6f6f6;
    cursor: pointer;
    aspect-ratio: 729 / 477;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.reason-card.dark {
    background-color: #3e4f4f;
    color: #fff;
}

/* 选择理由01 - 图片中的默认样式（白底卡片） */
.reason-card--style2 {
    width: 100%;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    background-image: url(../../../static/images/01003.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

/* 选择理由02 */
.reason-card-02 {
    width: 100%;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    color: #fff;
    background-image: url(../../../static/images/02003.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.reason-card-02 .reason-card-title {
    text-decoration: none;
}

.reason-card-02 .reason-num {
    color: #fff;
}

/* 选择理由03 */
.reason-card-03 {
    width: 100%;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    color: #fff;
    background-image: url(../../../static/images/03003.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.reason-card-03 .reason-card-title {
    text-decoration: none;
}

.reason-card-03 .reason-num {
    color: #fff;
}

.reason-card--style2 .reason-num {
    color: #1f1f1f;
    font-size: clamp(24px, 2vw, 38px);
}

.reason-card--style2 .reason-card-title {
    text-decoration: none;
    font-size: clamp(16px, 1.3vw, 24px);
    color: #1f1f1f;
}

.reason-card--style2 .reason-card-desc {
    color: #1f1f1f;
    opacity: 1;
    font-size: clamp(12px, 0.85vw, 15px);
    line-height: 1.8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.reason-card--style2 .reason-label {
    background: #f0f4ec;
    color: #4a6b3a;
}

.reason-card-content {
    position: absolute;
    inset: 0;
    /* 原为固定 26/28/80px：小屏下会挤压正文，改为随卡片宽度缩放 */
    padding: clamp(14px, 1.4vw, 26px) clamp(14px, 1.5vw, 28px) clamp(46px, 4.2vw, 80px);
    display: flex;
    flex-direction: column;
    z-index: 1;
    overflow: hidden;
}

.reason-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: clamp(8px, 0.65vw, 12px);
    height: clamp(28px, 2.1vw, 40px);
}

.reason-label {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: clamp(3px, 0.32vw, 5px) clamp(7px, 0.65vw, 12px);
    font-size: clamp(11px, 0.7vw, 13px);
    color: inherit;
    white-space: nowrap;
}

.reason-card.dark .reason-label {
    background: rgba(255, 255, 255, 0.12);
}

.reason-label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #8bc34a;
    border-radius: 2px;
    margin-right: 6px;
}

.reason-num {
    font-size: clamp(24px, 2vw, 38px);
    font-weight: 700;
    color: #8bc34a;
    line-height: 1;
}

.reason-card-title {
    font-size: clamp(16px, 1.3vw, 24px);
    font-weight: 700;
    color: inherit;
    margin: 0 0 clamp(8px, 0.65vw, 12px);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.reason-card-desc {
    font-size: clamp(12px, 0.85vw, 15px);
    line-height: 1.8;
    color: inherit;
    opacity: 0.95;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.reason-card-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 2;
}

.reason-card-hover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reason-arrow {
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: clamp(38px, 2.8vw, 54px);
    height: clamp(38px, 2.8vw, 54px);
    background: url(/static/images/jiantou.png) center / contain no-repeat;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background-image 0.3s ease;
}

.reason-arrow i {
    font-size: 16px;
    color: #000;
    transition: color 0.3s ease;
}

/* hover 01 */
.reason-card--style2:hover .reason-arrow {
    background-image: url(/static/images/jiantou01.png);
}

.reason-card--style2:hover .reason-arrow i {
    color: #1e73e8;
}

/* hover 02 */
.reason-card-02:hover .reason-arrow {
    background-image: url(/static/images/jiantou02.png);
}

.reason-card-02:hover .reason-arrow i {
    color: #1e73e8;
}

/* hover 03 */
.reason-card-03:hover .reason-arrow {
    background-image: url(/static/images/jiantou03.png);
}

.reason-card-03:hover .reason-arrow i {
    color: #1e73e8;
}

/* 三个块整体 hover：标题下划线、描述行距+0.2倍、序号变绿 */
.reason-card--style2:hover .reason-card-title,
.reason-card-02:hover .reason-card-title,
.reason-card-03:hover .reason-card-title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.reason-card--style2:hover .reason-card-desc,
.reason-card-02:hover .reason-card-desc,
.reason-card-03:hover .reason-card-desc {
    line-height: 2.1;
}

.reason-card--style2:hover .reason-num,
.reason-card-02:hover .reason-num,
.reason-card-03:hover .reason-num {
    color: #8bc34a;
}

@media (max-width: 991.98px) {
    .reason-header-left,
    .reason-header-right {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .reason-header-right {
        margin-top: 18px;
    }

    .reason-title {
        font-size: 30px;
    }

    .reason-card {
        aspect-ratio: 1 / 1.05;
    }
}

@media (max-width: 575.98px) {
    .reason-section {
        padding: 50px 0;
    }

    .reason-title {
        font-size: 26px;
    }

    .reason-card {
        aspect-ratio: 1 / 1.15;
    }

    .reason-card-content {
        padding: 22px 22px 72px;
    }

    .reason-card-title {
        font-size: 20px;
    }

    .reason-num {
        font-size: 30px;
    }

    .reason-card-desc {
        font-size: 14px;
        -webkit-line-clamp: 6;
    }
}

/* ============================================================
   手机端适配（仅 max-width 断点生效，不影响电脑端显示）
   ============================================================ */

/* 1. 平板及以下：优势区固定 160px 高度会裁切堆叠后的内容，
      改为高度自适应；优势列跟随 col-12 全宽不再挤压 */
@media (max-width: 767.98px) {
    .advantage-section {
        height: auto;
    }

    .advantage-section .container {
        height: auto;
    }

    .advantage-row {
        height: auto;
        align-items: stretch;
    }

    .advantage-col {
        width: 100%;
        max-width: 100%;
    }
}

/* 3. 产品详情大图：图片不超出容器，完整显示不裁切 */
@media only screen and (max-width: 768px) {
    .view .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* 4. 富文本正文表格：内容超宽时在容器内横向滚动，防止撑破页面 */
@media (max-width: 991.98px) {
    .content table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 5. 首页大标语已改用 clamp() 随屏宽自适应，此处无需再固定字号 */

/* 6. 手机端全局兜底：禁止整页横向滚动 */
@media (max-width: 767.98px) {
    html,
    body {
        overflow-x: hidden;
    }
}

/* ============================================================
   核心服务区块
   ============================================================ */
.core-services-section {
    padding: 70px 0 80px;
    background-color: #fff;
}

.core-services-header {
    margin-bottom: 50px;
}

.core-services-title {
    color: #0047AB;
    font-size: clamp(26px, 2.6vw, 48px);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.3;
}

.core-services-subtitle {
    color: #333;
    font-size: clamp(15px, 1.1vw, 20px);
    font-weight: 500;
    margin: 0 0 22px;
}

.core-services-desc {
    color: #666;
    font-size: clamp(14px, 0.98vw, 18px);
    line-height: 1.85;
    max-width: 900px;
    margin: 0 auto;
}

.core-services-row {
    margin-left: -15px;
    margin-right: -15px;
}

.core-services-col {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 24px;
}

.core-service-card {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f7fa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.core-service-card a {
    display: block;
}

.core-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 71, 171, 0.12);
}

.core-service-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 458 / 257;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .core-services-section {
        padding: 50px 0 60px;
    }

    .core-services-title {
        font-size: 36px;
    }

    .core-services-subtitle {
        font-size: 18px;
    }

    .core-services-desc {
        font-size: 16px;
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 767.98px) {
    .core-services-title {
        font-size: 28px;
    }

    .core-services-subtitle {
        font-size: 16px;
    }

    .core-services-desc {
        font-size: 15px;
    }
}

/* ============================================================
   企业文化区块
   ============================================================ */
.culture-section {
    padding: 70px 0 80px;
    background-color: #f9f6ef;
}

.culture-header {
    margin-bottom: 50px;
}

.culture-title {
    display: inline-block;
    position: relative;
    color: #333;
    font-size: clamp(24px, 2vw, 38px);
    font-weight: 700;
    margin: 0;
    padding: 0 clamp(44px, 3.7vw, 70px);
    line-height: 1.3;
}

.culture-title::before,
.culture-title::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(30px, 2.6vw, 50px);
    height: clamp(15px, 1.3vw, 24px);
    background-repeat: repeat-x;
    background-image: radial-gradient(circle, #e0a13b 2px, transparent 2px);
    background-size: 8px 8px;
}

.culture-title::before {
    left: 0;
}

.culture-title::after {
    right: 0;
}

.culture-row {
    margin-left: -18px;
    margin-right: -18px;
}

.culture-col {
    padding-left: 18px;
    padding-right: 18px;
    /* 原为固定 132px（配合下方悬浮卡片），随视口缩放以免小屏留白过大 */
    margin-bottom: clamp(96px, 6.9vw, 132px);
}

.culture-card {
    position: relative;
    max-width: 100%;
    min-height: 300px;
    border-radius: 12px;
    overflow: visible;
    background-color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.culture-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width:100%;
    max-width: 100%;
    aspect-ratio: 640 / 235;
    z-index: 1;
}

.culture-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.culture-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* 原为固定 -85px 悬浮 + 241px 高：小屏下会溢出卡片底部 */
    bottom: clamp(-85px, -4.4vw, -55px);
    z-index: 2;
    width: 80%;
    height: auto;
    min-height: clamp(150px, 12.6vw, 241px);
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 10px;
    padding: clamp(14px, 1.15vw, 22px) clamp(16px, 1.4vw, 26px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.culture-card-title {
    color: #333;
    font-size: clamp(18px, 1.4vw, 26px);
    font-weight: 600;
    margin: 0 0 clamp(6px, 0.55vw, 10px);
    position: relative;
    padding-bottom: clamp(6px, 0.55vw, 10px);
}

.culture-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    background-color: #e0a13b;
    border-radius: 2px;
}

.culture-card-desc {
    color: #666;
    font-size: clamp(13px, 0.88vw, 16px);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 991.98px) {
    .culture-section {
        padding: 50px 0 60px;
    }

    .culture-title {
        font-size: 32px;
        padding: 0 60px;
    }

    .culture-title::before,
    .culture-title::after {
        width: 42px;
    }

    .culture-content {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 80%;
        bottom: 24px;
        padding: 18px 20px;
    }

    .culture-card {
        min-height: 260px;
    }

    .culture-card-title {
        font-size: 22px;
    }

    .culture-card-desc {
        font-size: 15px;
    }
}

@media (max-width: 767.98px) {
    .culture-title {
        font-size: 26px;
        padding: 0 50px;
    }

    .culture-title::before,
    .culture-title::after {
        width: 34px;
        height: 18px;
    }

    .culture-card-title {
        font-size: 20px;
    }

    .culture-card-desc {
        font-size: 14px;
    }
}

/* ============================================================
   About 视频简介区块
   ============================================================ */
.about-video-section {
    /* 原为固定 600px：小屏下内容会被裁切。改为随视口缩放 + 内容撑开兜底 */
    height: auto;
    min-height: clamp(430px, 31.5vw, 600px);
    margin-top: -8px; /* 抵消顶部 jumbotron 的 mb-2 间隙 */
    padding: clamp(20px, 2.4vw, 30px) 0 clamp(28px, 3.6vw, 46px);
    background-image: url('/static/images/about.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.about-video-section .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 auto;
}

.about-video-box {
    /* 原为固定 1316px：≤1316px 视口时两列会撑破容器，改为随容器自适应 */
    width: min(1316px, 100%);
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.about-video-section .position {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-bottom: 18px;
}

.about-video-section .position a {
    color: rgba(255, 255, 255, 0.85);
}

.about-video-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.about-video-header-left {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.about-video-header-right {
    flex: 0 0 auto;
    text-align: right;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.about-video-header-en {
    color: #fff;
    font-size: clamp(15px, 1.3vw, 24px);
    margin-bottom: 0;
    font-weight: 500;
}

.about-video-title {
    color: #fff;
    font-size: clamp(17px, 1.6vw, 30px);
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
    /* 不再 nowrap + ellipsis */
    overflow: visible;
    overflow-wrap: break-word;
}

.about-video-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(11px, 0.7vw, 13px);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.about-video-row {
    align-items: stretch;
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
    column-gap: 0;
}

.about-video-col-left {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    padding: 0;
    /* 原为固定 658px：两列合计 1316px，在 <1440px 视口会撑破容器并横向溢出 */
    flex: 0 0 50% !important;
    width: 50% !important;
}

.about-video-col-right {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    padding: 0;
    flex: 0 0 50% !important;
    width: 50% !important;
}

.about-video-thumb {
    position: relative;
    overflow: hidden;
    line-height: 0;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    /* 用宽高比代替固定 658×440，随列宽等比缩放 */
    width: 100%;
    height: auto;
    aspect-ratio: 658 / 440;
}

.about-video-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.about-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-video-thumb:hover .about-video-thumb-img {
    transform: scale(1.03);
}

.about-video-play {
    position: absolute;
    left: 50%;
    top: -120px;
    transform: translate(-50%, 0);
    width: clamp(56px, 5vw, 96px);
    height: clamp(56px, 5vw, 96px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.about-video-thumb:hover .about-video-play {
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
}

.about-video-play i {
    font-size: clamp(26px, 2.3vw, 44px);
    color: #2a7fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-left: 4px; /* 视觉居中三角形 */
}

.about-video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 16px;
    text-align: center;
}

.about-video-caption span {
    color: #2a7fff;
    font-size: 1rem;
    font-weight: 600;
}

.about-video-text {
    background: #fff;
    padding: clamp(18px, 1.7vw, 32px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* 字号随列宽缩放，保证两侧盒子等高且文字不被裁切 */
    font-size: clamp(13px, 1.05vw, 20px);
    font-weight: 700;
    line-height: 1.9;
    color: #2a7fff;
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.about-video-text p {
    margin-bottom: 16px;
    color: #2a7fff !important;
}

.about-video-text p:last-child {
    margin-bottom: 0;
}

.about-video-text span,
.about-video-text strong,
.about-video-text b {
    color: #2a7fff !important;
}

/* 视频弹窗 */
.about-video-modal .modal-dialog {
    max-width: 960px;
    width: 90%;
    margin: 1.75rem auto;
}

.about-video-modal-content {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

.about-video-close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.about-video-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.about-video-close span {
    display: block;
    line-height: 32px;
}

.about-video-player {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.about-video-player video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.about-video-modal .modal-body {
    padding: 0;
}

/* 弹窗背景遮罩 */
.about-video-modal.modal.show .modal-dialog {
    transform: none;
}

/* 移动端适配 */
@media (max-width: 991.98px) {
    .about-video-section {
        height: auto;
        min-height: 600px;
        padding: 40px 0 50px;
    }

    .about-video-box {
        width: 100%;
    }

    .about-video-header {
        flex-direction: column;
        gap: 10px;
    }

    .about-video-header-right {
        text-align: left;
        min-height: auto;
    }

    .about-video-title {
        font-size: 26px;
    }

    .about-video-col-left,
    .about-video-col-right {
        margin-bottom: 24px;
        padding-right: 15px;
        padding-left: 15px;
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .about-video-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 658 / 440;
    }

    .about-video-text {
        width: 100%;
        padding: 24px;
        height: auto;
    }

    .about-video-play {
        opacity: 1;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
    }

    .about-video-play i {
        font-size: 56px;
    }
}

@media (max-width: 575.98px) {
    .about-video-section {
        min-height: 600px;
        padding: 30px 0 40px;
    }

    .about-video-title {
        font-size: 22px;
    }

    .about-video-subtitle {
        font-size: 12px;
    }

    .about-video-text {
        padding: 20px;
        font-size: 14px;
    }

    .about-video-play i {
        font-size: 48px;
    }

    .about-video-modal .modal-dialog {
        width: 95%;
        margin: 0.5rem auto;
    }
}

/* ============================================================
   About 联系我们区块
   ============================================================ */
.about-contact-section {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    background: #2a7fff;
    overflow: hidden;
}

/* 消除与底部 footer 的间隙 */
.about-contact-section + .site-footer {
    margin-top: 0 !important;
}

.about-contact-left {
    width: 42%;
    color: #fff;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding: 50px clamp(20px, 4vw, 80px);
    box-sizing: border-box;
}

.about-contact-info {
    width: 100%;
    text-align: left;
}

.about-contact-info h3 {
    font-size: clamp(18px, 1.85vw, 30px);
    font-weight: 600;
    margin: 0 0 18px;
    line-height: 1.35;
    white-space: nowrap;
}

.about-contact-info p {
    font-size: clamp(13px, 1.1vw, 17px);
    line-height: 1.7;
    margin: 0 0 8px;
    color: #fff;
    white-space: nowrap;
}

/* 地址行较长，在窄列下允许换行（其他短行仍保持单行）；
   并清除末行下外边距，保证文字距下边缘精确为 50px */
.about-contact-info p:last-of-type {
    white-space: normal;
    word-break: break-all;
    margin-bottom: 0;
}

.about-contact-info .label {
    opacity: 0.92;
}

.about-contact-right {
    width: 58%;
    position: relative;
    background: #e8f0fe;
}

.contact-map,
#contactMap,
#contactMap2,
#contactMap3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 百度地图信息气泡（仿线上截图样式） */
.map-msgBox {
    position: absolute;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 0 6px -3px #000;
    cursor: default;
    display: inline-block;
    padding: 10px 32px 10px 14px;
    white-space: nowrap;
    z-index: 10;
}

.map-msgBox-content {
    color: #333;
    font-size: 13px;
    line-height: 1.6;
}

.map-msgBox-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.map-msgBox-addr {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.map-msgBox-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -7px;
    width: 0;
    height: 0;
    border: 7px solid;
    border-color: #fff #fff transparent transparent;
    transform: rotate(135deg);
    box-shadow: 1px -1px 3px -2px #000;
}

.map-msgBox-close {
    position: absolute;
    top: 9px;
    right: 11px;
    width: 10px;
    height: 10px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 10px 10px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1 L9 9 M9 1 L1 9' stroke='%23999' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.contact-map iframe,
#contactMap iframe,
#contactMap2 iframe,
#contactMap3 iframe {
    width: 100%;
    height: 100%;
    border: 0;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .about-contact-left,
    .about-contact-right {
        width: 100%;
    }

    .about-contact-left {
        padding: 50px 24px;
    }

    .about-contact-right {
        height: 360px;
    }
}

@media (max-width: 575.98px) {
    .about-contact-right {
        height: 280px;
    }
}

/* ============================================================
   合作共赢
   ============================================================ */
.coop-section {
    width: 100%;
    padding: 80px 0 90px;
    background-color: #f6f8fb;
}

.coop-title {
    text-align: center;
    font-size: clamp(24px, 1.8vw, 34px);
    font-weight: 600;
    color: #1a2b5c;
    margin: 0 0 clamp(30px, 3.2vw, 60px);
}

.coop-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.coop-card {
    width: calc(25% - 15px);
    min-width: 240px;
    background-color: #fff;
    border-radius: 12px;
    padding: 36px 24px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    border-top: 4px solid transparent;
    display: block;
    text-decoration: none;
    color: inherit;
}

.coop-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2a7fff;
    margin: 0 0 20px;
    text-align: center;
}

.coop-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    margin: 0 0 14px;
    text-align: justify;
}

.coop-card p:last-child {
    margin-bottom: 0;
}

.coop-card:hover {
    background-color: #2a7fff;
    border-top-color: #ffb400;
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(42, 127, 255, 0.25);
}

.coop-card:hover h3,
.coop-card:hover p {
    color: #fff;
}

@media (max-width: 1199.98px) {
    .coop-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 767.98px) {
    .coop-section {
        padding: 50px 0 60px;
    }

    .coop-title {
        font-size: 26px;
        margin-bottom: 36px;
    }

    .coop-card {
        width: 100%;
        min-width: auto;
        padding: 28px 20px;
    }

    .coop-card h3 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .coop-card p {
        font-size: 13px;
    }
}
