/* ============================================================
   产品中心 - 重新设计样式
   主色：深紫 #660874 | 渐变：#660874 → #a855f7
   风格：现代卡片式 + 紫色渐变 + 柔和阴影
   ============================================================ */

:root {
    --primary: #660874;
    --primary-dark: #4a0556;
    --primary-light: #a855f7;
    --primary-soft: #f5f0f9;

    --bg: #f8f6fa;
    --bg-card: #ffffff;
    --bg-img: #faf7fc;

    --text: #1a1a2e;
    --text-muted: #6c6c80;
    --text-light: #a0a0b0;

    --border: #ece8f0;
    --border-soft: #f5f2f8;

    --shadow-sm: 0 2px 8px rgba(102, 8, 116, 0.05);
    --shadow-md: 0 8px 24px rgba(102, 8, 116, 0.10);
    --shadow-lg: 0 16px 48px rgba(102, 8, 116, 0.16);
    --shadow-glow: 0 0 24px rgba(168, 85, 247, 0.20);

    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-h: 90px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============================================================
   页面 Banner — 紫色渐变 + 光晕装饰 + 网格纹理
   ============================================================ */
.page-banner {
    position: relative;
    margin-top: var(--nav-h);
    padding: 64px 0 52px;
    background: linear-gradient(135deg, #660874 0%, #4a0556 40%, #3d0a4a 100%);
    overflow: hidden;
}

/* 装饰光晕 */
.banner-deco {
    position: absolute;
    top: -140px;
    right: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 65%);
    pointer-events: none;
}

/* 装饰光晕2（左下） */
.page-banner::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.20), transparent 70%);
    pointer-events: none;
}

/* 网格纹理蒙版 */
.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.page-banner p {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 18px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: #fff;
}

.crumb-sep {
    color: rgba(255, 255, 255, 0.4);
}

.crumb-current {
    color: #fff;
    font-weight: 600;
}

/* ============================================================
   主体布局：左分类 + 右产品
   ============================================================ */
.product-main {
    padding: 40px 0 70px;
    background: var(--bg);
    /* 顶部圆角衔接 Banner */
    border-radius: 20px 20px 0 0;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.center-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
    align-items: start;
}

/* ============================================================
   左侧分类栏 — 白色卡片 + 紫色渐变高亮
   ============================================================ */
.category-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 16px);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.sidebar-title {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 18px 22px;
    font-size: 1.08rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* 标题底部装饰线 */
.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
}

.sidebar-title .cat-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

/* 全部设备列表 */
.cat-menu {
    padding: 12px;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 滚动条美化 */
.cat-menu::-webkit-scrollbar {
    width: 5px;
}
.cat-menu::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.25);
    border-radius: 3px;
}
.cat-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}
.cat-menu::-webkit-scrollbar-track {
    background: transparent;
}

.cat-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 链接型菜单项 */
.cat-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: none;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
    position: relative;
    font-weight: 500;
}

.cat-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cat-left i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--primary-light);
    transition: var(--transition);
    flex-shrink: 0;
}

.cat-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cat-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(3px);
}

.cat-link:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

/* 高亮当前组 — 紫色渐变背景 + 左侧竖线 */
.cat-link.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(102, 8, 116, 0.08));
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.12);
}

.cat-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 0 3px 3px 0;
}

.cat-link.active i {
    color: var(--primary);
}

.cat-link.active .cat-count {
    background: var(--primary);
    color: #fff;
}

/* ---------- 可展开子菜单 ---------- */
.cat-arrow {
    font-size: 0.72rem;
    color: var(--text-light);
    transition: transform 0.35s ease, color 0.35s;
    flex-shrink: 0;
    margin-left: 4px;
}

.cat-item.has-sub > .cat-link {
    cursor: pointer;
}

.cat-item.has-sub.expanded .cat-arrow {
    transform: rotate(180deg) !important;
    color: var(--primary-light);
}

.cat-sub {
    display: none;
    padding: 4px 0 6px;
    margin: 0;
}

.cat-item.has-sub.expanded .cat-sub {
    display: block;
    animation: catSubSlide 0.3s ease;
}

@keyframes catSubSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.cat-sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 34px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
    position: relative;
}

.cat-sub-link .cat-left i {
    font-size: 0.45rem;
    color: var(--text-light);
    width: 8px;
}

.cat-sub-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 38px;
}

.cat-sub-link:hover .cat-left i {
    color: var(--primary-light);
}

.cat-sub-link.active {
    background: rgba(168, 85, 247, 0.10);
    color: var(--primary);
    font-weight: 600;
}

.cat-sub-link.active .cat-left i {
    color: var(--primary);
}

/* 侧边栏底部咨询卡片 */
.sidebar-contact {
    margin: 8px 14px 18px;
    padding: 22px 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(160deg, var(--primary-soft) 0%, rgba(168, 85, 247, 0.06) 100%);
    text-align: center;
    border: 1px dashed rgba(168, 85, 247, 0.25);
}

.sidebar-contact > i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.sidebar-contact h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 6px;
    font-weight: 700;
}

.sidebar-contact p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.sidebar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(102, 8, 116, 0.2);
}

.sidebar-contact a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 8, 116, 0.3);
}

/* ============================================================
   右侧内容区
   ============================================================ */
.product-content {
    min-width: 0;
}

/* ---------- 工具栏 ---------- */
.content-toolbar {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border-soft);
}

.toolbar-info h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.toolbar-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.toolbar-search {
    position: relative;
    width: 280px;
    flex-shrink: 0;
}

.toolbar-search input {
    width: 100%;
    padding: 11px 40px 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: 24px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}

.toolbar-search input::placeholder {
    color: var(--text-light);
}

.toolbar-search input:focus {
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.10);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
    transition: var(--transition);
}

.toolbar-search input:focus + .search-icon {
    color: var(--primary-light);
}

/* 移动端横向分类标签 */
.mobile-cat-tabs {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-cat-tabs::-webkit-scrollbar {
    display: none;
}

.m-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 22px;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.m-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 8, 116, 0.2);
}

/* ============================================================
   产品网格 — 现代卡片 + 渐变光效 + hover动画
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.p-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-soft);
    animation: cardIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
    position: relative;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.p-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(168, 85, 247, 0.3);
}

/* 卡片图片区 */
.p-img {
    position: relative;
    height: 280px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-img) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}

/* 图片区hover渐变光效 */
.p-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.08), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.p-card:hover .p-img::before {
    left: 100%;
}

/* 图片下方品牌色微光 */
.p-img::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -40px;
    width: 70%;
    height: 50px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.p-card:hover .p-img::after {
    opacity: 1;
}

.p-img img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.p-card:hover .p-img img {
    transform: scale(1.08);
}

/* 卡片正文 */
.p-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-body h3 {
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    transition: var(--transition);
}

.p-card:hover .p-body h3 {
    color: var(--primary);
}

.p-body p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.p-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.p-more i {
    font-size: 0.82rem;
    transition: transform 0.3s ease;
}

.p-card:hover .p-more {
    gap: 9px;
}

.p-card:hover .p-more i {
    transform: translateX(2px);
}

/* 卡片隐藏 */
.p-card.hidden {
    display: none;
}

/* 无结果 */
.no-results {
    display: none;
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
}

.no-results i {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.no-results p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.no-results a {
    color: var(--primary);
    font-weight: 600;
}

.no-results.show {
    display: block;
    animation: cardIn 0.4s ease;
}

/* ============================================================
   CTA 横幅 — 渐变 + 光效
   ============================================================ */
.cta-strip {
    padding: 0 0 70px;
}

.cta-inner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #7a1a8a 100%);
    border-radius: var(--radius-lg);
    padding: 44px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(102, 8, 116, 0.25);
    position: relative;
    overflow: hidden;
}

/* CTA 装饰光晕 */
.cta-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 65%);
    pointer-events: none;
}

.cta-inner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: 20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cta-text p {
    font-size: 0.92rem;
    opacity: 0.85;
}

.cta-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 26px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
}

.cta-btn-white {
    background: #fff;
    color: var(--primary-dark);
}

.cta-btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cta-btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(102, 8, 116, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 99;
}

.back-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(102, 8, 116, 0.4);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .p-img {
        height: 260px;
    }
}

@media (max-width: 900px) {
    .center-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        position: static;
    }

    .cat-menu {
        max-height: 380px;
    }
}

@media (max-width: 767px) {
    :root {
        --nav-h: 60px;
    }

    .page-banner {
        padding: 44px 0 36px;
    }

    .page-banner h1 {
        font-size: 1.75rem;
    }

    .product-main {
        padding: 30px 0 50px;
    }

    .content-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .toolbar-search {
        width: 100%;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 34px 26px;
    }

    .cta-btns {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .p-img {
        height: 240px;
    }

    .cta-btns {
        flex-direction: column;
    }

    .cta-btn {
        justify-content: center;
    }
}

/* === 新版4列页脚 2026-09-23 === */
.footer{background:#fafafa;color:#555;padding:70px 0 25px;border-top:1px solid #eee;}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:50px;margin-bottom:50px;}
.footer-col h4{font-size:16px;font-weight:700;color:#222;margin-bottom:20px;position:relative;padding-bottom:10px;}
.footer-col h4::after{content:'';position:absolute;bottom:0;left:0;width:24px;height:3px;background:linear-gradient(90deg,#660874,#a855f7);border-radius:2px;}
.footer-col ul{list-style:none;margin:0;padding:0;}
.footer-col ul li{margin-bottom:8px;}
.footer-col ul li a{color:#666;font-size:14px;text-decoration:none;transition:color .2s;}
.footer-col ul li a:hover{color:#660874;padding-left:6px;}
.footer-brand .footer-logo-img{height:75px;margin-bottom:16px;}
.footer-slogan{font-size:15px;color:#660874;font-weight:600;margin-bottom:10px;}
.footer-desc{font-size:13px;color:#888;line-height:1.8;}
.footer-contact-list p{font-size:13px;color:#666;margin-bottom:8px;}
.footer-contact-list i{color:#660874;margin-right:8px;width:16px;}
.footer-social{margin-top:15px;}
.footer-social .social-icon{width:38px;height:38px;border-radius:50%;background:#e8e0ef;color:#660874;display:inline-flex;align-items:center;justify-content:center;margin-right:8px;font-size:14px;transition:all .3s;}
.footer-social .social-icon:hover{background:linear-gradient(135deg,#660874,#a855f7);color:#fff;transform:translateY(-3px);}
.footer-bottom{text-align:center;padding-top:20px;border-top:1px solid #eee;}
.footer-bottom p{font-size:13px;color:#999;}
