/* ===== 产品中心页面专用样式 ===== */

/* 英雄区域样式 */
.products-hero-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0056b3 0%, #004494 50%, #003875 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
    background-size: 120px 120px, 180px 180px, 240px 240px;
    animation: float 25s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
}

.hero-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.breadcrumb-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.breadcrumb-separator {
    color: rgba(255,255,255,0.6);
    font-weight: 300;
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

/* 侧边栏现代化样式 */
.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,86,179,0.1);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,86,179,0.12);
}

.sidebar-widget h5 {
    color: #0056b3;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #0056b3;
    font-weight: 600;
    font-size: 1.25rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid transparent;
}

.category-list a:hover {
    color: #0056b3;
    background: rgba(0,86,179,0.05);
    border-color: rgba(0,86,179,0.2);
    transform: translateX(5px);
}

.category-list a.active {
    color: white;
    background: linear-gradient(135deg, #0056b3, #004494);
    box-shadow: 0 4px 15px rgba(0,86,179,0.3);
}

.contact-widget {
    background: linear-gradient(135deg, #0056b3, #004494);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.contact-widget h5 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.contact-widget .contact-info {
    position: relative;
    z-index: 1;
}

.contact-widget .contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-widget .btn {
    position: relative;
    z-index: 1;
    background: white;
    color: #0056b3;
    border: none;
    font-weight: 600;
}

.contact-widget .btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* 产品头部现代化样式 */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,86,179,0.1);
}

.results-info p {
    margin: 0;
    color: #495057;
    font-weight: 500;
}

.view-toggle {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.view-toggle .btn {
    border-radius: 0;
    border: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.view-toggle .btn.active {
    background: #0056b3;
    color: white;
}

/* 产品网格现代化样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0,86,179,0.1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,86,179,0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    font-size: 3rem;
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-featured {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,86,179,0.9), rgba(0,68,148,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    background: white;
    color: #0056b3;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay .btn {
    transform: translateY(0);
}

.product-overlay .btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-3px);
}

.product-content {
    padding: 2rem;
}

.product-category {
    margin-bottom: 0.75rem;
}

.product-category a {
    color: #0056b3;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.product-category a:hover {
    color: #004494;
}

.product-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.product-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #0056b3;
}

.product-model {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.product-summary {
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,86,179,0.1);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0056b3;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.product-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-actions .btn-primary {
    background: linear-gradient(135deg, #0056b3, #004494);
    border: none;
}

.product-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,86,179,0.3);
}

.product-actions .btn-outline-primary {
    border: 2px solid #0056b3;
    color: #0056b3;
    background: transparent;
}

.product-actions .btn-outline-primary:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* 无产品状态 */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.no-products i {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.no-products h4 {
    color: #495057;
    margin-bottom: 1rem;
}

.no-products p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 分页现代化样式 */
.pagination-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    background: white;
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,86,179,0.1);
}

.pagination .page-link {
    color: #0056b3;
    border: none;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0056b3, #004494);
    color: white;
    box-shadow: 0 2px 8px rgba(0,86,179,0.3);
}

.pagination .page-link:hover {
    color: #0056b3;
    background: rgba(0,86,179,0.1);
    transform: translateY(-2px);
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .product-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
}

/* 产品信息容器样式 - 增强版 */
.product-card > .product-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    position: relative;
    z-index: 1;
    min-height: 250px;
    overflow: visible !important;
    background-color: white !important;
}

/* 产品标题样式 - 增强可见性 */
.product-card .product-info .product-title {
    display: block !important;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: break-word;
    position: relative;
    z-index: 10;
    height: auto !important;
    min-height: 50px;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: horizontal !important;
}

/* 英文界面标题显示优化 */
[lang="en"] .product-card .product-info .product-title {
    -webkit-line-clamp: 3;
    font-size: 1rem;
    min-height: auto;
    height: auto;
    margin-bottom: 12px;
    word-break: break-word;
    position: relative;
    z-index: 2;
}

/* 产品简介样式优化 */
.product-summary {
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 3;
    white-space: pre-wrap;
    flex-shrink: 0;
    text-align: left !important;
    left: 0 !important;
    right: auto !important;
}

/* 英文界面简介显示优化 - 强制左对齐 */
[lang="en"] .product-card .product-info .product-summary {
    line-height: 1.5;
    font-size: 0.85rem;
    margin-bottom: 18px;
    flex-shrink: 0;
    text-align: left !important;
    left: 0 !important;
    right: auto !important;
    position: relative;
    z-index: 2;
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: horizontal !important;
    width: 100% !important;
}

/* 产品卡片底部容器样式统一优化 */
.product-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0,86,179,0.05) !important;
    position: relative;
    z-index: 4;
    width: 100%;
    gap: 10px;
    background-color: white !important;
}

/* 英文界面产品卡片底部样式优化 */
[lang="en"] .product-footer {
    padding-top: 2px;
    position: relative;
    z-index: 4;
    background-color: white !important;
}

/* 产品链接按钮样式 - 强制显示和可点击 */
.product-card .product-info .product-footer .product-link {
    display: inline-block !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, #0056b3, #004494) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 15px !important;
    font-weight: 500 !important;
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
    transition: all 0.3s ease !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-width: 120px !important;
    text-align: center !important;
    white-space: nowrap !important;
    z-index: 1000 !important;
    position: relative !important;
    white-space: nowrap !important;
    min-width: 120px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.product-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0,86,179,0.2) !important;
    background: linear-gradient(135deg, #004494, #003875) !important;
}

/* 英文界面按钮显示优化 */
[lang="en"] .product-link {
    padding: 8px 16px !important;
    font-size: 0.75rem !important;
    max-width: 100% !important;
    min-width: 100px;
    z-index: 100 !important;
}