.main-slider-ectcu {
    position: relative;
    width: 100%;
    overflow: hidden;
}
/* 首屏占位（原来写在 header.php 的内联关键 CSS 里，现已移到这里） */
.tp-pre-stable {
    min-height: 480px;
    overflow: hidden;
    position: relative;
    background-color: #0b2a5b;   /* 首屏深蓝底，避免白闪 */
}
.slide-bg-item {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.image-box {
    overflow: hidden;
}
.image-box img {
    display: block;
    max-width: 100%;
}
/* 文字内容容器，和导航栏container对齐，1170px，按需修改 */
.slide-inner-wrap {
    width: 1170px;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    display:flex;
    flex-direction:column;
    justify-content:center;
    z-index:2;
}
/* 背景图 + 暗色蒙皮 */
.slide-bg-item {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center center;
}
.slide-bg-item::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background: rgba(0,22,44,0.45);
}
/* 文字样式 */
.slide-subtitle {
    color:#fff;
    font-size:20px;
    padding-bottom: 24px;
    opacity:0.9;
    line-height:1.5;
}
.slide-title {
    color:#fff;
    font-size:38px;
    line-height:1.35;
    font-weight:bold;
    padding-bottom: 34px;
    /* 限制最多2行，防止标题太长把布局撑变形 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:hidden;
}
.slide-buttons a{
    display:inline-block;
    padding:10px 26px;
    margin-right:14px;
    text-decoration:none;
    color:#fff;
    border-radius:2px;
}
.btn-red{
    background:#ed2b49;
}
.btn-blue{
    background:#1657b7;
}

/* 左右箭头，原版简约三角 */
.slider-nav {
    position:absolute;
    top:50%;
    z-index:3;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#ffffff;
    font-size:24px;
    cursor:pointer;
    transition:0.2s;
    user-select:none;
}
.slider-prev {
    left:30px;
}
.slider-next {
    right:30px;
}
.slider-nav:hover{
    background:rgba(255,255,255,0.15);
}
/* PC大屏：默认隐藏，悬浮banner才显示箭头 */
@media (min-width:769px) {
    .main-slider-ectcu .slider-nav {
        opacity:0;
        visibility:hidden;
    }
    .main-slider-ectcu:hover .slider-nav {
        opacity:1;
        visibility:visible;
    }
}
/* 底部圆点 */
.slider-dots{
    position:absolute;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
    z-index:3;
    display:flex;
    gap:8px;
}
.slider-dot{
    width:24px;
    height:3px;
    background:rgba(255,255,255,0.35);
    cursor:pointer;
}
.slider-dot.active{
    background:#fff;
}
/* 幻灯片切换，默认隐藏非当前slide，防止撑开
   注意：不用 inset（老内核不支持），改用 top/right/bottom/left */
.slide-item{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    opacity:0;
    visibility:hidden;
    transition: opacity 0.6s ease;
}
.slide-item.active{
    opacity:1;
    visibility:visible;
}

/*移动端适配：取消固定高度，适配手机屏幕 */
@media(max-width:768px){
.tp-pre-stable {
    height:auto;
    min-height:260px;
}
.slide-inner-wrap{
    width:100%;
    padding:0 15px;
}
.main-slider .tp-pre-stable .slide-title {
    font-size: 18px !important;
    line-height: 1.3;
    padding-bottom:16px;
}
/* 副标题同步缩小 */
.main-slider .slide-subtitle{
    font-size:16px;
    line-height:1.4;
    margin-bottom:12px;
}
.slide-buttons a{
    width:120px;
    height:40px;
    font-size:14px;
}
/* 手机端箭头一直显示，不需要hover */
    .slider-nav {
        opacity:1 !important;
        visibility:visible !important;
    }
}

/* 2026：<picture> 包一层（webp 优先）后，保持和原来 img 一样的布局 */
picture.ectcu-picture{
    display:block;
    width:100%;
}
picture.ectcu-picture img{
    display:block;
    max-width:100%;
    height:auto;
}

/* 2026：图片卡撑满，去掉上下白边 */
.filter-list .default-portfolio-item .image-box{
    aspect-ratio: 8 / 5;
    overflow: hidden;
}
.filter-list .default-portfolio-item .image-box img{
    display:block;
    width:100%;
    height:100%;
    object-fit: cover;
}
/* 2026：解决方案卡片图片 —— 图片底部自带一行黑色说明文字，
   容器用 1:1 给图形留足高度，图片顶部留 10px 间距，再放大 12% 把底部文字裁掉 */
.team-section .team-member .image-box{
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0 0;
}
.team-section .team-member .image-box img{
    display:block;
    width:100%;
    /* 比容器高 12%，顶部对齐后底部那行黑色文字被 overflow 裁掉 */
    height:112%;
    object-fit: cover;
    object-position: center top;
}
/* 卡片说明文字（HTML 生成的这段保留，显示在标题上方） */
.team-section .team-member .lower-content .text{
    font-size:14px;
    line-height:1.7;
    color:#666;
    margin:0 0 10px;
    padding:0;
    min-height:2.4em;
}
/* 卡片内容居中（说明文字、标题、应用领域都居中） */
.team-section .team-member .lower-content{
    text-align:center;
    padding:22px 24px 26px;
}
.team-section .team-member h3{
    font-size:18px;
    line-height:1.5;
    margin:12px 0 8px;
}
/* 产品 / 案例卡片同理：图片按自身比例，卡片高度随内容走，不留白边也不裁文字 */
.awesome-img{
    height: auto !important;
    overflow: hidden;
}
.awesome-img img{
    display:block;
    width:100%;
    height:auto;
}

/* 2026：团队轮播在 Owl 初始化前先用 4 列网格，避免大图整屏闪一下 */
.team-carousel:not(.owl-loaded){
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}
.team-carousel:not(.owl-loaded) .team-member{
    width: 100% !important;
    float: none !important;
}
@media (max-width: 991px){
    .team-carousel:not(.owl-loaded){ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 575px){
    .team-carousel:not(.owl-loaded){ grid-template-columns: minmax(0, 1fr); }
}

/* 2026：头部 LOGO / 热线 / 社交图标 —— >=768px 保持同一行（120%、150% 缩放也不掉行），
   手机（<768px）才换行居中；规则与 header.php 的 critical-css 保持一致 */
@media (min-width: 768px){
    .ectcu-header-row{ display:flex; align-items:center; flex-wrap:nowrap; margin:0; }
    .ectcu-header-row > [class*="col-"]{ padding-left:0; padding-right:0; max-width:none !important; float:none !important; }
    .ectcu-header-row .logo-outer{ flex:0 0 auto; width:auto !important; float:none !important; text-align:left !important; }
    .ectcu-header-row .upper-right{ flex:1 1 auto; width:auto !important; float:none !important; display:flex; justify-content:flex-end; align-items:center; text-align:left !important; }
    .ectcu-header-row .upper-right .info-box{ float:none !important; display:flex; align-items:center; width:auto !important; margin:0 0 0 24px !important; padding-left:48px; text-align:left; }
    .ectcu-header-row .upper-right .social-links-one{ top:0 !important; }
    .ectcu-header-row .logo img{ width:170px !important; height:51px !important; }
}
@media (min-width: 1200px){
    .ectcu-header-row .upper-right .info-box{ margin-left:34px !important; }
    .ectcu-header-row .logo img{ width:200px !important; height:60px !important; }
}
@media (min-width: 768px) and (max-width: 1023px){
    .ectcu-header-row .logo img{ width:150px !important; height:45px !important; }
    .ectcu-header-row .upper-right .info-box{ margin-left:14px !important; padding-left:40px; }
    .ectcu-header-row .upper-right .info-box li{ font-size:13px; }
    /* 平板窄屏也保留社交图标（原来 768–880px 会隐藏，已去掉） */
    .ectcu-header-row .upper-right .info-box:last-child{ display:flex !important; }
}

/* 2026：导航条始终一行，按宽度缩放字号/间距，避免折行后把右侧按钮拉成一大块 */
@media (min-width: 769px){
    #cssmenu > ul{ display:flex; flex-wrap:nowrap; align-items:stretch; margin:0; }
    #cssmenu > ul > li{ float:none; }
    #cssmenu > ul > li > a{ display:block; white-space:nowrap; }
}
@media (max-width: 1440px) and (min-width: 769px){
    #cssmenu > ul > li > a{ padding:22px; font-size:16px; letter-spacing:2px; }
}
@media (max-width: 1100px) and (min-width: 769px){
    /* 按钮宽度收窄，给菜单腾出空间，避免菜单溢出到按钮上 */
}
@media (min-width: 1200px){
    #cssmenu > ul{ margin-left:0; }
}

/* 2026：列表 / 卡片标题配色 —— 文章/产品默认深色，悬停变品牌蓝 */
.single-blog .blog-title h2,
.single-blog .blog-title h2 a,
.project-dec h2,
.project-dec h2 a{
    color:#1c2125;
    transition:color .3s ease;
}
/* 首页解决方案卡片标题：默认就是品牌蓝，悬停加深（和 ectcu.com 一致） */
.team-section .team-member h3,
.team-section .team-member h3 a{
    color:#1a5fb4;
    transition:color .3s ease;
}
/* 2026：文章 / 产品标题字号（对齐 ectcu.com 列表卡的实际观感：18px / 1.6 / 700） */
.single-blog .blog-title h2,
.project-dec h2{
    font-family:'Montserrat', 'Microsoft YaHei', sans-serif;
    font-size:18px;
    line-height:1.6;
    font-weight:700;
    letter-spacing:0;
}
.single-blog:hover .blog-title h2,
.single-blog:hover .blog-title h2 a,
.single-blog .blog-title h2 a:hover,
.project-dec h2 a:hover{
    color:#1a5fb4;
}
.team-section .team-member:hover h3,
.team-section .team-member:hover h3 a{
    color:#0d4a8f;
}

/* 2026：详情页底部「相关内容」区块（卡片式） */
.ectcu-related{
    background:#f7f8fa;
    border-top:1px solid #ececec;
}
.ectcu-related-head{
    text-align:center;
    margin:0 0 26px;
}
.ectcu-related-head h2{
    font-size:32px;
    font-weight:700;
    color:#1c2125;
    margin:0 0 10px;
}
.ectcu-related-head p{
    font-size:15px;
    color:#666;
    margin:0;
}

/* 栏目切换条 */
.ectcu-related-tabs{
    display:flex;
    flex-wrap:wrap;
    align-items:stretch;
    justify-content:center;
    margin:0 0 34px;
}
.ectcu-related-tabs a{
    display:inline-block;
    padding:13px 26px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-left:0;
    color:#333;
    font-size:15px;
    text-decoration:none;
    transition:all .25s ease;
    white-space:nowrap;
}
.ectcu-related-tabs a:first-child{
    border-left:1px solid #e5e5e5;
    border-radius:4px 0 0 4px;
}
.ectcu-related-tabs a:hover{
    color:#1a5fb4;
}
.ectcu-related-tabs a.active{
    background:#1a5fb4;
    border-color:#1a5fb4;
    color:#fff;
}
.ectcu-related-tabs .ectcu-related-refresh{
    margin-left:16px;
    border:1px solid #cfe0f5;
    border-radius:4px;
    color:#1a5fb4;
}
.ectcu-related-tabs .ectcu-related-refresh:hover{
    background:#1a5fb4;
    border-color:#1a5fb4;
    color:#fff;
}

/* 卡片 */
.ectcu-related-row{
    display:flex;
    flex-wrap:wrap;
}
.ectcu-related-row > [class*="col-"]{
    display:flex;
    margin-bottom:28px;
}
.ectcu-related-card{
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid #ececec;
    border-radius:10px;
    padding:26px 28px 22px;
    box-shadow:0 2px 12px rgba(0,0,0,.04);
    transition:box-shadow .3s ease, transform .3s ease;
}
.ectcu-related-card:hover{
    box-shadow:0 10px 26px rgba(0,0,0,.09);
    transform:translateY(-2px);
}
.ectcu-related-badge{
    align-self:flex-start;
    display:inline-block;
    padding:4px 13px;
    border:1px solid #e2e2e2;
    border-radius:20px;
    font-size:12px;
    line-height:1.6;
    color:#888;
    margin-bottom:16px;
}
.ectcu-related-card h3{
    font-size:18px;
    line-height:1.5;
    font-weight:700;
    margin:0 0 12px;
}
.ectcu-related-card h3 a{
    color:#1c2125;
}
.ectcu-related-card h3 a:hover{
    color:#1a5fb4;
}
.ectcu-related-card p{
    font-size:14px;
    line-height:1.75;
    color:#666;
    margin:0 0 18px;
    flex:1 1 auto;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.ectcu-related-more{
    font-size:14px;
    font-weight:600;
    color:#1a5fb4;
    text-decoration:none;
}
.ectcu-related-more:hover{
    text-decoration:underline;
}

/* 2026：「产品功能」这类区块标题 —— 大标题 / 横线 / 英文副标题 依次往下排，
   英文副标题下移到横线下面，不再与横线重叠 */
.section-title h2{
    margin:0;
    line-height:1.2;
}
.section-title .en-sub{
    display:block;
    font-size:15px;
    line-height:1.4;
    letter-spacing:1px;
    color:#8c8c8c;
    margin:26px 0 0;   /* 横线在 top:48px，这里让副标题落到线下面 */
}
.section-title{
    padding-bottom:18px;
    margin-bottom:36px;
}

/* 2026：服务项目图标改用内联 SVG（不依赖 Font Awesome 字体，任何内核都能显示） */
.default-service-block .inner-box .icon-box .svc-icon{
    display: inline-block;
    width: 42px;
    height: 42px;
    vertical-align: middle;
    stroke: currentColor;
}
@media (max-width: 767px){
    .default-service-block .inner-box .icon-box .svc-icon{
        width: 34px;
        height: 34px;
    }
}

/* 2026：FA 4.7 完整字体已上传，图标恢复使用 Font Awesome 原生字形，
   不再用系统字符替换（保留此注释说明改动历史） */

/* 2026：页脚「电话 / 邮箱 / 客服」恢复成主题默认链接色（品牌蓝），
   和顶部「全国咨询热线」一致；这里不再覆盖颜色 */

/* 2026：顶部右侧 —— 热线块与社交块整体垂直居中 */
.ectcu-header-row .upper-right{ align-items: center; }
.ectcu-header-row .upper-right .info-box{ align-self: center; }
.ectcu-header-row .upper-right .info-box:after{ display: none; }

/* 竖线 = 图标行自己的左边框：
   线的高度就是图标行的高度，两者同高同位，中心必然落在同一条水平线上 */
.ectcu-header-row .upper-right .info-box:last-child{
    position: relative;
    top: -12px;                 /* 整块（竖线 + 图标）上移，和热线数字的中心对齐 */
    display: flex;
    align-items: center;
    margin-left: 18px !important;  /* 热线 → 竖线 */
    padding-left: 0 !important;
    height: 56px;
    min-height: 56px;
}
.ectcu-header-row .upper-right .social-links-one{
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    line-height: 40px;
    top: 0 !important;
    border-left: 1px dashed #e0e0e0;   /* ← 竖线 */
    padding-left: 18px;                /* ← 竖线到第一个图标的距离（与左边一致） */
}
.ectcu-header-row .upper-right .social-links-one a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    width: 40px;
    height: 40px;
    line-height: 40px;
}
@media (min-width: 768px) and (max-width: 1023px){
    .ectcu-header-row .upper-right .info-box:last-child{
        top: -6px;
        margin-left: 12px !important;
        height: 46px;
        min-height: 46px;
    }
    .ectcu-header-row .upper-right .social-links-one{
        gap: 6px;
        height: 34px;
        line-height: 34px;
        padding-left: 14px;
    }
    .ectcu-header-row .upper-right .social-links-one a{
        width: 34px;
        height: 34px;
        line-height: 34px;
    }
}

/* 2026：详情页底部「搜索 + 标签」—— 两栏并排，占满整行 */
.ectcu-single-bottom{
    display: flex;
    flex-wrap: wrap;
    margin-top: 34px;
}
.ectcu-single-bottom > [class*="col-"]{
    display: flex;
    margin-bottom: 20px;
}
.single-bottom-box{
    width: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 22px 24px;
}
.single-bottom-box h4{
    font-size: 16px;
    font-weight: 700;
    color: #1c2125;
    margin: 0 0 16px;
}
.single-bottom-box .blog-search-option{
    position: relative;
}
.single-bottom-box .blog-search-option input{
    width: 100%;
    height: 42px;
    padding: 0 46px 0 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}
.single-bottom-box .blog-search-option .button{
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #8c8c8c;
    cursor: pointer;
}
.single-bottom-tags{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.single-bottom-tags li{
    margin: 0 8px 8px 0;
}
.single-bottom-tags a{
    display: inline-block;
    padding: 6px 14px;
    background: #f4f6f8;
    border-radius: 3px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all .25s ease;
}
.single-bottom-tags a:hover{
    background: #1a5fb4;
    color: #fff;
}
.single-bottom-empty{
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* 2026：详情页正文强制通栏 —— 即使模板还没更新到 col-md-12，
   正文区和下面的横幅、搜索/标签也会左右对齐；同时清掉残留侧栏 */
.single .blog-page-area > .container > .row > [class*="col-md-"]{
    flex: 0 0 100%;
    max-width: 100%;
}
.single .blog-page-area > .container > .row > .col-md-4,
.single .blog-page-area .sidebar{
    display: none !important;
}

/* 2026：联系我们 / 名片式联系卡片（图标用 Font Awesome，方底蓝图标） */
.ectcu-contact-card{
    background:#fff;
    border:1px solid #ececec;
    border-radius:10px;
    padding:28px 30px;
    color:#444;
}
.ectcu-contact-card .card-hello{ font-size:15px; color:#666; margin:0 0 6px; }
.ectcu-contact-card .card-slogan{ font-size:14px; color:#888; margin:0 0 18px; }
.ectcu-contact-card h3{ font-size:20px; font-weight:700; color:#1a5fb4; margin:0 0 4px; }
.ectcu-contact-card .card-en{ font-size:13px; color:#999; margin:0 0 18px; }
.ectcu-contact-card ul{ list-style:none; margin:0; padding:0; }
.ectcu-contact-card li{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:14px;
    line-height:1.9;
    color:#555;
    margin-bottom:8px;
}
.ectcu-contact-card li i{
    flex:0 0 24px;
    width:24px;
    height:24px;
    line-height:24px;
    text-align:center;
    border-radius:4px;
    background:#eef3fb;
    color:#1a5fb4;
    font-size:13px;
    margin-top:4px;
}
.ectcu-contact-card a{ color:#555; text-decoration:none; }
.ectcu-contact-card a:hover{ color:#1a5fb4; }
@media (max-width:767px){
    .ectcu-contact-card{ padding:20px; }
    .ectcu-contact-card li{ font-size:13px; }
}

/* 2026：页脚样式已直接还原到 css/style.css（背景 #071333、文字 #fff），
   这里不再做覆盖，保持单一来源 */

/* ==========================================================================
   2026：手机端专项优化
   ========================================================================== */
@media (max-width: 767px) {

    /* 1) 底部固定操作条：一键拨号 + 在线咨询 */
    .ectcu-mobile-bar{
        display:flex;
        position:fixed;
        left:0; right:0; bottom:0;
        z-index:9998;
        background:#fff;
        border-top:1px solid #e5e5e5;
        box-shadow:0 -2px 10px rgba(0,0,0,.07);
    }
    .ectcu-mobile-bar a{
        flex:1 1 50%;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        height:52px;
        font-size:15px;
        text-decoration:none;
        -webkit-tap-highlight-color:transparent;
    }
    .ectcu-mobile-bar .mb-call{
        background:#1a5fb4;
        color:#fff;
        font-weight:600;
    }
    .ectcu-mobile-bar .mb-qq{
        color:#1a5fb4;
        font-weight:600;
    }
    .ectcu-mobile-bar i{ font-size:16px; }
    .ectcu-mobile-bar span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

    /* 2) 给底部条留空间，避免挡住页脚内容 */
    body{ padding-bottom:54px; }

    /* 3) 返回顶部按钮上移，不被底部条盖住 */
    .back-to-top{ bottom:66px !important; }

    /* 4) 触摸目标加大：菜单按钮、导航项、按钮 */
    #cssmenu #menu-button{
        min-height:44px;
        line-height:44px;
    }
    #cssmenu > ul > li > a{
        min-height:44px;
        display:flex;
        align-items:center;
    }
    .theme-btn, .btn-consult, .blog-btn{
        min-height:40px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
    }

    /* 5) 电话号码在手机上整块可点（头部热线） */
    .main-header .info-box a[href^="tel:"]{
        display:inline-block;
        padding:4px 0;
    }

    /* 6) 图片卡片间距收紧一点，避免手机上太松散 */
    .ectcu-related-row > [class*="col-"]{ margin-bottom:18px; }
}

/* 桌面端不显示底部条 */
@media (min-width: 768px){
    .ectcu-mobile-bar{ display:none; }
}

/* ==========================================================================
   2026：跨平台兼容（iOS / 安卓 / 鸿蒙 ArkWeb）
   ========================================================================== */

/* 1) iOS 横竖屏切换时不要放大字号；安卓 WebView 同理 */
html{
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    color-scheme: light;            /* 禁用强制深色 */
}

/* 2) 去掉移动端点击时的灰色高亮块，并防止横向滚动 */
body{
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* 3) 图片/媒体永远不超出容器（旧安卓 WebView 有效） */
img, svg, video{ max-width:100%; }

/* 4) 不支持 aspect-ratio 的老 iOS(14-)/老安卓：用 padding-top 兜底，避免高度塌陷 */
@supports not (aspect-ratio: 1 / 1){
    .team-section .team-member .image-box{
        position: relative;
        height: 0;
        padding-top: 100%;
    }
    .team-section .team-member .image-box img{
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
}

/* 5) 不支持 object-fit 的老安卓：退回普通填充，至少不出现空白 */
@supports not (object-fit: cover){
    .filter-list .default-portfolio-item .image-box img,
    .team-section .team-member .image-box img,
    .awesome-img img{
        object-fit: fill;
    }
}

/* 6) iOS 表单聚焦时页面会放大：输入框字号必须 ≥16px */
@media (max-width: 767px){
    input[type="text"], input[type="tel"], input[type="email"],
    input[type="search"], select, textarea{
        font-size: 16px;
    }
}

/* 7) 刘海屏 / 全面屏底部安全区（配合 viewport-fit=cover） */
.ectcu-mobile-bar{
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px){
    body{ padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
    .back-to-top{ bottom: calc(66px + env(safe-area-inset-bottom)) !important; }
}

/* 8) 触屏设备：悬停效果改为“按下反馈”，避免点完状态不消失 */
@media (hover: none){
    .single-blog:hover .blog-title h2,
    .single-blog:hover .blog-title h2 a,
    .project-dec h2 a:hover,
    .team-section .team-member:hover h3,
    .team-section .team-member:hover h3 a{
        color: inherit;
    }
    .team-section .team-member h3,
    .team-section .team-member h3 a{ color:#1a5fb4; }
    .single-blog .blog-title h2 a:active,
    .project-dec h2 a:active{ color:#1a5fb4; }
}

/* contact蓝色圆角方块 + 白色图标 */

.contact-icon{
    display:inline-block;
    width:28px; height:28px; line-height:28px;
    text-align:center;
    background:#1a5fb4;          /* 蓝色底 */
    color:#ffffff !important;    /* 白色图标 */
    border-radius:6px;           /* 圆角方块 */
    font-size:15px;
    vertical-align:middle;
    margin-right:8px;
}
/* 没有图标类的空方块不显示（注意：不能用 :empty，FA 图标是伪元素，元素本身是空的） */
.contact-icon:not(.fa){ display:none; }
/* 手机上略小一点 */
@media (max-width: 767px){
    .contact-icon{
        width:26px; height:26px; line-height:26px;
        font-size:14px;
        margin-right:6px;
    }
}

/* ==========================================================================
   2026：模板类名配套样式（banner 标题 / 粗体标题 / 头部电话）
   ========================================================================== */
.banner-title-white{ color:#ffffff; }
.title-bold{ font-weight:700; }
.header-phone-link{ color:inherit; text-decoration:none; }

/* ==========================================================================
   2026：产品详情页头部 —— 左图（浅灰框）右文
   ========================================================================== */
.product-header{
    display:flex;
    gap:30px;
    flex-wrap:wrap;
    margin-bottom:30px;
    align-items:flex-start;
}
.product-header .product-img{
    flex:1 1 320px;
    min-width:280px;
    background:transparent;        /* 不要底色，只要一条浅灰线 */
    border:1px solid #e8ecf1;
    border-radius:0;
    padding:0;
    box-sizing:border-box;
}
.product-header .product-img .blog-banner{ margin:0; }
.product-header .product-img img{
    display:block;
    margin:0 auto;
    max-width:100%;
    height:auto;
}
.product-header .product-info{
    flex:1 1 320px;
    min-width:280px;
}
.product-header .btn-consult{
    display:inline-block;
    padding:16px 40px;
    border:1px solid #bbbbbb;
    text-decoration:none;
    color:#333;
    font-size:17px;
    background:#fff;
    transition:all .3s ease;
}
.product-header .btn-consult:hover{
    background:#ed2b49;      /* 品牌红，与顶部「在线咨询」一致 */
    border-color:#ed2b49;
    color:#fff;
}
@media (max-width:767px){
    .product-header{ gap:18px; margin-bottom:24px; }
    .product-header .product-img,
    .product-header .product-info{ flex:1 1 100%; min-width:0; }
    .product-header .btn-consult{ padding:13px 28px; font-size:15px; }
}

/* ==========================================================================
   2026：内页 banner（行业动态、项目案例、解决方案等）高度统一 680px
   首页轮播不受影响（它用的是 .slide-item / #rev_ectcu_home）
   ========================================================================== */
.page-area{
    height: 380px;
    display: flex;
    align-items: center;      /* 标题+面包屑垂直居中 */
}
.page-area .breadcrumb{
    padding: 0;               /* 原来 100px 上下内边距，改由容器高度控制 */
    width: 100%;
}
@media (max-width: 991px){
    .page-area{ height: 420px; }
}
@media (max-width: 767px){
    .page-area{ height: 300px; }
}

/* ==========================================================================
   2026：文章详情页标题区
   格式：大标题（左对齐）→ 时间 / 浏览量（灰色小字）→ 细分隔线 → 正文
   ========================================================================== */
.article-header{ margin: 0 0 6px; }
.article-title{
    font-size: 28px;
    line-height: 1.45;
    font-weight: 700;
    color: #1c2125;
    margin: 0 0 18px;
    text-align: left;
}
.article-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: #8a94a0;
    margin-bottom: 20px;
}
.article-meta i{
    margin-right: 6px;
    font-size: 14px;
    color: #8a94a0;
}
.article-divider{
    border: 0;
    border-top: 1px solid #ececec;
    height: 0;
    margin: 0 0 26px;
}
/* 正文排版：更接近参考稿的行距和字号 */
.blog-post-wrapper .blog-content p{
    font-size: 16px;
    line-height: 1.95;
    color: #3d4753;
}
@media (max-width: 767px){
    .article-title{ font-size: 22px; margin-bottom: 14px; }
    .article-meta{ gap: 16px; font-size: 13px; }
    .blog-post-wrapper .blog-content p{ font-size: 15px; }
}

/* ==========================================================================
   2026：手机端头部 —— 电话图标放到号码左侧，社交图标水平居中
   ========================================================================== */
@media (max-width: 767px){

    /* 右侧整体收缩到「热线块」宽度后居中：
       电话行看起来不变；社交图标从这块的左边缘开始，正好和电话图标左对齐 */
    .ectcu-header-row{ text-align: center; }
    .ectcu-header-row .upper-right{
        display: inline-block;
        float: none;
        width: auto;
        text-align: center;
        padding: 8px 0 4px;
    }

    /* 热线块：居中，图标 + 文字同一行（位置与之前一致） */
    .ectcu-header-row .upper-right .info-box{
        float: none;
        display: block;
        width: auto;
        min-height: 0;
        margin: 0 auto 10px;
        padding: 0;
        text-align: center;
    }
    .ectcu-header-row .upper-right .info-box::after{ display: none; }

    /* 电话图标方框：取消绝对定位，放到文字左边 */
    .ectcu-header-row .upper-right .info-box .icon-box{
        position: static;
        float: none;
        display: inline-block;
        vertical-align: middle;
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
        margin: 0 10px 0 0;
        border-radius: 6px;
    }

    /* 文字两行：左对齐，和图标同一行 */
    .ectcu-header-row .upper-right .info-box ul{
        display: inline-block;
        vertical-align: middle;
        margin: 0;
        padding: 0;
        list-style: none;
        text-align: left;
    }
    .ectcu-header-row .upper-right .info-box ul li{
        top: 0;
        margin: 2px 0;
        line-height: 1.4;
        font-size: 13px;
    }
    .ectcu-header-row .upper-right .info-box ul li strong a{
        font-size: 20px;
        line-height: 1.25;
    }

    /* 社交图标块：居中 —— 在热线块宽度内水平居中（= 号码/图标的中间） */
    .ectcu-header-row .upper-right .info-box:last-child{
        display: block !important;     /* 防止被任何隐藏规则盖掉 */
        margin: 0 !important;
        padding: 0 !important;
        height: auto;
        min-height: 0;
        top: 0;
        width: auto;
        text-align: center !important;
    }
    .ectcu-header-row .upper-right .social-links-one{
        display: none !important;
        height: auto;
        padding-left: 0;
        border-left: 0;
        text-align: center !important;
        top: 0 !important;
    }
    .ectcu-header-row .upper-right .social-links-one a{
        display: inline-block !important;
        float: none !important;
        width: 40px;
        height: 40px;
        line-height: 40px;
        margin: 0 6px !important;
    }
}
