/* 产品列表页样式 */

/* 面包屑导航 */
.breadcrumb-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #4a90e2;
}

.breadcrumb-separator {
    color: #6c757d;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

/* 产品页面横幅 */
.product-hero {
    position: relative;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 50%, #667eea 100%);
    color: white;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.dna-animation {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
}

.dna-strand {
    position: absolute;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ffd700, transparent);
    border-radius: 2px;
    animation: dnaRotate 8s linear infinite;
}

.dna-strand:nth-child(2) {
    left: 20px;
    animation-delay: -4s;
}

@keyframes dnaRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.molecule-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 80%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 85%; animation-delay: -2s; }
.particle:nth-child(3) { top: 40%; left: 75%; animation-delay: -4s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.product-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-item img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tech-circle {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 60px;
    height: 60px;
    border: 2px solid #ffd700;
    border-radius: 50%;
    animation: techPulse 3s ease-in-out infinite;
}

.tech-line {
    position: absolute;
    bottom: 30%;
    left: 10%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, transparent);
    animation: techSlide 4s ease-in-out infinite;
}

.tech-dot {
    position: absolute;
    top: 70%;
    right: 20%;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    animation: techBlink 2s ease-in-out infinite;
}

@keyframes techPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes techSlide {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(20px); opacity: 1; }
}

@keyframes techBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 主要内容区域 */
.main-content {
    padding: 1rem 0 3rem 0;
    background: #f8f9fa;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* 左侧产品分类导航 */
.product-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 90px; /* 考虑固定导航栏高度70px + 额外间距20px */
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}
.category-nav{
    margin-top: 5px !important;
    margin-left: 1px !important;
}
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link:hover,
.category-item.active .category-link {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    transform: translateX(4px);
}

.category-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.category-toggle {
    font-weight: 700;
    font-size: 1.1rem;
}

.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.subcategory-list.expanded {
    max-height: 500px;
    background-color: #ffffff;
}
.subcategory-item a{
    padding: 8px 25px;
}

.subcategory-item {
    margin-bottom: 0.25rem;
}

.subcategory-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.subcategory-link:hover,
.subcategory-item.active .subcategory-link {
    background: #e9ecef;
    color: #2c5aa0;
    transform: translateX(4px);
}

/* 右侧产品列表 */
.product-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}



.list-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.list-description {
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
}

.stat-badge {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stat-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 产品容器 */
.product-container {
    margin-bottom: 3rem;
}

/* 条形列表视图 */
.product-list-view {
    display: block;
}

.product-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.2rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
}

.product-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2c5aa0;
    transform: translateY(-2px);
}

.product-list-item .product-image {
    flex-shrink: 0;
    width: 180px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.product-list-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-list-item:hover .product-image img {
    transform: scale(1.05);
}

.product-list-item .product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.product-list-item .product-badge:not(.new):not(.recommended) {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.product-list-item .product-badge.new {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.product-list-item .product-badge.recommended {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.product-list-item .product-info {
    flex: 1;
    min-width: 0;
}

.product-header {
    margin-bottom: 0.8rem;
}

.product-list-item .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-list-item .product-title a{
    text-decoration: none;
    color: #2c5aa0;
}
.product-list-item .product-title a:hover{
    color: #1d3c6a;
}  
.product-list-item .product-code {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.product-details {
    margin-bottom: 0.8rem;
}

.product-list-item .product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}

.product-list-item .spec-item {
    color: #495057;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.product-list-item .spec-item strong {
    color: #2c5aa0;
}

.product-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-list-item .product-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    min-width: 180px;
}

.product-list-item .product-price {
    text-align: right;
}

.product-list-item .price-current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b35;
    display: block;
}

.action-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.product-list-item .btn-detail,
.product-list-item .btn-consult {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    white-space: nowrap;
}

.product-list-item .btn-detail {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    text-decoration: none;
}
.product-list-item .btn-detail:hover {
    background: linear-gradient(135deg, #4a90e2, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(44, 90, 160, 0.3);
}

.product-list-item .btn-consult {
    background: white;
    color: #ff6b35;
    border: 2px solid #ff6b35;
    text-decoration: none;
}

.product-list-item .btn-consult:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(255, 107, 53, 0.3);
}


/* SEO相关内容 */
.seo-content {
    background: white;
    padding: 3rem 0;
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.seo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #ffd700;
    display: inline-block;
}

.news-list,
.video-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item,
.video-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.news-item:hover,
.video-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-image,
.video-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.news-image img,
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(44, 90, 160, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.news-content,
.video-content {
    flex: 1;
}

.news-title,
.video-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-excerpt,
.video-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta,
.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.news-category {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-sidebar {
        position: static;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-hero {
        padding: 2rem 0;
        margin-top: 4rem;
        padding-bottom:4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-list-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .list-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    .product-list-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-list-item .product-image {
        width: 100%;
        height: 200px;
        align-self: center;
        max-width: 300px;
    }
    
    .product-list-item .product-actions {
        width: 100%;
        align-items: stretch;
        min-width: auto;
    }
    
    .product-list-item .product-price {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .action-buttons {
        justify-content: stretch;
    }
    
    .product-list-item .btn-cart,
    .product-list-item .btn-inquiry,
    .product-list-item .btn-compare {
        flex: 1;
        text-align: center;
    }
    

    .news-item,
    .video-item {
        flex-direction: column;
    }
    
    .news-image,
    .video-thumbnail {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem 0;
    }
    
    .product-main {
        padding: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
} 