/* ============================================================
   中小学智慧食堂综合监管平台 · 方案页样式
   ------------------------------------------------------------
   ⚠️ 这套样式**只属于本方案**，2026-09-30 从公共 `site.css` 里整段迁出来
      （原来混在公共样式里，十几套方案之后那个文件就没法看了）。

   引入方式：前台页 `..._show.php` 开头声明页面级入口，**不要手写 `<link>`**：
       $pageCss = ['solutions/' . $solutionCode . '/' . $solutionCode . '.css'];
       $pageJs  = ['solutions/' . $solutionCode . '/' . $solutionCode . '.js'];
   页头把它输出在公共 `site.css` **之后**，所以这里的规则天然能覆盖公共样式。

   ⚠️ 本文件里的 `url()` 是**相对本文件位置**的：
      本文件在 `solutions/{方案标识}/`（比网站根深两层），
      所以引用全站固定图要写 `../../common/img/...`（= 回退两级到网站根）。
      改了文件夹层级，这里的路径要跟着改。

   段落：
     一、方案页版式（宽度容器 / 轮播 / 子导航 / 各板块）
     二、成功案例轮播（2026-09-29 从案例站补齐的那一段）
   ============================================================ */

/* ---------------- 一、方案页版式 ---------------- */
.solution-content-width {
    width: min(1440px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.solution-hero {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
    background: #e7eef3;
}

.solution-carousel-track {
    display: flex;
    transition: transform .45s ease;
}

.solution-hero-slide {
    min-width: 100%;
}

.solution-hero-slide img {
    width: 100%;
    aspect-ratio: 1920 / 400;
    object-fit: cover;
}

.solution-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.solution-hero > .solution-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
}

.solution-hero-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 76px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .28);
    cursor: pointer;
    transition: background .18s ease;
}

.solution-hero-control:hover,
.solution-hero-control:focus-visible {
    background: rgba(0, 0, 0, .48);
    outline: none;
}

.solution-hero-control::before {
    content: "";
    width: 17px;
    height: 17px;
    margin: auto;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    display: block;
}

.solution-hero-control--prev {
    left: 24px;
}

.solution-hero-control--prev::before {
    transform: rotate(-135deg);
}

.solution-hero-control--next {
    right: 24px;
}

.solution-hero-control--next::before {
    transform: rotate(45deg);
}

.solution-carousel-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid #224b97;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.solution-carousel-dots button.is-active {
    background: #224b97;
}

.solution-subnav {
    position: sticky;
    top: var(--site-header-height);
    z-index: 900;
    width: min(1440px, calc(100% - 48px));
    min-height: 64px;
    margin: 0 auto 34px;
    padding: 0 34px;
    border: 1px solid #d2d2d2;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 38px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
    font-size: 15px;
    transition: top .2s ease;
}

.solution-subnav.is-pinned-to-top {
    top: 0;
    z-index: 1100;
}

.solution-subnav.is-overlap {
    margin-top: -28px;
}

.solution-subnav a:hover {
    color: #224b97;
}

.solution-subnav__consult {
    min-width: 108px;
    margin-left: auto;
    padding: 9px 18px;
    border-radius: 18px;
    color: #fff;
    background: #224b97;
    text-align: center;
}

.solution-subnav__consult:hover {
    color: #fff !important;
    background: #1a3c7c;
}

/* 段落主标题：居中 + 下方一道随文字宽度的蓝色短横线（OEM·ODM 页、方案页共用）
   第一档选择器必须带 .page-section —— 否则 text-align / font-weight 会被
   `.page-section h2 { text-align: center; font-weight: 500 }` 压掉。 */
.page-section .section-title,
.page-band__inner .section-title,
.solution-section-title {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 42px;
    color: #444;
    font-size: 34px;
    font-weight: 400;
    text-align: center;
}

.page-section .section-title::after,
.page-band__inner .section-title::after,
.solution-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    background: #224b97;
}

.solution-overview,
.solution-architecture,
.solution-resources {
    padding: 20px 0 64px;
    scroll-margin-top: 84px;
}

/* 架构功能：回到底纹段，保证「白-底-白-底」严格交替
   （方案价值(底) → 平台组成(白) → 架构功能(底) → 方案优势(白) → 关联终端(底) …） */
.solution-architecture {
    width: 100%;
    padding: 48px 0 64px;
    background-image: url("../../common/img/pageFixedImage/SchemeIntroductionPage_SolutionValueBackgroundImage.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.solution-overview__content {
    display: grid;
    grid-template-columns: 720px minmax(0, 1fr);
    gap: 58px;
    align-items: start;
}

.solution-overview__content > img {
    width: 720px;
    height: 405px;
    object-fit: cover;
}

.solution-overview__media {
    position: relative;
    width: 720px;
    height: 405px;
    overflow: hidden;
    background: #000;
}

.solution-overview__media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.solution-overview__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74px;
    height: 74px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.solution-overview__play:hover {
    background: rgba(34, 75, 151, 0.88);
    transform: translate(-50%, -50%) scale(1.05);
}

.solution-overview__play svg {
    display: block;
    margin-left: 3px;
}

.solution-overview__play.is-hidden {
    display: none;
}

.solution-overview__text {
    color: #444;
    font-size: 16px;
    line-height: 1.9;
}

.solution-overview__text p:first-child {
    margin-top: 0;
}

.solution-band {
    width: 100%;
    padding: 46px 0 58px;
    scroll-margin-top: 84px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.solution-value-band {
    background-image: url("../../common/img/pageFixedImage/SchemeIntroductionPage_SolutionValueBackgroundImage.png");
}

.solution-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.solution-value-card {
    min-height: 350px;
    padding: 34px 42px 30px;
    border: 1px solid #d4d4d4;
    background: #fff;
}

.solution-value-card > img {
    width: 100px;
    height: 100px;
    margin: 0 auto 22px;
    object-fit: contain;
}

.solution-value-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.solution-value-card li {
    position: relative;
    margin-bottom: 20px;
    padding-left: 15px;
    color: #444;
    font-size: 15px;
    line-height: 1.75;
}

.solution-value-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .75em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #333;
}

.solution-architecture > img {
    width: 100%;
    height: auto;
}

.solution-terminal-band {
    background-image: url("../../common/img/pageFixedImage/SchemeIntroductionPage_AssociatedTerminalsBackgroundImage.png");
}

.solution-terminal-grid,
.solution-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.solution-terminal-card,
.solution-news-card {
    overflow: hidden;
    border: 1px solid #d3d3d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .13);
    transition: transform .18s ease, box-shadow .18s ease;
}

.solution-terminal-card:hover,
.solution-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .17);
}

.solution-terminal-card__image,
.solution-news-card__image {
    width: 100%;
    aspect-ratio: 336 / 220;
    overflow: hidden;
    background: #e5e5e5;
}

.solution-terminal-card__image img,
.solution-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-terminal-card h3 {
    margin: 18px 20px 10px;
    color: #333;
    text-align: center;
    font-size: 22px;
}

.solution-terminal-card p {
    min-height: 48px;
    margin: 0 20px 22px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.solution-terminal-note {
    margin: 22px 0 0;
    color: #666;
    text-align: center;
    font-size: 13px;
}

.solution-terminal-note a {
    color: #0d55ff;
    text-decoration: underline;
}

.solution-news-band {
    background-image: url("../../common/img/pageFixedImage/SchemeIntroductionPage_LatestNewsBackgroundImage.png");
}

.solution-news-card h3 {
    min-height: 94px;
    margin: 18px 20px 8px;
    color: #333;
    font-size: 20px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.solution-news-card span {
    margin: 0 20px 20px;
    display: block;
    color: #224b97;
    font-size: 13px;
}

.solution-more-news {
    margin-top: 22px;
    display: block;
    color: #555;
    text-align: right;
    font-size: 14px;
}

.solution-resources {
    min-height: 320px;
    padding-top: 48px;
}

.solution-resource-list {
    display: grid;
    gap: 9px;
}

.solution-resource-list a {
    width: max-content;
    max-width: 100%;
    color: #444;
    font-size: 15px;
}

.solution-resource-list a:hover {
    color: #224b97;
    text-decoration: underline;
}

/* 后台勾了、但资料库里还没上传文件的那一条：不可点，灰字提示（口径同「接口与资料下载」页） */
.solution-resource-list__pending {
    width: max-content;
    max-width: 100%;
    color: #999;
    font-size: 15px;
}

.solution-consultation {
    scroll-margin-top: 84px;
    background-image: url("../../common/img/pageFixedImage/SchemeIntroductionPage_SolutionConsultationBackgroundImage.png");
    background-position: center;
    background-size: cover;
}

@media (max-width: 1100px) {
    .solution-subnav {
        gap: 20px;
        overflow-x: auto;
    }

    .solution-subnav a {
        white-space: nowrap;
    }

    .solution-overview__content {
        grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
        gap: 34px;
    }

    .solution-overview__content > img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .solution-overview__media {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 760px) {
    .solution-content-width,
    .solution-subnav {
        width: min(100% - 28px, 1440px);
    }

    .solution-subnav {
        padding: 0 18px;
    }

    .solution-subnav__consult {
        margin-left: 0;
    }

    .solution-hero-control {
        width: 34px;
        height: 54px;
    }

    .solution-hero-control::before {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .solution-hero-control--prev {
        left: 8px;
    }

    .solution-hero-control--next {
        right: 8px;
    }

    .solution-section-title {
        font-size: 26px;
    }

    .solution-overview__content,
    .solution-value-grid {
        grid-template-columns: 1fr;
    }

    .solution-terminal-grid,
    .solution-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .solution-value-card {
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .solution-terminal-grid,
    .solution-news-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------- 二、成功案例轮播 ---------------- */
/* ============================================================
   方案页 · 成功案例轮播（2026-09-29 补）
   —— 09-17 抽方案页样式时漏了这一组（案例站里有、新站没搬过来）。
      方案页的「成功案例」板块用得上：一张横条卡片（左图右文）+ 圆点。
   ============================================================ */
.solution-cases {
    padding-top: 48px;
    /* 轮播圆点在板块底部，必须留出下边距，否则紧贴下一段 */
    padding-bottom: 64px;
}

.solution-case-carousel {
    overflow: hidden;
}

.solution-case-slide {
    min-width: 100%;
    min-height: 250px;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 600px minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .13);
}

.solution-case-slide__image {
    min-height: 250px;
    overflow: hidden;
    background: #e5e5e5;
}

.solution-case-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-case-slide > div:last-child {
    padding: 48px 42px 32px;
}

.solution-case-slide h3 {
    margin: 0 0 26px;
    color: #333;
    font-size: 24px;
    line-height: 1.55;
}

.solution-case-slide p {
    margin: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.solution-case-carousel > .solution-carousel-dots {
    margin-top: 24px;
}

/* ============================================================
   平台组成 / 方案优势：标题 + 说明 + 要点的小卡片
   （配合本页既有的 .solution-band 底色与 .solution-section-title）
   ============================================================ */
.solution-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.solution-module-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.solution-module-card {
    padding: 28px 30px 30px;
    border: 1px solid #d9dee8;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.solution-module-card h3 {
    margin: 0 0 12px;
    color: #1f2a44;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.solution-module-card p {
    margin: 0 0 12px;
    color: #5a6478;
    font-size: 15px;
    line-height: 1.85;
}

.solution-module-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.solution-module-card li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 14px;
    color: #46506a;
    font-size: 14.5px;
    line-height: 1.8;
}

.solution-module-card li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #224b97;
}

@media (max-width: 1100px) {
    .solution-module-grid,
    .solution-module-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .solution-module-grid,
    .solution-module-grid--four {
        grid-template-columns: 1fr;
    }
}

/* 平台组成：监管平台（1）独占一行，要点排两列 */
.solution-module-lead {
    margin-bottom: 26px;
    border-color: #cfe0f5;
    background: #eef5fd;
}

.solution-module-lead__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 40px;
}

@media (max-width: 760px) {
    .solution-module-lead__list {
        grid-template-columns: 1fr;
    }
}

.solution-module-lead h3 {
    color: #17418c;
}
