/* 产品列表页样式表 */
/* 页面内部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;
    background-color: #f5f7fa;
}

.tenglong-product-list-container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 筛选工具栏 */
.tenglong-filter-toolbar {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tenglong-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.tenglong-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenglong-filter-label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.tenglong-filter-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 150px;
}

.tenglong-filter-select:hover {
    border-color: #007bff;
}

.tenglong-filter-select:focus {
    outline: none;
    border-color: #007bff;
}

.tenglong-search-box {
    display: flex;
    gap: 10px;
}

.tenglong-search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 250px;
    transition: border-color 0.3s;
}

.tenglong-search-input:focus {
    outline: none;
    border-color: #007bff;
}

.tenglong-search-btn {
    padding: 8px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.tenglong-search-btn:hover {
    background-color: #0056b3;
}

.tenglong-reset-btn {
    padding: 8px 20px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.tenglong-reset-btn:hover {
    background-color: #5a6268;
}

/* 产品列表 */
.tenglong-product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* 产品卡片 */
.tenglong-product-card {
    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;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.tenglong-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 产品图片区域 */
.tenglong-product-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tenglong-product-images {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    max-width: 100%;
}

.tenglong-product-card:hover .tenglong-product-images {
    transform: scale(1.1);
}

.tenglong-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #007bff;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tenglong-product-badge.new {
    background-color: #28a745;
}

.tenglong-product-badge.hot {
    background-color: #dc3545;
}

/* 产品信息区域 */
.tenglong-product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tenglong-product-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 产品详细信息 */
.tenglong-product-details {
    flex-grow: 1;
}

.tenglong-detail-item {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.tenglong-detail-item:last-child {
    border-bottom: none;
}

.tenglong-detail-label {
    flex-shrink: 0;
    width: 90px;
    color: #666;
    font-weight: 500;
}

.tenglong-detail-value {
    flex: 1;
    color: #333;
    word-break: break-word;
}

/* 产品特性标签 */
.tenglong-product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.tenglong-feature-tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* 查看详情按钮 */
.tenglong-view-detail-btn {
    margin-top: 15px;
    padding: 10px 0;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tenglong-view-detail-btn:hover {
    background-color: #0056b3;
}

.tenglong-view-detail-btn i {
    transition: transform 0.3s;
}

.tenglong-view-detail-btn:hover i {
    transform: translateX(3px);
}

/* 无数据提示 */
.tenglong-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.tenglong-no-data i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.tenglong-no-data p {
    font-size: 1.1rem;
    margin: 0;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .tenglong-product-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .tenglong-inner-banner {
        height: 280px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 2rem;
    }
    
    .tenglong-product-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .tenglong-filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tenglong-filter-group {
        width: 100%;
    }
    
    .tenglong-filter-select,
    .tenglong-search-input {
        width: 100%;
    }
    
    .tenglong-search-box {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .tenglong-inner-banner {
        height: 220px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 1.8rem;
    }
    
    .tenglong-product-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .tenglong-product-image-wrapper {
        height: 180px;
    }
    
    .tenglong-detail-label {
        width: 80px;
        font-size: 0.85rem;
    }
    
    .tenglong-detail-value {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .tenglong-inner-banner {
        height: 180px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 1.5rem;
    }
    
    .tenglong-inner-banner-subtitle {
        font-size: 0.9rem;
    }
    
    .tenglong-main-content {
        padding: 30px 0;
    }
    
    .tenglong-product-list {
        grid-template-columns: 1fr;
    }
    
    .tenglong-filter-toolbar {
        padding: 15px;
    }
    
    .tenglong-product-name {
        font-size: 1.1rem;
    }
}

/* 加载动画 */
.tenglong-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.tenglong-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 产品详情模态框样式 */
.tenglong-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.tenglong-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

.tenglong-close-modal {
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.tenglong-close-modal:hover,
.tenglong-close-modal:focus {
    color: #ff4444;
    background: #fff;
    transform: scale(1.1);
}

#tenglong-productDetailContent {
    padding: 30px;
}

#tenglong-productDetailContent h2 {
    color: #2c5282;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.tenglong-product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 20px;
}

.tenglong-product-detail-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tenglong-product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tenglong-product-detail-info p {
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 16px;
    line-height: 1.5;
}

.tenglong-product-detail-info p:last-child {
    border-bottom: none;
}

.tenglong-product-detail-info strong {
    color: #2d3748;
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}

.tenglong-product-detail-info .tenglong-product-features {
    margin-top: 20px !important;
    padding-top: 20px !important;
}

.tenglong-product-detail-info .tenglong-product-features .tenglong-feature-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 5px 5px 5px 0;
    font-weight: 500;
}

/* 模态框动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 模态框响应式设计 */
@media (max-width: 768px) {
    .tenglong-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .tenglong-product-detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tenglong-product-detail-image {
        height: 250px;
    }
    
    #tenglong-productDetailContent {
        padding: 20px;
    }
    
    #tenglong-productDetailContent h2 {
        font-size: 24px;
    }
    
    .tenglong-product-detail-info p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tenglong-modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    #tenglong-productDetailContent {
        padding: 15px;
    }
    
    .tenglong-close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

/* ========== 分页导航详细样式 ========== */
.tenglong-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 4px; }
.pagination > li {
    display: inline; }
.pagination > li > a,
.pagination > li > span {
    position: relative;
    float: left;
    padding: 6px 12px;
    line-height: 1.42857;
    text-decoration: none;
    color: #337ab7;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px; }
.pagination > li:first-child > a,
.pagination > li:first-child > span {
    margin-left: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px; }
.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px; }
.pagination > li > a:hover, .pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
    z-index: 2;
    color: #23527c;
    background-color: #eeeeee;
    border-color: #ddd; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
    z-index: 3;
    color: #fff;
    background-color: #337ab7;
    border-color: #337ab7;
    cursor: default; }



