/* =====================================================================
 * customized-equipment-detail.css
 * 定制设备详情页（新版版式）
 * 适用页面：templates/computer/ro-edl-detail.html
 *           以及后续同版式的定制设备详情页
 * =====================================================================
 *
 * 【复用规则】——与 public/common.css 的维护规则保持一致
 *
 *   1) 全宽 section 一律套 .section-container；内容放进 .section-content；
 *      背景 / 对齐用公共工具类 .bgf9f9f9 / .bgf8f8f8 / .text-center，
 *      本文件【不重复声明】这些公共类。
 *
 *   2) h1 / h2 / h3 的全局字号与字重来自 common.css；本文件只在
 *      模块作用域内做最小覆盖（如 .ced-hero h1 换色、.ced-step h3 改字号），
 *      不写裸的 h1 / h2 / h3 选择器。
 *
 *   3) 本文件所有类名统一 ced- 前缀（Customized Equipment Detail），
 *      避免与其他模块 css 冲突。
 *
 * 【配色变量】——统一使用 :root 主题变量（--primary / --accent /
 *   --text-dark / --text-white / --shadow / --border-gray），
 *   保证全站主题色一致。改主题色只需改 :root。
 * ===================================================================== */

.ced-page {
    padding-top: 65px; /* 固定头部占位 */
    background: #fff;
    color: #5b6e86;
}

/* =====================================================================
 * 01 首屏 Banner
 * ===================================================================== */
.ced-hero {
    position: relative;
    /*background: #032b4e;*/
    background: #032b4e url("/img/banner/ultra-pure-water-treatment-plant-hero-background-3-1.webp") center right / cover no-repeat;
}

.ced-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
    rgba(3, 43, 78, 1) 0%,
    rgba(3, 43, 78, 0.95) 50%,
    rgba(3, 43, 78, 0.92) 100%);
}

.ced-hero .section-content {
    position: relative;
    z-index: 1;
    padding-top: 68px;
    padding-bottom: 68px;
}

.ced-hero__content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.ced-hero__left {
    flex: 1;
    max-width: 60%;
}

.ced-hero__right {
    flex-shrink: 0;
    width: 40%;
    max-height: 400px;
}

.ced-hero__right img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.ced-hero__eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #79b4e4;
}

.ced-hero h1 {
    max-width: 640px;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.16;
    color: var(--text-white);
}

.ced-hero__desc {
    max-width: 490px;
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.ced-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 40px;
    margin-top: 30px;
}

.ced-hero__feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ced-hero__feature i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    font-size: 17px;
    color: var(--text-white);
}

.ced-hero__feature span {
    max-width: 140px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-white);
}

.ced-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 34px;
}

.ced-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 6px;
    background: var(--text-white);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ced-btn-hero:hover {
    background: var(--primary);
    color: var(--text-white);
}

.ced-hero__note {
    padding-left: 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

/* =====================================================================
 * 02 面包屑
 * ===================================================================== */
.ced-breadcrumb {
    background: #fff;
    border-bottom: 1px solid var(--border-gray);
}

.ced-breadcrumb .section-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 15px;
}

.ced-breadcrumb i {
    font-size: 12px;
    color: var(--text-dark);
}

.ced-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.ced-breadcrumb a:hover {
    text-decoration: underline;
}

.ced-breadcrumb .ced-sep {
    color: #b8c6d6;
}

.ced-breadcrumb .ced-current {
    font-weight: 500;
    color: var(--text-dark);
}

/* =====================================================================
 * 03 分区标题（01 / PROCESS OVERVIEW 这种）
 * ===================================================================== */
.ced-sec-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
}

.ced-sec-label b {
    margin-right: 8px;
    font-weight: 700;
    color: var(--primary);
}

.ced-sec-head h2 {
    margin-top: 10px;
    color: var(--text-dark);
}

.ced-sec-desc {
    max-width: 800px;
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

/* =====================================================================
 * 04 工艺流程（5 步）
 * ===================================================================== */
.ced-flow {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 44px;
}

.ced-flow__item {
    flex: 1 1 0;
    display: flex;
}

.ced-flow__arrow {
    align-self: center;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--primary);
}

.ced-step {
    flex: 1;
    padding: 24px 20px 26px;
    border-radius: 8px;
    background: #f4f8fb;
}

.ced-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 88px;
    margin-bottom: 16px;
    font-size: 56px;
    color: var(--primary);
}

.ced-step__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ced-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
}

.ced-step h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

.ced-step__desc {
    margin: 10px 0 0;
    padding-left: 34px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
}

.ced-flow__note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 14px 20px;
    border-radius: 6px;
    background: #edf2f6;
    font-size: 13px;
    line-height: 1.6;
    color: #5b6e86;
}

.ced-flow__note i {
    flex-shrink: 0;
    font-size: 15px;
    color: var(--primary);
}

/* 流程图样式 */
.ced-flow-diagram {
    margin-top: 44px;
}

.ced-flow-diagram img {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

/* =====================================================================
 * 05 应用行业（02 / APPLICATIONS）
 * ===================================================================== */
.ced-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 44px;
}

.ced-app-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    background: #fff;
}


.ced-app-card__img {
    height: 220px;
    overflow: hidden;
}

.ced-app-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ced-app-card:hover .ced-app-card__img img {
    transform: scale(1.06);
}

.ced-app-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.ced-app-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ced-app-card .ced-app-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

.ced-app-card p {
    flex: 1;
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

.ced-app-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ced-app-card__link:hover {
    color: var(--accent);
}

/* =====================================================================
 * 06 定制流程（03 / CUSTOM ENGINEERING）
 * ===================================================================== */
.ced-eng-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    margin-top: 44px;
}

.ced-eng-card {
    text-align: center;
    padding: 15px;
}

.ced-eng-card__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 10px;
}

.ced-eng-card__icon i {
    font-size: 48px;
    color: var(--primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.ced-eng-card:hover .ced-eng-card__icon i {
    transform: scale(1.08);
    color: var(--accent);
}

.ced-eng-card__img {
    position: relative;
}

.ced-eng-card__img img {
    display: block;
    width: 100%;
    height: 250px;
    border-radius: 5px;
    object-fit: cover;
}

.ced-eng-card__num {
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: var(--shadow);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.ced-eng-card h3 {
    margin-top: 30px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
}

.ced-eng-card p {
    text-align: left;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
}

/* =====================================================================
 * 07 底部 CTA 通栏
 * ===================================================================== */
.ced-cta {
    position: relative;
    background: var(--primary) url("/img/banner/cta.webp") right center / cover no-repeat;
}

.ced-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
    rgba(66, 74, 210, 0.92) 0%,
    rgba(66, 74, 210, 0.88) 42%,
    rgba(66, 74, 210, 0.72) 72%,
    rgba(66, 74, 210, 0.55) 100%);
}

.ced-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 54px 0;
}

.ced-cta__left {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    min-width: 360px;
}

.ced-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    font-size: 24px;
    color: var(--text-white);
}

.ced-cta h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-white);
}

.ced-cta__text {
    max-width: 430px;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.ced-cta__features {
    display: flex;
    align-items: center;
}

.ced-cta__feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 148px;
    padding: 0 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.ced-cta__feature:first-child {
    border-left: none;
}

.ced-cta__feature i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-white);
}

.ced-cta__feature span {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: var(--text-white);
}

/* =====================================================================
 * 08 响应式
 * ===================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .ced-hero__content {
        gap: 40px;
    }

    .ced-hero__right {
        width: 380px;
    }

    .ced-hero h1 {
        font-size: 38px;
    }

    /* 5 步流程换行：窄屏隐藏箭头,靠卡片顺序表达流程 */
    .ced-flow {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 16px;
    }

    .ced-flow__arrow {
        display: none;
    }

    .ced-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 3 步定制卡片保持三列,缩小间距 */
    .ced-eng-cards {
        gap: 20px;
    }

    .ced-eng-card__icon {
        height: 160px;
    }

    .ced-eng-card__icon i {
        font-size: 80px;
    }

    .ced-cta__inner {
        gap: 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ced-hero__content {
        flex-direction: column;
        gap: 32px;
    }

    .ced-hero__left {
        max-width: 100%;
    }

    .ced-hero__right {
        width: 100%;
    }

    .ced-hero .section-content {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .ced-hero h1 {
        font-size: 30px;
    }

    .ced-hero__desc {
        font-size: 15px;
    }

    .ced-hero__features {
        flex-direction: column;
        gap: 14px;
    }

    .ced-hero__feature span {
        max-width: none;
    }

    .ced-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    /* 手机端 5 步流程单列堆叠 */
    .ced-flow {
        grid-template-columns: 1fr;
    }

    .ced-step {
        padding: 20px 16px 22px;
    }

    .ced-apps-grid {
        grid-template-columns: 1fr;
    }

    .ced-eng-cards {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .ced-eng-card__icon {
        height: 140px;
    }

    .ced-eng-card__icon i {
        font-size: 72px;
    }

    .ced-eng-card__img img {
        height: 200px;
    }

    .ced-cta__left {
        min-width: 0;
    }

    .ced-cta h3 {
        font-size: 22px;
    }

    .ced-cta__inner {
        padding: 40px 0;
    }

    .ced-cta__features {
        flex-wrap: wrap;
        gap: 24px 0;
    }

    .ced-cta__feature {
        width: 50%;
        border-left: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .ced-hero h1 {
        font-size: 26px;
    }

    .ced-sec-desc {
        font-size: 15px;
    }

    .ced-cta__feature {
        width: 100%;
    }
}

/* =====================================================================
 * Water Softener Process Images Grid
 * Only for softening equipment pages - 4 images in a row
 * ===================================================================== */
.ced-softener-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.ced-softener-process-item {
    background: #fff;
    overflow: hidden;
}

.ced-softener-process-item img {
    width: 100%;
    height: 370px;
    object-fit: contain;
    display: block;
}

.ced-softener-process-caption {
    padding: 12px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #032b4e;
    background: #f8f9fa;
}

/* Tablet */
@media (max-width: 1024px) {
    .ced-softener-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .ced-softener-process-item img {
        height: 180px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .ced-softener-process-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ced-softener-process-item img {
        height: 160px;
    }
}
