
.mpl-install, .mpl-install * { box-sizing: border-box; }
.mpl-install {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 170px auto 80px;
    display: flex;
    align-items: flex-start;
    gap: 45px;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #333;
    background: #fff;
}
.mpl-install-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    align-self: flex-start;
}
.mpl-install-sidebar .mpl-install-title {
    font-size: 34px;
    color: #172033;
    margin: 0 0 28px;
    line-height: 1.35;
}
.mpl-install-nav {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    max-height: calc(100vh - 220px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fff;
}
.mpl-install-nav a {
    display: block;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    font: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    text-decoration: none !important;
    text-decoration-line: none !important;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: background .3s, color .3s;
}
.mpl-install .mpl-install-nav a,
.mpl-install .mpl-install-nav a:link,
.mpl-install .mpl-install-nav a:visited,
.mpl-install .mpl-install-nav a:hover,
.mpl-install .mpl-install-nav a:focus,
.mpl-install .mpl-install-nav a:active {
    text-decoration: none !important;
    text-decoration-line: none !important;
}
.mpl-install-nav a:last-child { border-bottom: 0; }
.mpl-install-nav a:hover,
.mpl-install-nav a.active { color: #ff6600; background: #fff7f0; }
.mpl-install-nav a:focus-visible { outline: 2px solid #ff6600; outline-offset: -3px; }
.mpl-install-content { flex: 1; min-width: 0; }
.mpl-case-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.mpl-case-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}
.mpl-case-image img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: contain;
    background: #fff;
}
.mpl-case-image img[hidden],
.mpl-case-placeholder[hidden] { display: none !important; }
.mpl-case-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 14px;
    color: #aaa;
    text-align: center;
}
.mpl-case-heading {
    margin: 40px 0 22px;
    font-size: 30px;
    line-height: 1.55;
    font-weight: 700;
    color: #172033;
    overflow-wrap: anywhere;
}
.mpl-case-body {
    margin: 0;
    font-size: 18px;
    line-height: 2.2;
    font-weight: 400;
    color: #555;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
@media (max-width: 1200px) {
    .mpl-install { gap: 30px; }
    .mpl-case-images { gap: 16px; }
}
@media (max-width: 980px) {
    .mpl-install { flex-direction: column; margin: 125px auto 60px; gap: 30px; }
    .mpl-install-sidebar { position: static; width: 100%; }
    .mpl-install-sidebar .mpl-install-title { margin-bottom: 20px; }
    .mpl-install-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 300px;
    }
    .mpl-install-nav a { padding: 13px 15px; font-size: 14px; }
    .mpl-install-nav a:nth-child(odd) { border-right: 1px solid #eee; }
    .mpl-install-content { width: 100%; }
}
@media (max-width: 700px) {
    .mpl-case-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .mpl-install { width: calc(100% - 30px); margin-top: 80px; gap: 25px; }
    .mpl-install-sidebar .mpl-install-title { font-size: 28px; }
    .mpl-case-images { grid-template-columns: 1fr; gap: 16px; }
    .mpl-case-heading { font-size: 25px; margin-top: 28px; }
    .mpl-case-body { font-size: 16px; line-height: 2; }
}

/* WordPress rich content, index cards and theme integration. */
.mpl-install .mpl-case-body { white-space: normal; }
.mpl-install .mpl-case-body img { max-width: 100%; height: auto; }
.mpl-install .mpl-case-body iframe { max-width: 100%; }
.mpl-install .mpl-case-body p { margin: 0 0 1.2em; }
.mpl-install .mpl-list-heading { margin: 0 0 24px; color: #172033; font-size: 30px; line-height: 1.5; }
.mpl-install .mpl-case-back { margin: 0 0 22px; }
.mpl-install .mpl-case-back a { color: #a64200; }
.mpl-install a:focus-visible { outline: 2px solid #a64200; outline-offset: 3px; }
.mpl-case-page { width: 100%; min-width: 0; }
/* Astra uses a light-gray body for single posts; match the white project page. */
body.single-mpl_case,
body.single-mpl_case #page,
body.single-mpl_case #content.site-content,
body.single-mpl_case #content > .ast-container,
body.single-mpl_case .mpl-case-page,
body.single-mpl_case .mpl-install {
    background-color: #fff !important;
}
body.single-mpl_case #content > .ast-container,
body.post-type-archive-mpl_case #content > .ast-container,
body.tax-mpl_case_category #content > .ast-container { width: 100%; max-width: none; padding: 0; }

/* Supplied frontend listing template */
.mpl-install .mpl-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mpl-install .mpl-install-pagination .page-numbers { display: inline-block; text-align: center; min-width: 37px; min-height: 36px; padding: 5px 10px; border: 1px solid #dedede; border-radius: 5px; background: #fff; color: #444; font-size: 14px; line-height: 1.4; text-decoration: none; }
.mpl-install .mpl-install-pagination .current { background: #ff6600; border-color: #ff6600; color: #fff; font-weight: 700; }
.mpl-install .mpl-install-pagination a:hover { color: #ff6600; border-color: #ff6600; }
.mpl-install .mpl-install-pagination .dots { border: 0; min-width: 0; padding-inline: 2px; }

/* 客户安装现场 */
.mpl-install, .mpl-install * { box-sizing: border-box; }
.mpl-install {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 170px auto 80px;
    display: flex;
    align-items: flex-start;
    gap: 45px;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #333;
    background: #fff;
}
/* 左侧分类*/
.mpl-install-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    align-self: flex-start;
}
.mpl-install-sidebar .mpl-install-title {
    font-size: 34px;
    color: #172033;
    margin: 0 0 28px;
    line-height: 1.35;
}
.mpl-install-nav {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    max-height: calc(100vh - 220px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fff;
}
.mpl-install-nav a {
    display: block;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    font: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: background .3s, color .3s;
}
.mpl-install-nav a:last-child { border-bottom: 0; }
.mpl-install-nav a:hover,
.mpl-install-nav a.active {
    color: #ff6600;
    background: #fff7f0;
}
.mpl-install-nav a:focus-visible {
    outline: 2px solid #ff6600;
    outline-offset: -3px;
}
.mpl-install-content { flex: 1; min-width: 0; }


/* Pagination */
.mpl-install-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
    padding: 6px 0 10px;
}
.mpl-install-page-info {
    margin-right: 4px;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}
.mpl-install-page-btn {
    min-width: 37px;
    min-height: 36px;
    padding: 5px 10px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #fff;
    color: #444;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.mpl-install-page-btn:hover:not(:disabled),
.mpl-install-page-btn:focus-visible {
    color: #ff6600;
    border-color: #ff6600;
    outline: none;
}
.mpl-install-page-btn.active {
    background: #ff6600;
    border-color: #ff6600;
    color: #fff;
    font-weight: 700;
    cursor: default;
}
.mpl-install-page-btn:disabled:not(.active) {
    color: #aaa;
    border-color: #eee;
    background: #fafafa;
    cursor: not-allowed;
}
.mpl-install-page-ellipsis {
    display: inline-block;
    padding: 0 2px;
    color: #888;
}
@media (max-width: 520px) {
    .mpl-install-pagination { gap: 6px; margin-top: 26px; }
    .mpl-install-page-info { flex-basis: 100%; text-align: center; }
    .mpl-install-page-btn { min-width: 33px; min-height: 33px; padding: 5px 8px; font-size: 13px; }
}

/* 图片 */
.mpl-install-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.mpl-install-card {
    min-width: 0;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}
.mpl-install-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
    transform: translateY(-3px);
}
.mpl-install-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.mpl-install-photo img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: contain;
    background: #fff;
}
.mpl-install-photo img[hidden],
.mpl-install-placeholder[hidden] { display: none !important; }
.mpl-install-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-size: 14px;
    color: #aaa;
    letter-spacing: 1px;
    text-align: center;
}
.mpl-install-card-footer {
    min-height: 77px;
    padding: 16px 18px 19px;
    border-top: 1px solid #f0f0f0;
}
.mpl-install-card-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.55;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.mpl-install-card-title a {
    color: #333;
    text-decoration: none;
    transition: color .25s;
}
.mpl-install-card-title a:hover { color: #ff6600; }
.mpl-install-card-title a:focus-visible { outline: 2px solid #ff6600; outline-offset: 3px; }

@media (max-width: 1200px) {
    .mpl-install { gap: 30px; }
    .mpl-install-grid { gap: 18px; }
    .mpl-install-card-title { font-size: 17px; }
}
@media (max-width: 980px) {
    .mpl-install {
        flex-direction: column;
        margin: 125px auto 60px;
        gap: 30px;
    }
    .mpl-install-sidebar { position: static; width: 100%; }
    .mpl-install-sidebar .mpl-install-title { margin-bottom: 20px; }
    .mpl-install-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 300px;
    }
    .mpl-install-nav a { padding: 13px 15px; font-size: 14px; }
    .mpl-install-nav a:nth-child(odd) { border-right: 1px solid #eee; }
    .mpl-install-content { width: 100%; }
    .mpl-install-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
    .mpl-install-photo { min-height: 150px; }
}
@media (max-width: 700px) {
    .mpl-install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .mpl-install {
        width: calc(100% - 30px);
        margin-top: 80px;
        gap: 25px;
    }
    .mpl-install-sidebar .mpl-install-title { font-size: 28px; }
    .mpl-install-grid { grid-template-columns: 1fr; gap: 18px; }
    .mpl-install-photo { aspect-ratio: 4 / 3; min-height: 220px; }
    .mpl-install-card-title { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .mpl-install-card, .mpl-install-card-title a { transition: none; }
}
