/* 分类导航栏 */
.category-nav {
    background: white;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.primary-categories {
    background: #666;
    padding: 0;
    margin: 0;
    display: flex;
    overflow-x: auto;
}

.primary-cat-item {
    background: #666;
    color: white;
    padding: 1rem 2rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    min-width: 140px;
    text-align: center;
    text-decoration: none;
}

.primary-cat-item:hover {
    background: #555;
}

.primary-cat-item.active {
    background: var(--primary-color);
    position: relative;
}

.primary-cat-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.secondary-categories {
    background: #f8f9fa;
    padding: 1.5rem 0;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.secondary-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    text-decoration: none;
    color: #666;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.secondary-cat-item:hover {
    border-color: #ccc;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.secondary-cat-item.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(28, 68, 179, 0.2);
}

.secondary-cat-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: #666;
    border: 1px solid #ddd;
    overflow: hidden;
}

.secondary-cat-item.active .secondary-cat-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-color: var(--primary-color);
}

.secondary-cat-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* 产品列表区域 */
.products-section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.product-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

.product-model {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-specs {
    margin-bottom: 1.5rem;
}

.spec-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.spec-label {
    color: #666;
    font-size: 0.9rem;
}

.spec-value {
    color: #ff8c00;
    font-weight: bold;
    font-size: 0.95rem;
}

.product-model-highlight {
    color: #ff8c00;
    font-weight: bold;
    float: right;
}

.products-notice {
    margin-top: 3rem;
    text-align: center;
}

.notice-content {
    background: #fff3cd;
    color: #856404;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    display: inline-block;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .primary-categories {
        justify-content: flex-start;
    }
    
    .primary-cat-item {
        min-width: 120px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .secondary-categories {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .secondary-cat-item {
        min-width: 100px;
        padding: 0.8rem;
    }
    
    .secondary-cat-image {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .secondary-cat-name {
        font-size: 0.8rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
