/* 放大器二级产品页面样式 */

/* 面包屑导航样式 */
.breadcrumb {
    background-color: white;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.9rem;
    color: #333;
}

.breadcrumb a {
    color: #0067b9;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Banner区域样式 */
.product-banner {
    background-color: #0067b9;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    background-size: 60px 60px, 80px 80px, 100px 100px, 120px 120px, 100% 100%, 100% 100%;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.product-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.product-banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 600;
    position: relative;
}

.product-banner-content h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: white;
    opacity: 0.7;
}

.product-banner-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 30px;
}

.show-more {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 10px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.show-more:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.show-more:active {
    transform: translateY(0);
}

.subcategory-link {
    color: #0067b9;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.subcategory-link:hover {
    color: #004f8c;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb .container {
        font-size: 0.85rem;
    }

    .product-banner {
        padding: 60px 0;
    }

    .product-banner-content h1 {
        font-size: 2rem;
    }

    .product-banner-content p {
        font-size: 1rem;
    }

    .show-more {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        padding: 8px 0;
    }

    .product-banner {
        padding: 40px 0;
    }

    .product-banner-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .product-banner-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
}

/* 子分类部分样式 */
.subcategories {
    padding: 60px 0;
    background-color: white;
}

.subcategories .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.subcategories h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.subcategory-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 150px;
}

.subcategory-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #9063cd;
}

.subcategory-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.subcategory-item:hover .subcategory-header {
    background-color: #fafafa;
}

.subcategory-header .icon {
    margin-right: 15px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #9063cd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.subcategory-header h3 a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex-grow: 1;
}

.expand-btn {
    background: none;
    border: none;
    color: #9063cd;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    padding: 5px;
    border-radius: 4px;
}

.expand-btn:hover {
    background-color: rgba(144, 99, 205, 0.1);
}

.expand-btn.expanded {
    transform: rotate(180deg);
    color: #9063cd;
}

.subcategory-content {
    max-height: 72px;
    overflow: hidden;
    padding: 0 20px 15px;
    transition: all 0.3s ease;
    background-color: white;
    position: relative;
}

.subcategory-content.expanded {
    max-height: 400px;
}

.subcategory-item.expanded {
  height: auto;
  min-height: 150px;
}

.subcategory-content.expanded .description-text {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
}

.description-text {
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.subcategory-content p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
    white-space: normal;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .subcategories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .subcategories {
        padding: 40px 0;
    }
    
    .subcategories h2 {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .subcategories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .subcategory-header {
        padding: 15px;
    }
    
    .subcategory-header h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .subcategories {
        padding: 30px 0;
    }
    
    .subcategories h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
}