/* ── 产品列表页公共样式（keyboard / mouse / radio_reception 共用） ── */

/* ── 科技网格背景 ── */
.zz-container {
    position: relative;
}

.zz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(75, 169, 224, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(75, 169, 224, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* 左侧科技装饰线 — 已移至独立装饰组件 */

.zz-container > * {
    position: relative;
    z-index: 1;
}

/* ── Banner 轮播样式 ── */
.tabs-group .bannerSwiper {
    width: 100%;
    height: 100%;
}

.tabs-group .bannerSwiper .swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
}

.tabs-group .bannerSwiper .swiper-slide .product-content {
    animation: none;
    opacity: 1;
    transform: none;
}

.tabs-group .bannerSwiper .swiper-slide .img-container {
    animation: none;
    opacity: 1;
}

.tabs-group .bannerSwiper .swiper-button-next,
.tabs-group .bannerSwiper .swiper-button-prev {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tabs-group .bannerSwiper .swiper-button-next:hover,
.tabs-group .bannerSwiper .swiper-button-prev:hover {
    color: #fff;
}

.tabs-group .bannerSwiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.tabs-group .bannerSwiper .swiper-pagination-bullet-active {
    background: var(--zz-primary, #4BA9E0);
}

[class^="product-group-"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, 28rem);
    justify-content: center;
    gap: 1rem;
    grid-column: span 3;
}

[class^="btn-group-"] {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-bottom: .3rem;
    grid-column: span 3;
}

.section-title {
    margin-bottom: .3rem;
    grid-column: span 3;
    font-size: 2.2rem;
    font-weight: 500;
}

.btn-sub-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-item {
    width: 6.5rem;
    height: 3rem;
    font-size: 1rem;
    border-radius: .4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #000;
    background-color: #f3f3f3;
    transition: background-color 0.2s, color 0.2s;
}

.btn-item.active {
    background-color: #4BA9E0;
    color: #fff;
}

.section-group {
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 28rem));
    column-gap: 1.1rem;
    row-gap: 4rem;
    justify-content: center;
}

.section-item {
    display: grid;
    grid-template-columns: repeat(auto-fill, 28rem);
    justify-content: center;
    grid-column: span 3;
    column-gap: 1.1rem;
}

.tabs-group {
    position: relative;
    display: flex;
    justify-content: center;
}

/* ══════════════════════════════════════════════════════
   入场动画
══════════════════════════════════════════════════════ */

/* Banner 区域入场 */
.tabs-group .product-content {
    opacity: 0;
    transform: translateY(24px);
    animation: pp-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.tabs-group .img-container {
    opacity: 0;
    animation: pp-img-fade 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes pp-fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pp-img-fade {
    to {
        opacity: 1;
    }
}

/* Section 区域入场（标题 + 筛选按钮）
   注意：用独立 class 控制初始隐藏，避免覆盖 .section-item 的布局属性 */
.section-item.pp-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-item.pp-hidden.pp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 产品卡片入场 */
@keyframes pp-card-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pp-card-animate {
    animation: pp-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

/* 产品卡片悬停效果增强 */
[class^="product-group-"] > div {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

[class^="product-group-"] > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(75, 169, 224, 0.08);
}

/* 无障碍：尊重用户减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .tabs-group .product-content,
    .tabs-group .img-container {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .section-item.pp-hidden {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .pp-card-animate {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════
   科技感增强 — 标题渐变发光
══════════════════════════════════════════════════════ */

.section-title {
    background: linear-gradient(135deg, #111 0%, #2a2a2a 50%, #4BA9E0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.4rem;
    left: 0;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, #4BA9E0, transparent);
    border-radius: 99em;
}

/* ══════════════════════════════════════════════════════
   科技感增强 — Section 分隔光线
══════════════════════════════════════════════════════ */

.section-item + .section-item::before {
    content: '';
    display: block;
    grid-column: span 3;
    height: 1px;
    margin: 1rem 0;
    background: linear-gradient(90deg, transparent, rgba(75, 169, 224, 0.25), transparent);
}

/* ══════════════════════════════════════════════════════
   科技感增强 — 产品卡片毛玻璃 + 霓虹边框
══════════════════════════════════════════════════════ */

[class^="product-group-"] > div {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(75, 169, 224, 0.08);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease !important;
}

[class^="product-group-"] > div:hover {
    transform: translateY(-8px) !important;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(75, 169, 224, 0.15),
        0 0 30px rgba(75, 169, 224, 0.08) !important;
    border-color: rgba(75, 169, 224, 0.3) !important;
}

/* 卡片顶部光线装饰 */
[class^="product-group-"] > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(75, 169, 224, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

[class^="product-group-"] > div:hover::before {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════
   科技感增强 — 分类按钮
══════════════════════════════════════════════════════ */

.btn-item {
    border: 1px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-item:hover:not(.active) {
    border-color: rgba(75, 169, 224, 0.3);
    box-shadow: 0 0 12px rgba(75, 169, 224, 0.1);
}

.btn-item.active {
    box-shadow: 0 4px 16px rgba(75, 169, 224, 0.3);
}

/* ══════════════════════════════════════════════════════
   科技感增强 — Banner 区域文字发光
══════════════════════════════════════════════════════ */

.tabs-group .product-content .main-title {
    text-shadow: 0 0 40px rgba(75, 169, 224, 0.15);
}

.tabs-group .product-content .sub-title {
    text-shadow: 0 0 20px rgba(75, 169, 224, 0.1);
}

