﻿.banner-container {
    width: 100%;
    margin: 0 auto;
}

.banner-img {
    width: 100%;
    max-width: 1920px;
    height: auto;
    margin: 0 auto; /* 宽屏时水平居中 */
    display: block;
}

.breadcrumb-nav-custom {
    padding-top: 0.5rem !important; /* 覆盖 Bootstrap 的 py-4 顶部内边距 */
    padding-bottom: 0.5rem !important;
    font-size: 12px;
}

/* 使内容内所有媒体自适应容器，避免超出列宽导致换行 */
.product-content img,
.product-content iframe,
.product-content embed,
.product-content video {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* 防止长单词或没有空格的字符导致宽度溢出 */
.product-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.title-container {
    display: flex;
    align-items: baseline;
    /*justify-content: center;*/
    gap: 15px;
    flex-wrap: wrap;
}

.products-title {
    font-weight: 700;
    line-height: 1.2;
}

.main-title {
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

    .main-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background-color: #3498db;
        border-radius: 2px;
    }

.sub-title {
    font-size: 1.2rem;
    color: #7f8c8d;
    letter-spacing: 3px;
    font-weight: 500;
}

/* 产品卡片悬停样式 */
.product-card {
    border: 2px solid #e9ecef; /* 默认灰色边框，非悬停时保留 */
    transition: border-color .15s ease, box-shadow .15s ease;
    box-shadow: none;
}

.product-card:hover,
.product-card:focus-within {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

/* 确保卡片内链接不改变布局 */
a.text-decoration-none .product-card {
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .title-container {
        gap: 5px;
    }

    .main-title {
        font-size: 2rem;
    }

    .sub-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.2rem;
    }

    .sub-title {
        font-size: 0.7rem;
    }
}