/* 自定义样式文件 */

.modal {
    overflow-y: auto !important;
}

.modal-open {
    overflow-y: scroll !important;
    padding-right: 0 !important;
}
.modal-backdrop {
    /* opacity: 0 !important;*/
    background-color: rgba(0, 0, 0, 0.5); /* 蓝色半透明背景 */ 
}

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    color: #333 !important;
}

.navbar-content {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 400;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    color: #333 !important;
    position: relative;
    text-decoration: none;
}

.navbar-nav .nav-link:hover {
    color: #000 !important;
    text-shadow: 0 0 0.5px #000000, 0 0 0.5px #000000; /* 视觉加粗效果 */
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 导航栏分隔符样式 */
.navbar-divider {
    color: #6c757d;
    padding: 0.2rem 1rem; /* 缩短竖线高度 */
    text-decoration: none;
    display: inline-block;
    cursor: default;
    user-select: none;
    vertical-align: bottom; /* 与用户图标底边对齐 */
    line-height: 1; /* 确保行高一致 */
    font-size: 1rem; /* 与导航链接字体大小一致 */
    margin-top: 0.5rem; /* 微调对齐 */
}

/* 白色背景导航栏样式 */
.navbar-light.bg-white {
    box-shadow: none;
    border-bottom: 1px solid #d9d9d9;
    transition: all 0.3s ease;
    width: 100%;
    height: 4rem;
    background-color: rgba(255, 255, 255, 1) !important; /* 30%透明度 */
    position: fixed;
    z-index: 1030; /* 确保导航栏在banner上层 */
}

/* 滚动时导航栏样式 */
.navbar.navbar-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.2rem;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 1) !important; /* 滚动时不透明 */
    box-shadow: none;
    border-bottom: 1px solid #d9d9d9;
    animation: navbarSlideDown 0.3s ease;
}

/* 导航栏品牌文字滚动时调整 */
.navbar.navbar-scrolled .navbar-brand {
    font-size: 1.1rem;
    color: #333 !important;
}

/* 导航链接滚动时调整 */
.navbar.navbar-scrolled .navbar-nav .nav-link {
    font-size: 0.85rem;
    margin: 0 8px;
    color: #333 !important;
}

/* 导航栏动画 */
@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 二级导航样式 */
.breadcrumb-item a{
font-size: 16;
text-decoration: none;
/* color: #6c757d; */
color: var(--bs-nav-tabs-link-active-color);
}

/* 二级导航分隔符样式 */
.breadcrumb-item+.breadcrumb-item::before{
content:var(--bs-breadcrumb-divider, ">")
}
/* 二级导航链接样式 */
.nav-link{
color: var(--bs-nav-tabs-link-active-color);
}
.nav-link:hover{
color: var(--bs-nav-tabs-link-active-color);
}

/* Banner轮播样式 */
.banner-section {
    margin-top: 0;
    width: 100vw;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-top: 0; /* 确保顶部距离为0 */
    z-index: 1020; /* banner位于导航栏下层 */
}

.banner-section .carousel {
    width: 100%;
    max-width: none;
}

.banner-section .carousel-inner {
    width: 100%;
}

.carousel-item {
    height: 740px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

.carousel-caption {
    background: transparent;
    border-radius: 10px;
    padding: 20px;
    max-width: 640px;
    margin-left: 0;
    animation: fadeInUp 1s ease-out;
    transform: translateY(30px);
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Banner文字动画效果 */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 为banner标题添加特殊动画 */
.carousel-caption h3 {
    animation: slideInFromLeft 0.8s ease-out 0.3s both;
    transform: translateX(-50px);
    opacity: 0;
}

.carousel-caption h2 {
    text-align: left;
}

/* 为banner描述添加动画 */
.carousel-caption p {
    text-align: left;
    animation: slideInFromRight 0.8s ease-out 0.6s both;
    transform: translateX(50px);
    opacity: 0;
}

/* 为banner按钮添加动画 */
.carousel-caption .btn {
    animation: bounceIn 0.8s ease-out 0.9s both;
    transform: scale(0.8);
    opacity: 0;
}

/* MORE+按钮鼠标悬停效果 */
.carousel-caption a.mt-3.px-4.py-2.text-white:hover {
    background-color: #333;
    color: #000;
    opacity: 1;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    80% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 产品卡片样式 */
.product-card {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* 1:1比例 */
    object-fit: cover;
    border-radius: 0;
}

.product-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 产品卡片描述文本样式 */
.product-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 限制显示一行 */
    line-clamp: 1; /* 标准属性，兼容性 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-bottom: 8px; /* 缩小与价格之间的距离 */
    font-size: 0.875rem; /* 小一号字体 */
}

/* 产品卡片价格区域样式 */
.product-card .mt-auto {
    margin-top: 8px; /* 缩小整体间距 */
}
/* 产品详情距离上方5rem */
.row.mt-5{
    margin-top: 5rem !important;
}

/* 新闻卡片样式 */
.news-card {
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
}

/* 新闻卡片描述文本样式 */
.news-card .card-text {
    font-size: 0.875rem; /* 小一号字体 */
    line-height: 1.4;
    margin-bottom: 8px;
}

/* 合作伙伴样式 */
.partner-logo {
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
}

/* 表单样式 */
.form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: #fff;
    border-color: #000;
    color: #000;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
    border-radius: 0;
    transform: translateY(-1px);
}

/* 首页新闻按钮样式 */
.btn-outline-primary {
    border-color: #000;
    background-color: #000;
    color: #fff;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    border-color: #000;
    background-color: #fff;
    color: #000;
    border-radius: 0;

}

/* 首页查看更多新闻按钮样式 */
.view-all-news-btn {
    border: 1px solid #000;
    background-color: transparent;
    color: #000;
    border-radius: 0;
    transition: all 0.3s ease;
}

.view-all-news-btn:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
    border-radius: 0;
    transform: translateY(-1px);
}

/* 页脚样式 */
footer {
    margin-top: auto;
    

}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffc107 !important;
}
.mt-5 {
    margin-top: 0rem !important;
}
.py-4 {
    padding-top: 3rem !important;
    padding-bottom: 0.2rem !important;
}
.my-3 {
    margin-top: 8rem !important;
}


/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .product-image {
        width: 100%;
        aspect-ratio: 1 / 1; /* 1:1比例 */
        object-fit: cover;
    }
    
    .news-image {
        height: 120px;
    }
    
    /* 移动端导航栏样式 */
    .navbar-light.bg-white {
        height: 70px;
    }
    
    .navbar.navbar-scrolled {
        height: 50px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.85rem;
    }
    
    .navbar.navbar-scrolled .navbar-brand {
        font-size: 1.0rem;
    }
    
    .navbar.navbar-scrolled .navbar-nav .nav-link {
        font-size: 0.8rem;
        margin: 0 5px;
    }
}
/* container-fluid padding设置为0 */
.container-fluid {
    padding-right: 0 !important;
    padding-left: 0 !important;
    padding-top: 4rem !important;
   
}

