/* src/main/resources/static/css/style.css */
.header-container {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: 20%;
    padding: 0 1rem;
    box-sizing: border-box;
}
img{
    transition: transform 0.2s;
}
img:hover{
    transform: translateY(-5px);
}
/* 卡片通用样式 */
.card {
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}
.text-decoration-none:hover{
    color: var(--bs-link-hover-color) !important;
}
/* 导航栏激活状态样式 */
.navbar-light .navbar-nav .nav-link.active {
    color: #0C71C0FF !important; /* 深蓝灰色 */
    /*background-color: #ecf0f1;  !* 浅灰色背景 *!*/
    /*border-radius: 4px;*/
    font-weight: bold;
}

/* 导航栏hover效果 */
.navbar-light .navbar-nav .nav-link:hover {
    color: #e74c3c !important; /* 红色 */
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s ease;

}

/* 导航栏基础样式 */
.navbar-light .navbar-nav .nav-link {
    color: #00000099; /* 灰色 */
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;

}

/* 品牌名称样式 */
.navbar-brand {
    color: #2c3e50 !important;
    font-weight: bold;
    font-size: 1.5rem;
    padding-right: 3rem;
}

.breadcrumb .breadcrumb-item {
    font-size: 18px;

}

.breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: #00000080;
}

.breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
    color: #0C71C0;
}

.breadcrumb .breadcrumb-item.active {
    color: #0C71C0;

}

.carousel {
    margin-bottom: 2rem;
}

.carousel-item {
    /*height: 500px;*/
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* 产品列表页样式 */
.container-fluid-content {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid-content-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.card-img-top {
    width: 100%;
    height: auto;
}

/* 图片链接样式 */
.card-img-top {
    transition: opacity 0.3s ease;
}

.card-img-top:hover {
    opacity: 0.8;
}

/* 新闻图片固定比例 */
.news-cover {
    aspect-ratio: 4/3;
}

/* 卡片悬停效果 */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 链接样式 */
.card a {
    text-decoration: none;
    color: inherit;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.card a .img-content{
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card a:hover {
    text-decoration: none;
}


.footer {
    background-color: #272727;
    padding: 3rem 0;
}

.footer-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer h5 {
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 18px;
}

.footer p {
    color: #FFFFFF;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer img {
    width: 20px;
    height: 20px;
}

.footer-contact,
.footer-social,
.footer-address {
    margin-bottom: 2rem;
}

.address-item {
    margin-bottom: 1rem;
}

.address-item p {
    margin-bottom: 0.5rem;
}

.address-item a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.address-item a:hover {
    color: #0C71C0;
}

.partners-section {
    margin-top: 2rem;
}

.partners-section h5 {
    text-align: center;
    margin-bottom: 2rem;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.partner-item {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-logo {
    max-width: 100%;
    height: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    justify-content: center;
}

/* 响应式设计 */
.container .theaty-home-card {
    background: #FFFFFF;
    box-shadow: 4px 4px 12px 0 #DCDCDC !important;
    border-radius: 0;
    padding: 20px;
    box-sizing: border-box;
    border: none;
}


.theat-btn-link {
    color: #3D3D3D;
    text-wrap: nowrap;
}

.theat-btn-link:hover {
    color: var(--bs-link-color);
}

.card-body .theaty-btn {
    width: 120px;
    background: #0C71C0;
    color: #FFFFFF;
    margin-top: auto;
}

.container .theaty-case-card .card-title {
    margin-bottom: 1rem !important;
    color: #FFFFFF;
    font-size: 22px;
}

.card-title {
    margin-bottom: 1rem !important;
    font-size: 22px;
}
.card-title.card-title-product{
    margin-bottom: 0 !important;
    text-align: center;

}
.recommended-products-recommended{
    font-weight: bold;
    font-size: 24px;
    color: rgba(0,0,0,0.8);
    line-height: 34px;

}
/* 箭头按钮的基本样式 */
.arrow-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #0C71C024;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.arrow-btn+.arrow-btn{
    margin-left: 1rem;
}

/* 左右箭头图标样式 */
.arrow-left::before,
.arrow-right::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #0C71C0;
    border-left: 2px solid #0C71C0;
}

/* 左箭头旋转 */
.arrow-left::before {
    margin-left: 5px;
    transform: rotate(-45deg);
}
.arrow-left:hover::before,
.arrow-right:hover::before {
    border-top: 2px solid white;
    border-left: 2px solid  white;
}

/* 右箭头旋转 */
.arrow-right::before {
    margin-right: 5px;
    transform: rotate(135deg);
}

/* 按钮悬停效果 */
.arrow-btn:hover {
    background-color: #0C71C0;
}

/* 容器样式 */
.arrow-container {
    display: flex;
    align-items: center;
}

.footer-social .qq-link {
    display: none;
}
@media (max-width: 768px) {
    .header-container {
        margin-left: 0;
        padding: 0 1.5rem;
    }
    .footer {
        padding: 2rem 0;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer h5 {
        margin-bottom: 1rem;
        font-size: 16px;
    }

    .footer-contact,
    .footer-social,
    .footer-address {
        margin-bottom: 1.5rem;
    }

    .footer-guide {
        display: flex;
        flex-wrap: wrap;
        column-gap: 2rem;
    }
    /* qq 在已有的媒体查询中添加 */
    .footer-social p {
        margin-bottom: 0.8rem;
    }

    .footer-social p img {
        width: 24px;
        height: 24px;
    }

    .footer-social p a {
        color: #FFFFFF;
        text-decoration: none;
    }

    .footer-social p a:hover {
        color: #0C71C0;
        text-decoration: underline;
    }
    /* QQ链接特定样式 */
    .footer-social .qq-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #FFFFFF;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-social .qq-link:hover {
        color: #0C71C0;
    }
}

/*分页样式*/
.pagination {
    margin-top: 2rem;
    gap: 0.6rem; /* 添加页码间距 */
}

.pagination .page-link {
    color: #666;
    border: none;
    border-radius: 4px;
    font-size: 22px;
}

.pagination .page-item.active .page-link {
    color: #0C71C0;
}
.active>.page-link, .page-link.active{
    background-color: transparent;
    pointer-events: none;
}

.pagination .page-item:not(.active) .page-link:hover {
    background-color: #f0f0f0 !important;
}

/* 上一页/下一页箭头样式 */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 26px;
    color: #0C71C0;

}
.disabled>.page-link, .page-link.disabled{
    background-color: transparent;
}
/* 禁用状态样式 */
.pagination .page-item.disabled .page-link {
    color: #00000033;
    pointer-events: none;
}