/* Product Center CSS */

/* Banner Styles */
.product-banner {
    width: 100%;
    min-width: 1300px;
    height: 600px;
    position: relative;
    overflow: hidden;
    background-image: url("../images/productCenter/banner.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
}

.banner-subtitle {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    opacity: 0.9;
}

.banner-title {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Product Navigation */
.product-nav-container {
    width: 100%;
    min-width: 1300px;
    background: rgba(245, 248, 251, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.product-nav {
    width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85px;
    gap: 107px;
}

.product-nav-item {
    font-size: 18px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    position: relative;
    /* padding: 0 10px; */
    white-space: nowrap;
    height: 85px;
    line-height: 85px;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-nav-item:hover,
.product-nav-item.active {
    color: rgba(1, 92, 171, 1);
    font-weight: bold;
}

.product-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 76px;
    height: 2px;
    background-color: rgba(23, 93, 173, 1);
}

/* Product Content */
.product-content-section {
    padding: 50px 0 60px 0;
    background: rgba(245, 248, 251, 1);
    min-width: 1300px;
}

.product-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.product-tab-content.active {
    display: block;
}

.category-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 39.59px;
    color: rgba(56, 56, 56, 1);
    margin-bottom: 45px;
    text-align: center;
}

/* Product Grid Styles (Adapted from style.css) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Fixed 4 columns to fit 1300px nicely */
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 43px;
}

.product-card {
    background-color: #fff;
    overflow: hidden;
    padding: 30px 45px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.product-card-bg {
    width: 315px;
    height: 315px;
    top: 0;
    left: 0;
    position: absolute;
    pointer-events: none;
    background-image: url('../images/index/project-bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 1;
    display: none;
}

.product-card:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 6px 16px rgba(23, 93, 173, 0.2);
}

.product-card:hover .product-card-bg {
    display: block;
}

.product-image {
    width: 220px;
    height: 220px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    position: relative;
    z-index: 2;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 26.4px;
    color: rgba(56, 56, 56, 1);
    text-align: center;
    white-space: nowrap;
    /* 禁止换行 */
    overflow: hidden;
    /* 超出隐藏 */
    text-overflow: ellipsis;
    /* 显示省略号 */
}
.product-btn {
    display: inline-block;
    width: 120px;
    height: 35px;
    opacity: 1;
    background: rgba(166, 166, 166, 0.1);
    margin-top: 45px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 35px;
    color: rgba(56, 56, 56, 0.5);
}
.product-btn:hover {
     background-color: #1e3a8a;
    color: #fff;
}

.product-btn i {
    padding-left: 5px;
}

/* View More Button */
.view-more-container {
    text-align: center;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more-btn {
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    display: inline-block;
    width: 150px;
    height: 50px;
    border: 0.5px solid rgba(0, 0, 0, 0.31);
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 19.8px;
    color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more-btn:hover {
    border-color: #1e3a8a;
    color: #2563eb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

