/* 企业官网前台样式 (响应式) */
:root { --primary:#0d6efd; --dark:#212529; }
* { box-sizing:border-box; }
body { font-family:-apple-system,"Microsoft YaHei",sans-serif; color:#333; }
.site-header .navbar-brand img { max-height:36px; }
.site-main { min-height:60vh; }
.site-header .navbar { position:relative; }
.container { max-width:1200px; }

/* 通用 section 标题 */
.section-title { font-size:28px; font-weight:700; color:var(--dark); position:relative; }
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ===== Banner 大图 + 小图 ===== */
.home-banner { padding-top:16px; }
.home-banner .banner-img {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform .3s;
}
.banner-big { overflow: hidden; border-radius: 8px; }
.banner-big .banner-img { height: 400px; }
.banner-big:hover .banner-img { transform: scale(1.03); }

.banner-small { overflow: hidden; border-radius: 8px; }
.banner-small .banner-img { height: 196px; }
.banner-small:hover .banner-img { transform: scale(1.05); }

/* ===== 关于我们 ===== */
.home-about .about-intro p { line-height: 1.9; font-size: 15px; }

/* ===== 新闻资讯 卡片 ===== */
.news-card {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: .25s;
    height: 100%;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.news-card-img { flex: 0 0 200px; overflow: hidden; }
.news-card-img img { width: 200px; height: 140px; object-fit: cover; transition: .3s; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-placeholder {
    width: 200px; height: 140px;
    background: #e9ecef;
    display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 14px;
}
.news-card-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-card-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark);
}
.news-card-desc {
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}
.news-card-date { margin-top: 8px; }

/* ===== 图片新闻 卡片 ===== */
.gallery-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: .25s;
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.gallery-card-img { overflow: hidden; }
.gallery-card-img img {
    width: 100%; height: 200px;
    object-fit: cover;
    transition: .35s;
}
.gallery-card:hover .gallery-card-img img { transform: scale(1.06); }
.gallery-card-placeholder {
    width: 100%; height: 200px;
    background: #e9ecef;
    display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 14px;
}
.gallery-card-info {
    padding: 12px 14px;
}
.gallery-card-info h6 { font-size: 14px; color: var(--dark); }

/* ===== 服务场景 卡片 ===== */
.service-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.service-card-img { overflow: hidden; }
.service-card-img img {
    width: 100%; height: 200px;
    object-fit: cover;
    transition: .35s;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-placeholder {
    width: 100%; height: 200px;
    background: #e9ecef;
    display: flex; align-items: center; justify-content: center;
    color: #adb5bd; font-size: 14px;
}
.service-card-body { padding: 14px; }

/* ===== 企业文化 ===== */
.home-culture .culture-content { line-height: 1.9; font-size: 15px; }
.home-culture .culture-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }

/* ===== 通用卡片网格（列表页） ===== */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.card-item { border:1px solid #eee; border-radius:10px; overflow:hidden; transition:.2s; text-decoration:none; color:inherit; }
.card-item:hover { box-shadow:0 6px 20px rgba(0,0,0,.12); color:inherit; }
.card-item img { width:100%; height:180px; object-fit:cover; }
.card-item .body { padding:12px; }
.card-item .body h5 { margin:0 0 6px; }

/* 富文本正文内容（wangEditor 输出） */
.article-content { line-height:1.8; font-size:15px; word-break:break-word; }
.article-content img { max-width:100%; height:auto; border-radius:6px; margin:10px 0; }
.article-content p { margin:0 0 12px; }
.article-content h1,.article-content h2,.article-content h3 { margin:18px 0 10px; }
.article-content blockquote { border-left:4px solid var(--primary); padding:6px 14px; color:#666; background:#f8f9fa; }
.article-content table { width:100%; border-collapse:collapse; margin:12px 0; }
.article-content table td,.article-content table th { border:1px solid #dee2e6; padding:6px 10px; }

/* 时间线 */
.timeline { border-left:3px solid var(--primary); padding-left:20px; }
.timeline li { list-style:none; margin-bottom:18px; position:relative; }
.timeline li::before { content:''; position:absolute; left:-29px; top:4px; width:14px; height:14px; background:var(--primary); border-radius:50%; }

/* 详情页 */
.article-content img { max-width:100%; }
.spec-table { width:100%; border-collapse:collapse; }
.spec-table td, .spec-table th { border:1px solid #ddd; padding:8px 12px; }

/* 搜索高亮 */
mark { background:#fff3cd; padding:0 2px; }

/* 维护页 */
.maintenance { text-align:center; padding:120px 20px; }

/* ===== 移动端小屏适配（<=768px）===== */
@media (max-width:768px) {
    /* Logo 居中显示 */
    .site-header .navbar-brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
    .site-header .navbar-brand img { max-height: 30px; }
    /* 汉堡按钮保持在右侧 */
    .site-header .navbar-toggler { margin-left: auto; }
    /* 折叠菜单占满宽度，避免溢出屏幕 */
    .site-header .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 10px 16px;
        z-index: 1050;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 6px 16px rgba(0,0,0,.25);
    }
    .site-header .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        border: 0;
        background: transparent;
        margin: 0 0 6px 12px;
        padding: 0;
    }
    .site-header .navbar-nav .dropdown-menu .dropdown-item { color: #212529; }
    .site-header form.d-flex { width: 100%; margin-top: 8px; }

    /* Banner */
    .banner-big .banner-img { height: 220px; }
    .banner-small .banner-img { height: 106px; }

    /* News card on mobile */
    .news-card { flex-direction: column; }
    .news-card-img { flex: none; }
    .news-card-img img { width: 100%; height: 180px; }
    .news-card-placeholder { width: 100%; height: 180px; }
}

/* ===== 新闻详情页（Article Detail）===== */

/* 面包屑背景条 */
.ar-breadcrumb-bar {
    background: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}
.ar-breadcrumb-bar .breadcrumb { font-size: 13px; }

/* 整体容器 */
.ar-detail-wrapper { padding-bottom: 60px; }

/* ===== 统一卡片底座 ===== */
.ar-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 2px 18px rgba(0,0,0,.06);
    margin-bottom: 20px;
}

/* ===== 容器一：新闻详情 ===== */
.ar-article-card {
    /* 继承 .ar-card */
}

/* 元信息条 */
.ar-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.ar-meta-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.ar-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #868e96;
}
.ar-meta-item svg { flex-shrink: 0; opacity: .65; }

/* 文章标题 — 微软雅黑 */
.ar-article-title {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
    color: #1a1a1a;
    margin-bottom: 24px;
}

/* 封面图 */
.ar-cover-wrap {
    margin-bottom: 28px;
    text-align: center;
}
.ar-cover-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 10px;
}

/* 正文：强化版富文本样式 */
.ar-body {
    line-height: 2;
    font-size: 16px;
    color: #333;
}
.ar-body p { margin-bottom: 18px; }
.ar-body h2,.ar-body h3,.ar-body h4 {
    margin: 28px 0 14px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, sans-serif;
}
.ar-body h2 { font-size: 22px; border-left: 4px solid var(--primary); padding-left: 12px; }
.ar-body h3 { font-size: 19px; }
.ar-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 8px;
}
.ar-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 10px 18px;
    background: #f8f9fa;
    color: #555;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}
.ar-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.ar-body table td,.ar-body table th { border: 1px solid #dee2e6; padding: 8px 14px; }
.ar-body table th { background: #f1f3f5; font-weight: 600; }

/* ===== 容器二：上一篇 / 下一篇 ===== */
.ar-prev-next-card {
    /* 继承 .ar-card */
    padding: 20px 28px;
}
.ar-pn-separator {
    text-align: center;
    color: #adb5bd;
    font-size: 13px;
    margin: 14px 0 6px;
}
.ar-pn-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.ar-pn-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #444;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f5f6f8;
    transition: all .2s;
    overflow: hidden;
}
.ar-pn-link:hover { background: #e8ecf1; color: var(--primary); }
.ar-pn-next { justify-content: flex-end; text-align: right; }
.ar-pn-arrow {
    font-size: 18px;
    flex-shrink: 0;
    color: var(--primary);
    transition: transform .2s;
}
.ar-pn-link:hover .ar-pn-arrow { transform: translateX(3px); }
.ar-pn-link.ar-pn-prev:hover .ar-pn-arrow { transform: translateX(-3px); }
.ar-pn-label {
    font-size: 12px;
    color: #adb5bd;
    flex-shrink: 0;
    white-space: nowrap;
}
.ar-pn-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ar-pn-disabled { opacity: .4; pointer-events: none; }

/* ===== 容器三：右侧 - 相关推荐 ===== */
.ar-sidebar {
    position: sticky;
    top: 80px;
    /* 继承 .ar-card */
    padding: 24px 22px;
    margin-bottom: 0;
}
.ar-sidebar-title {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
}
.ar-sidebar-title-text {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* 相关文章列表项 */
.ar-related-list { display: flex; flex-direction: column; gap: 12px; }
.ar-related-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #444;
    padding: 8px;
    border-radius: 8px;
    transition: all .2s;
}
.ar-related-item:hover { background: #f5f6f8; color: var(--primary); }
.ar-related-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ecef;
}
.ar-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ar-related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #adb5bd;
}
.ar-related-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ar-related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ar-related-date { font-size: 12px; color: #adb5bd; }
.ar-related-empty {
    font-size: 14px;
    color: #adb5bd;
    text-align: center;
    padding: 30px 0;
}

/* ===== 容器四：二维码卡片 ===== */
.ar-qrcode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}
.ar-qrcode-img {
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    max-width: 100%;
    height: auto;
}
.ar-qrcode-text {
    margin: 12px 0 4px;
    font-size: 13px;
    color: #868e96;
    letter-spacing: 1px;
}

/* ===== 页脚 - 快速链接（同步头部导航菜单）===== */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
/* 页脚联系我们段落与快速链接菜单字号统一 */
.site-footer .col-md-6 p { font-size: 14px; margin-bottom: .4rem; }
.footer-nav-item {
    display: inline-block;
    font-size: 14px;
    opacity: .9;
    text-decoration: none;
    transition: opacity .2s, color .2s;
}
.footer-nav-item:hover { opacity: 1; color: #fff; text-decoration: none; }

/* ===== 新闻列表标题去下划线 ===== */
.news-title-link { text-decoration: none; color: var(--dark); }
.news-title-link:hover { color: var(--primary); }

/* ===== 团队成员详情 - 独立板块 ===== */
.team-block {
    background: #fff;
    border: 1px solid #eee;
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.team-block:last-child { margin-bottom: 0; }
.team-block .article-content { margin: 0; }

/* ===== 平板适配（<=992px）===== */
@media (max-width:992px) {
    .banner-big .banner-img { height: 260px; }
    .banner-small .banner-img { height: 126px; }
    .ar-card { padding: 20px; }
    .ar-article-title { font-size: 22px; }
    .ar-body { font-size: 15px; }
    .ar-sidebar { position: static; margin-top: 10px; margin-bottom: 0; }
}

/* ===== 移动端小屏（<=768px）===== */
@media (max-width:768px) {
    /* 页脚快速链接：一行自适应显示 2-3 个 */
    .footer-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(33%, 1fr));
        gap: 10px 8px;
    }
    .footer-nav-item {
        text-decoration: none;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
