/* ==========================================================================
   双福环保 · 产品详情页 — article.css（内页专属，叠加于 base.css + v2.css + list.css）
   复用 base.css 的 header / footer / search-strip / drawer / float-bar
   复用 v2.css 的吸顶负 top / 导航胶囊 / 下拉 / 入场 reveal / hover 效果
   复用 list.css 的内页 banner / 面包屑 / 左侧分类侧栏 / 分页
   本文件只补充详情页专属：产品大图轮播 + 缩略图、参数选择区、产品介绍、相关产品
   ========================================================================== */

/* ---------- 1. 详情主体布局 ---------- */
.article-body {
    padding: 46px 0 70px;
    background: #f6f7f8;
}
.article-body__grid {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 24px;
    align-items: start;
}

/* ---------- 2. 右侧内容容器 ---------- */
.article-main {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow-s);
    padding: 28px 30px 36px;
}

/* ---------- 3. 顶部展示区：左图右参 ---------- */
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 430px) 1fr;
    gap: 34px;
    align-items: start;
    min-width: 0;
}
.showcase__media {
    min-width: 0;
}

/* 大图轮播 */
.showcase__view {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f4f5;
    border: 1px solid var(--line);
}
.showcase__view .swiper {
    width: 100%;
    max-width: 100%;
}
.showcase__view .swiper-wrapper {
    max-width: 100%;
}
.showcase__view .swiper-slide {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    overflow: hidden;
    flex-shrink: 0;
}
.showcase__view .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.showcase__view .swiper-slide:hover img {
    transform: scale(1.06);
}
.showcase__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(8, 24, 18, .32);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s var(--ease), background .3s, transform .3s;
}
.showcase__view:hover .showcase__arrow { opacity: 1; }
.showcase__arrow:hover { background: var(--green); }
.showcase__arrow:active { transform: translateY(-50%) scale(.92); }
.showcase__arrow svg { width: 18px; height: 18px; }
.showcase__arrow--prev { left: 12px; }
.showcase__arrow--next { right: 12px; }

/* 缩略图条（官方 demo「缩略图画廊」风格：非激活半透明，激活高亮） */
.showcase-thumbs {
    margin-top: 10px;
    max-width: 100%;
    overflow: hidden;
}
.showcase-thumbs .swiper-wrapper {
    max-width: 100%;
}
.showcase-thumbs .swiper-slide {
    width: 25%;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .4;
    transition: opacity .35s var(--ease), border-color .35s, transform .35s var(--ease);
    background: #f2f4f5;
}
.showcase-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.showcase-thumbs .swiper-slide:hover { opacity: .8; }
.showcase-thumbs .swiper-slide-thumb-active {
    border-color: var(--green);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 122, 77, .2);
}

/* ---------- 4. 参数选择区 ---------- */
.pro-info__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
}
.pro-info__service {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #4a5361;
}
.pro-info__service b {
    color: var(--green-d);
    font-weight: 700;
    white-space: nowrap;
}
.pro-info__service .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-info__service .tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #4a5361;
}
.pro-info__service .tags i {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.pro-info__cred {
    padding: 12px 0;
    font-size: 13px;
    color: var(--green-d);
    border-top: 1px solid #f0f1f2;
    border-bottom: 1px solid #f0f1f2;
    line-height: 1.7;
}
.pro-info__cred b { font-weight: 600; }

/* 参数行（处理量 / 处理标准 / 处理类型） */
.pro-info__attr {
    padding: 14px 0;
    border-bottom: 1px solid #f0f1f2;
}
.pro-info__attr:last-of-type { border-bottom: 0; }
.pro-info__attr .named {
    flex: none;
    width: 76px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.pro-info__attr .row { display: flex; align-items: flex-start; gap: 12px; }
.pro-info__attr .opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}
.opt {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 4px;
    border: 1px solid #d9dfdb;
    background: #fff;
    font-size: 13.5px;
    color: #39424f;
    cursor: pointer;
    transition: background .28s var(--ease), color .28s, border-color .28s, transform .28s var(--ease), box-shadow .28s;
}
.opt:hover {
    border-color: var(--green);
    color: var(--green-d);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 122, 77, .14);
}
.opt.is-on {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(15, 122, 77, .28);
}

/* 咨询区 */
.pro-info__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed var(--line);
    flex-wrap: wrap;
}
.pro-info__cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 34px;
    border-radius: 4px;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background .3s, transform .3s var(--ease), box-shadow .3s;
    box-shadow: 0 8px 20px rgba(15, 122, 77, .26);
}
.pro-info__cta .btn:hover {
    background: var(--green-d);
    transform: translateY(-2px);
}
.pro-info__cta .btn:active { transform: scale(.97); }
.pro-info__cta .tel {
    font-size: 13px;
    color: #8790a0;
    line-height: 1.6;
}
.pro-info__cta .tel b {
    display: block;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 26px;
    color: var(--tel);
    letter-spacing: .5px;
    line-height: 1.2;
}

/* ---------- 5. 产品介绍 ---------- */
.article-sec {
    margin-top: 40px;
}
.article-sec__title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--green);
}
.article-sec__title h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
}
.article-sec__title small {
    font-size: 12px;
    color: #9aa2ae;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.article-sec__title .tip {
    margin-left: auto;
    font-size: 12.5px;
    color: #8790a0;
}

/* 富文本正文 */
.article-content {
    font-size: 15px;
    line-height: 1.9;
    color: #3a4350;
    word-break: break-word;
}
.article-content p { margin: 0 0 14px; }
.article-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-d);
    margin: 22px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--green);
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
    display: block;
}
.article-content ul,
.article-content ol { margin: 0 0 14px; padding-left: 22px; }
.article-content li { margin: 5px 0; }
.article-content strong { color: var(--ink); }
.article-content .lead {
    font-size: 17px;
    color: var(--ink);
    font-weight: 600;
}
.article-content .highlight { color: var(--green-d); font-weight: 600; }

/* 参数高亮卡（auto-fit 自适应项数：3 项 3 列，2 项 2 列） */
.article-spec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 22px 0;
}
.article-spec__item {
    background: #f4faf6;
    border: 1px solid #e2efe7;
    border-radius: 6px;
    padding: 18px 16px;
    text-align: center;
}
.article-spec__item b {
    display: block;
    font-size: 15px;
    color: var(--green-d);
    margin-bottom: 4px;
}
.article-spec__item span {
    font-size: 13px;
    color: #6b7482;
}

/* ---------- 6. 相关产品 ---------- */
.related { margin-top: 40px; }
.related__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 22px;
}
.related__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #f7f8f9;
    font-size: 14px;
    color: #4a5361;
    transition: background .25s, color .25s, transform .25s var(--ease);
}
.related__list a::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}
.related__list a:hover {
    background: var(--green-soft);
    color: var(--green-d);
    transform: translateX(5px);
}
.related__list a .txt {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1240px) {
    .article-body__grid { grid-template-columns: 236px 1fr; }
    .showcase { grid-template-columns: minmax(0, 360px) 1fr; gap: 24px; }
}

@media (max-width: 992px) {
    .article-body__grid { grid-template-columns: 1fr; }
    .showcase { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 768px) {
    .article-body { padding: 30px 0 50px; }
    .article-main { padding: 20px 16px 28px; }
    .pro-info__title { font-size: 20px; }
    .pro-info__attr .row { flex-direction: column; gap: 8px; }
    .pro-info__attr .named { width: auto; }
    .related__list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .article-spec { grid-template-columns: 1fr; }
    .pro-info__cta .btn { width: 100%; }
    .pro-info__cta .tel b { font-size: 22px; }
}
