/* Device Configuration CSS */

/* Banner Styles */
.device-banner {
    width: 100%;
    min-width: 1300px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Device Navigation */
.device-nav-container {
    width: 100%;
    min-width: 1300px;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.device-nav {
    width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85px;
    gap: 123px;
}

.device-nav-item {
    font-size: 18px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    position: relative;
    height: 85px;
    line-height: 85px;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.device-nav-item:hover,
.device-nav-item.active {
    font-size: 18px;
    font-weight: 400;
    color: rgba(1, 92, 171, 1);
}

.device-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 76px;
    height: 2px;
    background-color: rgba(23, 93, 173, 1);
}

/* Device Content */
.device-content-section {
    padding: 50px 0 80px 0;
    background-color: #fff;
    /* Based on image background looks white or very light grey */
    min-width: 1300px;
}

.device-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.device-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: 60px;
    text-align: center;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.device-card {
    padding: 15px 15px 34px 15px;
    background-color: #fff;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 16px rgba(23, 93, 173, 0.2);
}

.device-image {
    width: 100%;
    height: 160px;
    margin-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.device-name {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 23.76px;
    color: rgba(56, 56, 56, 1);
    text-align: center;
    white-space: nowrap;
    /* 禁止换行 */
    overflow: hidden;
    /* 超出隐藏 */
    text-overflow: ellipsis;
    /* 显示省略号 */
    margin-bottom: 18px;
}

.device-desc {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 24px;
    color: rgba(56, 56, 56, 0.7);
    text-align: center;
}

/* Related Equipment Section */
.related-equipment-section {
    padding: 40px 0 80px;
    background: rgba(245, 248, 251, 1);
    /* Slightly different background to separate sections */
    min-width: 1300px;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 39.59px;
    color: rgba(56, 56, 56, 1);
    text-align: center;
    margin-bottom: 44px;
}

.related-products-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.product-card {
    background-color: #fff;
    padding: 9px 55px 31px 55px;
    transition: transform 0.3s;
    width: calc(25% - 15px);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 21.12px;
    color: rgba(56, 56, 56, 1);
    text-align: center;
    white-space: nowrap;
    /* 禁止换行 */
    overflow: hidden;
    /* 超出隐藏 */
    text-overflow: ellipsis;
    /* 显示省略号 */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}