/* ============================================
   自适应响应式样式 — For 晨泛新媒体 静态站
   覆盖 PC 端布局，适配手机和平板
   ============================================ */

/* ---------- 基础设置 ---------- */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- 全宽：让 banner/footer 拉伸到大屏边缘 ---------- */
.banner,
.footer {
    width: 100%;
    max-width: none;
    margin: 0;
    flex-shrink: 0;
}

/* Banner 背景图自动 cover 填充 */
.banner {
    background-size: cover !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    /* Banner 占据主要区域，把 footer 顶到底部 */
    flex: 1 0 auto;
    min-height: 600px;
}

/* ---------- "即刻联系" 按钮居中 ---------- */
.inter {
    margin: 30px auto 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important;
}

.inter a {
    display: inline-block !important;
    line-height: 1.4 !important;
    color: inherit;
}

/* ---------- 案例卡片描述（避免两行时被裁切） ---------- */
.casedes {
    height: auto !important;
    min-height: 80px;
    overflow: visible !important;
    padding: 12px 8px !important;
}

.casedes p {
    overflow: visible !important;
    line-height: 1.6 !important;
    word-wrap: break-word;
    word-break: break-all;
    display: block !important;
    -webkit-line-clamp: unset !important;
}

/* ---------- logo 墙 ---------- */
.iconli {
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

.iconli span {
    box-sizing: border-box;
    width: 12% !important;
    margin: 0 0.5% !important;
    padding: 5px 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    height: 70px !important;
    line-height: normal !important;
}

.iconli span img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
}

/* 让两个 .iconli 块上下排列，而不是并排 */
.company ul {
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 让 .company 容器自适应高度，顶部不留白 */
.company,
.company2 {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 合作客户标题区与 logo 墙紧贴 */
.cooperate_head {
    margin-bottom: 0 !important;
}

@media (min-width: 1024px) {
    .iconli span {
        width: 11% !important;
        margin: 10px 1% !important;
    }
}

@media (max-width: 1024px) {
    .iconli span {
        width: 22% !important;
        margin: 10px 1% !important;
    }
}

@media (max-width: 640px) {
    .iconli span {
        width: 30% !important;
        margin: 8px 1% !important;
    }
}

/* ---------- 导航栏 ---------- */
@media (max-width: 1024px) {
    .banner {
        position: relative !important;
        height: auto !important;
        min-height: 200px;
    }
    .banner .logo {
        width: 100px !important;
        left: 5% !important;
    }
    .banner > div > ul,
    .banner > ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        padding: 60px 10px 10px !important;
    }
    .banner li {
        float: none !important;
        margin: 3px 8px !important;
        position: relative;
    }
    .banner li .tuiguang {
        top: 28px !important;
        left: 0;
        width: 160px !important;
    }
    .banner li .acl {
        font-size: 13px !important;
    }
}

@media (max-width: 640px) {
    .banner .logo {
        width: 80px !important;
    }
    .banner > div > ul,
    .banner > ul {
        padding: 55px 5px 5px !important;
    }
    .banner li {
        margin: 2px 5px !important;
    }
    .banner li .acl {
        font-size: 12px !important;
    }
    .banner li .tuiguang {
        width: 140px !important;
    }
}

/* ---------- 首页大图 ---------- */
@media (max-width: 1024px) {
    .banner .banenrImg,
    .banner .imgd {
        position: relative !important;
        height: auto !important;
    }
    .banner .banenrImg img,
    .banner .imgd img {
        position: relative !important;
        width: 100% !important;
    }
}

/* ---------- 统计数据栏 ---------- */
@media (max-width: 768px) {
    .ourinfo ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .ourinfo li {
        width: 45% !important;
        margin: 10px 2% !important;
    }
}

/* ---------- 服务模块（首页） ---------- */
@media (max-width: 1024px) {
    .service_list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .service_list li {
        width: 45% !important;
        margin: 10px 2% !important;
        float: none !important;
    }
    .service_head img,
    .service_head span {
        max-width: 90%;
    }
}

@media (max-width: 640px) {
    .service_list li {
        width: 100% !important;
        margin: 8px 0 !important;
    }
    .service_anchor {
        display: none !important;
    }
}

/* ---------- 客户案例模块 ---------- */
@media (max-width: 1024px) {
    .ourcase_list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .ourcase_list li {
        width: 45% !important;
        margin: 10px 2% !important;
        float: none !important;
    }
    .ourcase_head img,
    .ourcase_head span {
        max-width: 90%;
    }
}

@media (max-width: 640px) {
    .ourcase_list li {
        width: 100% !important;
        margin: 8px 0 !important;
    }
}

/* ---------- 合作伙伴 ---------- */
@media (max-width: 768px) {
    .cooperate_head img {
        max-width: 90%;
    }
    .company ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .company li {
        width: 45% !important;
        margin: 5px !important;
    }
}

/* ---------- 页脚 ---------- */
@media (max-width: 768px) {
    .footer {
        height: auto !important;
        display: flex;
        flex-wrap: wrap;
        padding: 20px 5% !important;
    }
    .footerleft,
    .footerright {
        width: 100% !important;
        float: none !important;
        text-align: center;
        margin: 5px 0 !important;
        padding: 0 !important;
    }
    .footer .logo {
        width: 100px !important;
    }
    .footer .icp {
        text-align: center;
    }
    .footer .icp p {
        font-size: 11px !important;
    }
}

/* ---------- 子页面通用 ---------- */
@media (max-width: 768px) {
    .p1, .logotitle {
        font-size: 22px !important;
        width: 90% !important;
        margin-left: 5% !important;
        text-align: center !important;
    }
    .info {
        width: 90% !important;
        margin-left: 5% !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    .inter {
        position: relative !important;
        display: block;
        text-align: center;
        margin: 20px auto !important;
        top: auto !important;
        right: auto !important;
    }
}

/* ---------- 面包屑 ---------- */
@media (max-width: 768px) {
    .bread_nav {
        margin: 10px 3% !important;
        font-size: 12px !important;
    }
}

/* ---------- 服务子页面（list-33~39）内容 ---------- */
@media (max-width: 768px) {
    /* 运营方法论模块 */
    [class*="operate"] {
        padding: 20px 5% !important;
    }
    [class*="operate"] img {
        max-width: 100% !important;
    }
    /* 选项卡/步骤模块 */
    [class*="tab"], [class*="step"], [class*="process"] {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    [class*="tab"] > *, [class*="step"] > *, [class*="process"] > * {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}
