/* ============================================================
   Production Strength 生产实力轮播 —— 与 factories.html 源码样式一致
   ============================================================ */

.qing-ps {
    --blue: #1b3df5;
    --navy: #0b1a3a;
    --border: #e4e8f0;
    --ps-gap: 16px;
    --ps-per: 5;
    padding: 64px 0;
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

.qing-ps *,
.qing-ps *::before,
.qing-ps *::after { box-sizing: border-box; }

.qing-ps .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
}

.qing-ps .ps-head {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 18px;
}

.qing-ps .ps-carousel { position: relative; }
.qing-ps .ps-viewport { overflow: hidden; }
.qing-ps .ps-track {
    display: flex;
    gap: var(--ps-gap);
    transition: transform .4s ease;
    padding: 4px;
}
.qing-ps .ps-item {
    flex: 0 0 calc((100% - (var(--ps-per) - 1) * var(--ps-gap)) / var(--ps-per));
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #e8edf5;
}
.qing-ps .ps-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qing-ps .ps-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13, 30, 70, .14);
    color: var(--navy);
    transition: all .2s ease;
}
.qing-ps .ps-arrow:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.qing-ps .ps-arrow svg { width: 18px; height: 18px; }
.qing-ps .ps-prev { left: -10px; }
.qing-ps .ps-next { right: -10px; }

/* ---------- 响应式（与源码断点一致） ---------- */
@media (max-width: 820px) {
    .qing-ps { padding: 44px 0; }
    .qing-ps .ps-item { --ps-per: 3; }
}

@media (max-width: 560px) {
    .qing-ps .container { padding: 0 15px; }
    .qing-ps .ps-item { --ps-per: 2; }
}

/* ===== 分类页画廊样式 ===== */
.qing-ps-gallery .container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 50px; }
.qing-ps-gallery .ps-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.qing-ps-gallery .ps-gitem {
    border-radius: 10px;
    overflow: hidden;
    background: #e8edf5;
    aspect-ratio: 4 / 3;
}
.qing-ps-gallery .ps-gitem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.qing-ps-gallery .ps-gitem:hover img { transform: scale(1.05); }

@media (max-width: 820px) {
    .qing-ps-gallery .ps-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
    .qing-ps-gallery .container { padding: 0 15px; }
    .qing-ps-gallery .ps-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
