/* 二级导航样式文件 */

/* 二级导航样式 - 简洁风格 */
.secondary-nav-tabs .nav-pills a.nav-link.current-active{
    background: transparent;
    color: #4285f4;
    text-decoration: none;
}
.secondary-nav-section {
    background: #f5f5f5;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.secondary-nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0;
}

.secondary-nav-tabs .nav {
    background: transparent;
    border-radius: 0;
    gap: 60px;
    flex-wrap: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
}

.secondary-nav-tabs .nav-pills .nav-item {
    margin: 0;
}

.secondary-nav-tabs .nav-pills .nav-link {
    background: transparent;
    border: none;
    color: #999999;
    margin: 0;
    border-radius: 0;
    padding: 12px 0;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: auto;
}

.secondary-nav-tabs .nav-pills .nav-link:hover {
    background: transparent;
    color: #4285f4;
    text-decoration: none;
}

.secondary-nav-tabs .nav-pills .nav-link.active {
    background: transparent;
    color: #4285f4;
    border: none;
    font-weight: 500;
}

.secondary-nav-tabs .nav-pills .nav-link.active:hover {
    background: transparent;
    color: #4285f4;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .secondary-nav-tabs .nav {
        gap: 50px;
    }
}

@media (max-width: 991.98px) {
    .secondary-nav-tabs .nav {
        gap: 40px;
    }
    
    .secondary-nav-tabs .nav-pills .nav-link {
        font-size: 15px;
        padding: 10px 0;
    }
}

@media (max-width: 767.98px) {
    .secondary-nav-section {
        padding: 0;
    }

    .secondary-nav-tabs {
        padding: 12px 20px;
    }

    .secondary-nav-tabs .nav {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .secondary-nav-tabs .nav-pills .nav-link {
        font-size: 14px;
        padding: 8px 0;
    }
}

@media (max-width: 480px) {
    .secondary-nav-tabs {
        padding: 10px 15px;
    }

    .secondary-nav-tabs .nav {
        gap: 15px;
    }

    .secondary-nav-tabs .nav-pills .nav-link {
        font-size: 13px;
        padding: 6px 0;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.secondary-nav-tabs .nav-pills .nav-item {
    animation: slideIn 0.3s ease-out;
}

.secondary-nav-tabs .nav-pills .nav-item:nth-child(1) { animation-delay: 0.1s; }
.secondary-nav-tabs .nav-pills .nav-item:nth-child(2) { animation-delay: 0.2s; }
.secondary-nav-tabs .nav-pills .nav-item:nth-child(3) { animation-delay: 0.3s; }
.secondary-nav-tabs .nav-pills .nav-item:nth-child(4) { animation-delay: 0.4s; }
.secondary-nav-tabs .nav-pills .nav-item:nth-child(5) { animation-delay: 0.5s; }
.secondary-nav-tabs .nav-pills .nav-item:nth-child(6) { animation-delay: 0.6s; }

/* 产品页面样式 */
/* 面包屑导航样式 */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 14px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #012fa7;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #012fa7;
    font-weight: 500;
}

/* 产品侧边栏样式 */
.product-sidebar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-header {
    background: #012fa7;
    color: white;
    padding: 1.5rem 1.5rem;
    text-align: center;
}

.sidebar-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-nav {
    padding: 1rem 0;
    background: #fff;
}

.sidebar-nav .nav-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.sidebar-nav .nav-item:last-child {
    border-bottom: none;
}

.sidebar-nav .nav-item:hover {
    background: #f8f9fa;
    color: #012fa7;
}

.sidebar-nav .nav-item.active {
    background: #012fa7;
    color: white;
}

.sidebar-nav .nav-item.active .nav-arrow {
    color: white;
}

.nav-title {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.nav-arrow {
    font-size: 12px;
    color: #6c757d;
    transition: transform 0.3s ease;
}

.sidebar-nav .nav-item:hover .nav-arrow {
    transform: translateX(-3px);
    color: #012fa7;
}

.sidebar-nav .nav-item.active .nav-arrow {
    transform: translateX(-3px);
}

/* 产品网格布局 */
.products-section {
    background: #f8f9fa;
}

.products-grid {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 产品卡片样式 */
.product-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #012fa7;
}

.product-image {
    position: relative;
    padding-top: 75%; /* 4:3 纵横比 */
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    text-align: center;
    min-height: 2.8rem; /* 确保标题高度一致 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .products-grid {
        padding: 1.5rem;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .sidebar-nav .nav-item {
        padding: 0.75rem 1rem;
    }
    
    .nav-title {
        font-size: 13px;
    }
    
    .products-grid {
        padding: 1rem;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 0.85rem;
        min-height: 2.4rem;
    }
}

@media (max-width: 575.98px) {
    .product-card {
        margin-bottom: 1rem;
    }
    
    .sidebar-title {
        font-size: 1rem;
    }
    
    .sidebar-nav .nav-item {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-title {
        font-size: 12px;
    }
}