/* 产品展示页面样式 */

/* 产品筛选按钮 */
.product-filters {
    padding: 1.5rem 0;
}

.btn-filter {
    padding: 0.5rem 1.25rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-filter:hover {
    background-color: #10b981;
    color: #fff;
    border-color: #10b981;
    transform: translateY(-2px);
}

.btn-filter.active {
    background-color: #10b981;
    color: #fff;
    border-color: #10b981;
}

/* 产品卡片 */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.product-image {
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image img {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-badge {
    z-index: 2;
}

.product-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.product-title {
    font-size: 1.1rem;
    color: #212529;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-subtitle {
    font-size: 0.85rem;
    min-height: 1.5rem;
}

.product-features {
    flex-grow: 1;
}

.product-features li {
    color: #6c757d;
}

.product-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* 产品页面营销内容 */
.product-marketing-section {
    padding: 80px 0;
    background: white;
}

.product-marketing-section.bg-light {
    background: #f8f9fa;
}

.product-marketing-title {
    text-align: center;
    margin-bottom: 50px;
}

.product-marketing-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

.product-marketing-title p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* 问题卡片网格 - 3列布局（6个卡片，每行3个） */
.product-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-problem-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.product-problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-problem-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-problem-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.product-problem-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* 优势卡片网格 - 3列布局（6个卡片，每行3个） */
.product-advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-advantage-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}

.product-advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.product-advantage-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
}

.product-advantage-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* 图文混排布局 */
.product-intro-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.product-intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-intro-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.product-intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
    margin-bottom: 20px;
}

/* 产品排序 */
.product-sort select {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
}

/* 产品隐藏动画 */
.product-item {
    animation: fadeIn 0.5s ease;
}

.product-item.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品页面营销内容 */
.product-marketing-section {
    padding: 80px 0;
    background: white;
}

.product-marketing-section.bg-light {
    background: #f8f9fa;
}

.product-marketing-title {
    text-align: center;
    margin-bottom: 50px;
}

.product-marketing-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

.product-marketing-title p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* 问题卡片网格 - 3列布局（6个卡片，每行3个） */
.product-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-problem-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
}

.product-problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-problem-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-problem-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.product-problem-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* 优势卡片网格 - 3列布局（6个卡片，每行3个） */
.product-advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-advantage-card {
    background: white;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.product-advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #10b981;
}

.product-advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.product-advantage-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
}

.product-advantage-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* 图文混排布局 */
.product-intro-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.product-intro-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-intro-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.product-intro-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
}

.product-intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .product-problem-grid,
    .product-advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-intro-with-image {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-filters {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .btn-filter {
        margin-bottom: 0.5rem;
    }
    
    .product-sort {
        margin-top: 1rem;
        width: 100%;
    }
    
    .product-sort select {
        width: 100% !important;
    }
    
    .product-problem-grid,
    .product-advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .product-marketing-section {
        padding: 60px 0;
    }
    
    .product-marketing-title h2 {
        font-size: 1.8rem;
    }
}

/* 覆盖 Bootstrap 蓝色 primary 配色 - 改为绿色系 */
.text-primary {
    color: #10b981 !important;
}

.bg-primary {
    background-color: #10b981 !important;
}

.btn-primary,
.btn-outline-primary {
    background-color: #10b981;
    border-color: #10b981;
    color: #fff;
}

.btn-primary:hover,
.btn-outline-primary:hover {
    background-color: #059669;
    border-color: #059669;
    color: #fff;
}

.btn-outline-primary {
    background-color: transparent;
    color: #10b981;
}

.btn-outline-primary:hover {
    background-color: #10b981;
    color: #fff;
}

/* 国产产品页面专用配色 - 非蓝色系（绿色主题） */
/* 产品介绍标题 - 绿色 */
.product-intro-content h2 {
    color: #10b981;
}

.product-intro-content h2 .gradient-text {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 营销标题 - 绿色 */
.product-marketing-title h2 {
    color: #10b981;
}

/* 产品分页导航样式 */
.product-pagination-wrapper {
    margin-top: 50px;
    padding: 20px 0;
}

.product-pagination {
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.product-pagination .page-item {
    margin: 0 4px;
    display: inline-block;
}

.product-pagination .page-link {
    display: inline-block;
    padding: 12px 20px;
    min-width: 44px;
    text-align: center;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #495057;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.product-pagination .page-link:hover {
    border-color: #10b981;
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.product-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    cursor: default;
}

.product-pagination .page-item.active .page-link:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.product-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #adb5bd;
}

.product-pagination .page-item.disabled .page-link:hover {
    transform: none;
    border-color: #e2e8f0;
    color: #adb5bd;
    background: #f8f9fa;
    box-shadow: none;
}

.product-pagination .page-link i {
    font-size: 0.85rem;
    vertical-align: middle;
}

/* 响应式设计 - 分页 */
@media (max-width: 768px) {
    .product-pagination-wrapper {
        margin-top: 30px;
        padding: 15px 0;
    }
    
    .product-pagination {
        gap: 5px;
    }
    
    .product-pagination .page-item {
        margin: 0 2px;
    }
    
    .product-pagination .page-link {
        padding: 10px 14px;
        min-width: 40px;
        font-size: 0.85rem;
    }
    
    .product-pagination .page-link i {
        font-size: 0.75rem;
    }
}

