/* 产品展示页样式表 */

/* 页面内部Banner */
.tenglong-inner-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tenglong-inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/pro.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.tenglong-inner-banner-content {
    position: relative;
    z-index: 1;
    text-align: right !important;
    color: #fff;
    padding-right: 100px;
    padding-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
}

.tenglong-inner-banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    border-bottom: 3px solid #ff0000;
    padding-bottom: 10px;
}

.tenglong-inner-banner-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.95;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}


/* 主内容区域 */
.tenglong-main-content {
    padding: 60px 0;
}

/* 产品分类和搜索区域 */
.tenglong-product-filter-section {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.tenglong-product-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tenglong-filter-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tenglong-category-dropdown {
    position: relative;
}

.tenglong-category-btn {
    background-color: #1a365d;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 220px;
    transition: background-color 0.3s;
}

.tenglong-category-btn:hover {
    background-color: #234a7d;
}

.tenglong-category-btn span {
    flex: 1;
    text-align: left;
}

.tenglong-category-btn i {
    margin-left: 10px;
    font-size: 12px;
    transition: transform 0.3s;
}

.tenglong-category-dropdown:hover .tenglong-category-btn i {
    transform: rotate(90deg);
}

.tenglong-category-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.tenglong-category-dropdown:hover .tenglong-category-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tenglong-category-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.tenglong-category-item:hover {
    background-color: #f5f5f5;
    color: #1a365d;
    padding-left: 25px;
}

.tenglong-filter-right {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
}

.tenglong-product-search {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tenglong-search-input-field {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-right: none;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.tenglong-search-input-field:focus {
    border-color: #1a365d;
}

.tenglong-search-input-field::placeholder {
    color: #999;
}

.tenglong-search-btn {
    background-color: #1a365d;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.tenglong-search-btn:hover {
    background-color: #234a7d;
}

.tenglong-search-btn i {
    font-size: 16px;
}

/* 产品展示区域 */
.tenglong-product-showcase {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.tenglong-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.tenglong-pro-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.tenglong-pro-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
}

.tenglong-pro-subtitle {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 产品网格 */
.tenglong-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* 产品卡片链接样式 */
.tenglong-product-category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tenglong-product-category-link:hover,
.tenglong-product-category-link:focus,
.tenglong-product-category-link:active {
    text-decoration: none;
    color: inherit;
}

/* 产品类别卡片 */
.tenglong-product-category {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tenglong-product-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tenglong-product-image {
    position: relative;
    overflow: hidden;
}

.tenglong-product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s;
}

.tenglong-product-category:hover .tenglong-product-image img {
    transform: scale(1.1);
}

.tenglong-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.tenglong-product-category:hover .tenglong-product-overlay {
    opacity: 1;
}

.tenglong-overlay-content {
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s;
}

.tenglong-product-category:hover .tenglong-overlay-content {
    transform: scale(1);
}

.tenglong-product-info {
    padding: 20px;
    padding-top: 15px;
}

.tenglong-product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    text-align: center;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tenglong-product-title-center {
    text-align: center;
}

.tenglong-product-desc {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.6;
    text-align: center;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.tenglong-category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background-color: #f8f9fa;
    border-radius: 25px;
    border: 2px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.tenglong-category-link i {
    margin-left: 8px;
    transition: transform 0.3s;
    font-size: 0.85rem;
}

.tenglong-category-link:hover {
    color: #fff;
    background-color: var(--color-primary);
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.tenglong-category-link:hover i {
    transform: translateX(5px);
}

.tenglong-category-link-full {
    width: 100%;
    justify-content: center;
}

.tenglong-product-img-responsive {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tenglong-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tenglong-category-btn {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .tenglong-inner-banner {
        height: 280px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 2rem;
    }
    
    .tenglong-inner-banner-subtitle {
        font-size: 1rem;
    }
    
    .tenglong-product-grid {
        gap: 20px;
    }
    
    .tenglong-product-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tenglong-filter-left {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tenglong-filter-right {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .tenglong-inner-banner {
        height: 220px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 1.8rem;
    }
    
    .tenglong-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tenglong-pro-title {
        font-size: 1.8rem;
    }
    
    .tenglong-pro-subtitle {
        font-size: 1rem;
    }
    
    .tenglong-product-filter-section {
        padding: 0 15px;
    }
    
    .tenglong-category-btn {
        min-width: 100%;
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .tenglong-filter-left {
        flex-direction: column;
        gap: 10px;
    }
    
    .tenglong-search-input-field {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .tenglong-search-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .tenglong-inner-banner {
        height: 180px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 1.5rem;
    }
    
    .tenglong-product-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tenglong-pro-title {
        font-size: 1.5rem;
    }
    
    .tenglong-category-btn {
        font-size: 12px;
    }
    
    .tenglong-category-item {
        font-size: 13px;
        padding: 8px 15px;
    }
}