/* =========================================================
   pages/products.css —— 产品中心页 + 产品详情页样式
   分类筛选 tab / 产品卡片 / banner-swiper / 详情轮播 / 咨询区块。
   ========================================================= */
/* ===== 产品中心页 ===== */
.tab-item {
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 999px;
    transition: 0.3s;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    flex: 0 0 auto;
}
.tab-item:hover {
    color: #3A70EE;
    background: #f3f4f6;
}
.tab-item.active {
    background: #3A70EE;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(58, 112, 238, 0.25);
}
/* 产品分类筛选：标签强制单行，超出可横向滑动，不换行 */
.product-filter {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox 隐藏滚动条 */
    padding: 6px 4px;                 /* 预留空间，避免 active 阴影被裁切 */
}
.product-filter::-webkit-scrollbar {
    display: none;                    /* Webkit 隐藏滚动条 */
}
.card-hover {
    transition: all 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(58, 112, 238, 0.14);
}
.banner-swiper {
    position: relative;
    overflow: hidden;
}
.banner-item {
    display: none;
}
.banner-item.active {
    display: block;
}
.swiper-dot span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}
.swiper-dot span.active {
    background: #3A70EE;
}


/* ===== 详情页 ===== */
.detail-slider-box {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: hidden;
    background: #f3f4f6;
}
.detail-slider-track {
    display: flex;
    transition: transform 0.6s ease;
    height: 100%;
}
.detail-slider-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:#ffffff;
}
.detail-slider-slide i {
    font-size: 120px;
    color: #3A70EE;
}
.detail-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.detail-slider-dot {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.3s;
}
.detail-slider-dot.active {
    background: #fff;
    width: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.consult-section {
    padding: 80px 0;
    background: linear-gradient(120deg, #e0ecff, #e8efff);
}
.consult-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.consult-item-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.detail-qr-wrap {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-qr-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.phone-number {
    font-size: 40px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
    margin-bottom: 8px;
}
.phone-info-row {
    display: flex;
    gap: 40px;
}
.phone-info-row span {
    font-size: 16px;
    color: #667085;
}

/* ===== 产品中心页 / 详情页响应式 ===== */
@media (max-width: 1100px) {
    .consult-row { grid-template-columns: 1fr; }
    .consult-item-card {
        flex-direction: column;
        text-align: center;
    }
    .phone-info-row { justify-content: center; }
    .detail-slider-box { height: 320px; }
    .detail-slider-slide i { font-size: 80px; }
}
@media (max-width: 640px) {
    .phone-number { font-size: 28px; }
    .detail-slider-box { height: clamp(220px, 56vw, 320px); }
    .detail-slider-slide i { font-size: 64px; }
}

/* 产品详情轮播图片 */
.detail-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 完整图片，留白为白色；改为cover则撑满裁切 */
    display: block;
}
