/* 新版 CMS 增补样式：只做必要的安全/可用性补充，不影响原主题 */
.cms-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cms-form-tip {
    margin: 10px 0 0;
    min-height: 20px;
    font-size: 14px;
    color: #666;
}

.cms-form-tip.is-success { color: #1a7f37; }
.cms-form-tip.is-error { color: #c62828; }

.cms-message-form input[type="submit"]:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* 分页：兼容主题的 .yc_pages 容器 */
.yc_pages .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.yc_pages .pagination li a,
.yc_pages .pagination li span {
    display: inline-block;
    min-width: 36px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    color: #333;
    text-align: center;
    text-decoration: none;
    background: #fff;
}

.yc_pages .pagination li.active span,
.yc_pages .pagination li a:hover {
    background: #b0273b;
    border-color: #b0273b;
    color: #fff;
}

.yc_pages .pagination li.disabled span {
    color: #bbb;
    background: #f7f7f7;
}

/* 详情页内容自适应 */
.detail .desc img,
.detail .desc video,
.detail .desc iframe {
    max-width: 100%;
    height: auto;
}

.detail .desc table {
    max-width: 100%;
    border-collapse: collapse;
}

.detail .desc td,
.detail .desc th {
    border: 1px solid #ddd;
    padding: 6px 8px;
}

.cms-empty {
    padding: 40px 0;
    text-align: center;
    color: #888;
}

/* 详情 / 列表补充 */
.cms-breadcrumb {
    max-width: 1100px;
    margin: 100px auto 20px;
    padding: 0 20px;
    color: #888;
    font-size: 14px;
}

.cms-breadcrumb a { color: #666; margin: 0 6px; }
.cms-breadcrumb span { color: #aaa; }

.cms-meta {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 20px;
    color: #888;
    font-size: 13px;
}

.cms-meta span { margin-right: 18px; }

.cms-cover {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 0 20px;
}

.cms-cover img { width: 100%; height: auto; display: block; }

.cms-gallery {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

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

.cms-share {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 24px;
}

.cms-share a { color: #b0273b; }

.cms-job-requirement {
    max-width: 1100px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: #f8f8f8;
    line-height: 1.9;
    color: #444;
    white-space: pre-line;
}

.cms-search-box {
    max-width: 900px;
    margin: 100px auto 30px;
    padding: 0 20px;
}

.cms-search-box form { display: flex; gap: 10px; }

.cms-search-box input[type="text"] {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.cms-search-box button {
    height: 42px;
    padding: 0 28px;
    border: 0;
    background: #b0273b;
    color: #fff;
    cursor: pointer;
}

.cms-search-box p { margin-top: 14px; color: #555; }

/* 留言表单在文章页/联系页的通用排版 */
.cms-message-form { max-width: 900px; margin: 20px auto 0; padding: 0 20px; }
.cms-message-form input[type="text"],
.cms-message-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    background: #fff;
}
.cms-message-form input.second { margin-top: 0; }
.cms-message-form textarea { min-height: 120px; resize: vertical; }
.cms-message-form input[type="submit"] {
    display: inline-block;
    padding: 12px 40px;
    border: 0;
    background: #b0273b;
    color: #fff;
    cursor: pointer;
}

/* 联系页地图占位（不加载第三方 iframe） */
.cms-map-placeholder {
    height: 840px;
    background: #f3f3f3 url('/themes/default/img/index_area_bg.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cms-map-placeholder-inner {
    background: rgba(255,255,255,.92);
    padding: 30px 40px;
    text-align: center;
    line-height: 2;
    max-width: 520px;
}
.cms-map-placeholder-inner h3 { margin: 0 0 8px; color: #b0273b; font-size: 22px; }
.cms-map-placeholder-inner a { color: #b0273b; }

/* 联系页分支卡片 */
.cms-branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.cms-branch-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 24px;
    line-height: 1.9;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.cms-branch-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #b0273b;
}
.cms-branch-card .company { color: #333; font-weight: 600; margin-bottom: 8px; }
.cms-branch-card p { margin: 0 0 6px; color: #666; font-size: 14px; }
.cms-branch-card p span {
    display: inline-block;
    min-width: 42px;
    color: #999;
    margin-right: 6px;
}
.cms-branch-card a { color: #666; }

/* 合作伙伴 */
.cms-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
}
.cms-partner-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.cms-partner-item img { max-width: 100%; max-height: 80px; height: auto; }

/* 首页发展历程：15 个年份在 1440 宽度下自动收紧，避免溢出到下一屏 */
.index_development .hd {
    overflow: hidden;
}
.index_development .hd ul {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    white-space: nowrap;
    width: auto;
    max-width: 100%;
}
.index_development .hd li {
    float: none;
    width: auto;
    min-width: 62px;
    padding: 0 12px;
}
@media screen and (max-width: 1220px) {
    .index_development .hd li {
        min-width: 48px;
        padding: 0 7px;
        font-size: 16px;
    }
}
@media screen and (max-width: 768px) {
    .index_development .hd ul {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .index_development .hd li {
        min-width: 46px;
        padding: 0 6px;
        font-size: 14px;
    }
}

/* ===== 内容详情页（新闻 / 案例 / 服务） ===== */
.cms-detail-page {
    background: #f6f6f6;
}
.cms-detail-page,
.cms-detail-page *,
.cms-detail-page *::before,
.cms-detail-page *::after {
    box-sizing: border-box;
}
.cms-detail-hero {
    background: #fff;
    border-bottom: 1px solid #ececec;
}
.cms-detail-hero-inner {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px 26px;
}
.cms-detail-breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 18px;
}
.cms-detail-breadcrumb a {
    color: #777;
    margin: 0 5px;
}
.cms-detail-breadcrumb a:hover { color: #b0273b; }
.cms-detail-breadcrumb span { color: #c9c9c9; }
.cms-detail-kicker {
    display: inline-block;
    font-size: 13px;
    line-height: 26px;
    color: #b0273b;
    border: 1px solid rgba(176, 39, 59, .25);
    background: rgba(176, 39, 59, .04);
    padding: 0 12px;
    margin-bottom: 14px;
}
.cms-detail-hero h1 {
    margin: 0;
    font-size: clamp(24px, 2.8vw, 38px);
    line-height: 1.35;
    color: #222;
    font-weight: 700;
    word-break: break-word;
}
.cms-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 18px;
    font-size: 13px;
    color: #999;
}
.cms-detail-meta span { position: relative; }
.cms-detail-meta span + span::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    background: #ccc;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 16px;
}
.cms-detail-layout {
    max-width: 1700px;
    margin: 0 auto;
    padding: 36px 20px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}
.cms-detail-main {
    background: #fff;
    padding: 38px 42px 42px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
    min-width: 0;
}
.cms-detail-cover {
    margin: 0 0 28px;
    background: #f2f2f2;
    overflow: hidden;
}
.cms-detail-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    object-fit: cover;
}
.cms-detail-summary {
    margin: 0 0 26px;
    padding: 16px 18px;
    background: #faf7f7;
    border-left: 3px solid #b0273b;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}
.cms-detail-content {
    color: #3d3d3d;
    font-size: 16px;
    line-height: 1.95;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.cms-detail-content p { margin: 0 0 1.1em; }
.cms-detail-content h2,
.cms-detail-content h3,
.cms-detail-content h4 {
    color: #222;
    line-height: 1.5;
    margin: 1.6em 0 .7em;
}
.cms-detail-content h2 { font-size: 24px; }
.cms-detail-content h3 { font-size: 20px; }
.cms-detail-content img,
.cms-detail-content video,
.cms-detail-content iframe {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
}
.cms-detail-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}
.cms-detail-content td,
.cms-detail-content th {
    border: 1px solid #e5e5e5;
    padding: 8px 10px;
}
.cms-detail-content a { color: #b0273b; }
.cms-detail-content blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: #fafafa;
    border-left: 3px solid #ddd;
    color: #666;
}
.cms-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 28px;
}
.cms-detail-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.cms-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}
.cms-btn {
    display: inline-flex;
    box-sizing: border-box;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    font-size: 15px;
    text-decoration: none;
    transition: all .25s ease;
}
.cms-btn-primary {
    color: #fff;
    background: #b0273b;
}
.cms-btn-primary:hover { background: #8f1f30; color: #fff; }
.cms-btn-ghost {
    color: #555;
    border: 1px solid #ddd;
    background: #fff;
}
.cms-btn-ghost:hover { color: #b0273b; border-color: #b0273b; }
.cms-detail-aside {
    position: sticky;
    top: 112px;
}
.cms-aside-card {
    background: #fff;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
}
.cms-aside-card h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #222;
}
.cms-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cms-related-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}
.cms-related-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cms-related-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 66px;
    background: #f2f2f2;
    overflow: hidden;
}
.cms-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cms-related-body {
    min-width: 0;
}
.cms-related-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}
.cms-related-title:hover { color: #b0273b; }
.cms-related-body span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #aaa;
}
.cms-aside-empty { color: #999; font-size: 14px; margin: 0; }
.cms-aside-cta p {
    color: #777;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 18px;
}
.cms-aside-cta .cms-btn { width: 100%; }
.cms-aside-tel {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #b0273b;
    font-size: 20px;
    letter-spacing: .5px;
}
@media screen and (max-width: 1020px) {
    .cms-detail-layout { grid-template-columns: 1fr; }
    .cms-detail-aside { position: static; }
    .cms-detail-main { padding: 28px 26px 32px; }
}
@media screen and (max-width: 768px) {
    .cms-detail-page { padding-top: 0; }
    .cms-detail-hero-inner { padding: 0 16px 20px; }
    .cms-detail-layout { padding: 20px 12px 50px; gap: 18px; }
    .cms-detail-main { padding: 20px 16px 26px; }
    .cms-detail-content { font-size: 15px; line-height: 1.9; }
    .cms-detail-cover { margin-left: -16px; margin-right: -16px; }
    .cms-detail-actions { flex-direction: column; }
    .cms-detail-actions .cms-btn { width: 100%; }
    .cms-detail-meta { gap: 5px 12px; }
    .cms-detail-meta span + span::before { margin-right: 8px; }
    .cms-aside-card { padding: 18px; }
    .cms-related-thumb { flex-basis: 86px; width: 86px; height: 60px; }
}

/* 首页新闻 Swiper */
.cms-news-swiper {
    width: calc(100% - 450px);
    padding-bottom: 38px;
    overflow: hidden;
}
.cms-news-swiper .swiper-wrapper {
    align-items: stretch;
}
.cms-news-swiper .swiper-slide.copy {
    width: auto;
    float: none;
    height: auto;
    min-height: 440px;
    padding: 0 24px;
    overflow: visible;
    box-sizing: border-box;
}
.cms-news-swiper .swiper-slide.copy .img {
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 203;
    overflow: hidden;
    padding-top: 13px;
}
.cms-news-swiper .swiper-slide.copy .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cms-news-swiper .swiper-slide.copy .title {
    height: auto;
    min-height: 56px;
}
.cms-news-swiper .swiper-slide.copy .desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cms-news-swiper .swiper-pagination {
    position: static;
    margin-top: 12px;
    text-align: left;
}
.cms-news-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #d8d8d8;
    opacity: 1;
    margin: 0 5px 0 0 !important;
}
.cms-news-swiper .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 4px;
    background: #b0273b;
}
.index_new .left .cont .img {
    cursor: pointer;
}
@media screen and (max-width: 1220px) {
    .cms-news-swiper {
        width: 100%;
        float: none;
        margin-top: 28px;
    }
}
@media screen and (max-width: 768px) {
    .cms-news-swiper .swiper-slide.copy {
        min-height: 0;
        padding: 0 12px;
    }
    .cms-news-swiper .swiper-slide.copy .title {
        min-height: 0;
    }
}

/* PJAX 进度条与固定导航配合 */
#pjax-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #b0273b;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
}
body.pjax-loading {
    cursor: progress;
}
#pjax-container {
    min-height: 40vh;
}
