/* 产品中心页面样式 */

/* ==================== 页面过渡效果 ==================== */
body {
    transition: opacity 0.15s ease;
}

/* 滚动渐入动画 */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 产品卡片动画延迟 */
.product-card.fade-in-up:nth-child(1) { transition-delay: 0s; }
.product-card.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.product-card.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.product-card.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.product-card.fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.product-card.fade-in-up:nth-child(6) { transition-delay: 0.5s; }
.product-card.fade-in-up:nth-child(7) { transition-delay: 0.6s; }
.product-card.fade-in-up:nth-child(8) { transition-delay: 0.7s; }

/* 区块标题动画 */
.section-header.fade-in-up {
    transition-delay: 0s;
}

/* 页面横幅区域 */
.product-banner {
    width: 100%;
    height: 100vh;
    min-height: 700px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.product-banner .banner-image {
    width: 100%;
    height: 100%;
}

.product-banner .banner-image img {
    width: 100%;
    height: 82%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* 产品中心内容区域 */
.product-content {
    padding: 10px 0;
    background: #fff;
    overflow: visible;
    position: relative;
}

.product-content .container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    margin-left: 207px;
    padding: 0 40px;
    position: relative;
}


/* 右侧固定目录 */
.product-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    width: 180px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    flex-shrink: 0;
    order: 2;
    margin-right: -43px;
    align-self: flex-start;
    padding-top: 90px;
    padding-left: 35px;
    padding-bottom: 20px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    will-change: transform;
}

/* 侧边栏自定义滚动条 */
.product-sidebar::-webkit-scrollbar {
    width: 4px;
}

.product-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.product-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.product-sidebar::-webkit-scrollbar-thumb:hover {
    background: #076e72;
}


.product-sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-left: 1px dashed #ccc;
    pointer-events: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
}

.sidebar-item {
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 30px;
    text-align: center;
    background: #fff;
    border: 1px solid transparent;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item:hover {
    background: #f5f5f5;
    color: #076e72;
}

.sidebar-item.active {
    background: #076e72;
    color: #fff;
    border: 1px solid #076e72;
}

.sidebar-text {
    display: block;
    line-height: 1.4;
    font-size: 14px;
    font-family: "Source Han Sans", "思源黑体", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-weight: 400;
}

/* 产品展示主区域 */

.product-main {
    flex: 1;
    min-width: 0;
    order: 1;
}

/* 产品区块 */
.product-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.product-section:last-child {
    margin-bottom: 0;
}

/* 区块标题 */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 37px;
    margin-top: 50px;
    margin-left: 6px;
}

.section-icon {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin-top:10px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: "Noto Sans SC", "Source Han Sans", "思源黑体", "Microsoft YaHei", sans-serif;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 产品卡片 */
.product-card {
    background: rgba(255, 255, 255, 1);
    overflow: hidden;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.08);
}

.product-card:hover .product-name {
    color: rgba(8, 110, 114, 1);
}

.product-card:hover .product-more {
    color: rgba(8, 110, 114, 1);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(255, 255, 255, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    padding: 0 16px 4px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    font-family: "Noto Sans SC", "Source Han Sans", "思源黑体", "Microsoft YaHei", sans-serif;
}

.product-desc {
    padding: 0 16px;
    margin: 0;
    font-size: 14px !important;
    font-weight: 400;
    color: rgba(153, 153, 153, 1) !important;
    text-align: center;
    margin-bottom: 20px;
    font-family: "Noto Sans SC", "Source Han Sans", "思源黑体", "Microsoft YaHei", sans-serif;
}

.product-more {
    display: block;
    padding: 42px 16px 20px;
    margin: 0;
    font-size: 16px;
    font-weight:500;
    color: rgba(51, 51, 51, 1);
    text-align: center;
    text-decoration: none;
    font-family: "Noto Sans SC", "Source Han Sans", "思源黑体", "Microsoft YaHei", sans-serif;
}

/* ==================== 产品内容区域响应式适配 ==================== */
@media screen and (max-width: 1200px) {
    .product-content .container {
        padding: 0 30px;
        margin-left: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 992px) {
    .product-content .container {
        flex-direction: column;
        padding: 0 20px;
        margin-left: auto;
    }
    
    .breadcrumb-wrapper .breadcrumb {
        margin-left: 20px;
        padding: 0 20px;
    }
    
    .product-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 30px;
        order: 0;
        padding-top: 20px;
        padding-left: 20px;
        overflow-y: visible;
        overflow-x: visible;
    }
    
    .product-main {
        order: 1;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sidebar-item {
        flex: 1;
        min-width: 140px;
        padding: 12px 16px;
        margin-bottom: 0;
        text-align: center;
        background: #fff;
        border: 1px solid #e0e0e0;
    }
    
    .sidebar-item:hover {
        background: #f5f5f5;
        color: #076e72;
    }
    
    .sidebar-item.active {
        background: #076e72;
        color: #fff;
        border: 1px solid #076e72;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-section {
        scroll-margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    .product-banner {
        margin-top: 60px;
        height: auto;
        min-height: 300px;
    }
    
    .product-content {
        padding: 40px 0;
    }
    
    .breadcrumb-wrapper .breadcrumb {
        margin-left: 20px;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-icon {
        width: 28px;
        height: 28px;
    }
    
    .sidebar-item {
        padding: 12px 16px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-name {
        padding: 12px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .product-content .container {
        padding: 0 15px;
    }
    
    .breadcrumb-wrapper .breadcrumb {
        margin-left: 15px;
        padding: 0 15px;
    }
    
    .sidebar-menu {
        flex-direction: column;
    }
    
    .sidebar-item {
        min-width: auto;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 14px;
    color: rgba(51, 51, 51, 1);
}

.breadcrumb-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 面包屑导航容器 */
.breadcrumb-wrapper {
    background: #fff;
    padding: 0;
    margin-top: -140px;
    position: relative;
    z-index: 10;
}

.breadcrumb-wrapper .breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    margin-left: 207px;
    padding: 14px 54px;
    margin-bottom: 0;
}

.breadcrumb-link {
    color: rgba(51, 51, 51, 1);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: rgba(8, 110, 114, 1);
}

.breadcrumb-link:active {
    color: rgba(8, 110, 114, 1);
}

.breadcrumb-link.active {
    color: rgba(51, 51, 51, 1);
    cursor: default;
}

.breadcrumb-link.active:hover {
    color: rgba(8, 110, 114, 1);
}

.breadcrumb-separator {
    color: #999;
    margin: 0 2px;
}

.breadcrumb-icon-img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 4px;
}

.breadcrumb-text {
    color: #666;
}

/* 导航栏产品中心高亮 */
.nav-menu li a.active {
    color: rgba(8, 110, 114, 1);
}

/* 页脚社交图标样式 */
.footer-social-section .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-section .social-item {
    position: relative;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.footer-social-section .social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-social-section .qr-popup {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

.footer-social-section .qr-popup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-social-section .social-item:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
