/* 响应式布局样式 */
@media (max-width: 1180px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}
/* 在小屏幕上限制CSS */
@media (max-width: 1180px) {
 
    .news-section {
        flex: 1;
        overflow: hidden; /* 隐藏溢出内容 */
    }
    .news-section .list-group{
        max-height: 200px; /* 限制新闻部分的最大高度 */
        overflow: scroll; /* 隐藏溢出内容 */
    }
    .news-section .list-group-item{
        height: 30px; /* 限制新闻部分的最大高度 */
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .nav-help-tool-box{
        display: none !important;
    }
}
/* 移动端适配 */
@media (max-width: 768px) {
    .search-box {
        margin-right: 10px;
    }

    .search-input {
        width: 150px;
    }

    .search-button {
        padding: 0 15px;
    }
    .news-section {
        flex: 1;
        overflow: hidden; /* 隐藏溢出内容 */
    }
    .news-section .list-group{
        max-height: 200px; /* 限制新闻部分的最大高度 */
        overflow: scroll; /* 隐藏溢出内容 */
    }
    .news-section .list-group-item{
        height: 30px; /* 限制新闻部分的最大高度 */
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .nav-list{
        justify-content: center !important;
    }
    .news-ticker{
        font-size: 10px !important;
    }
}

/* 通用样式 */
body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}
.news-ticker-content a{
    white-space: nowrap;
}
.mainbody {
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

.footer {
    padding: 20px 0;
    background: #f8f9fa;
    background-image: url(/images/footerbg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 导航栏响应式优化 */
.navbar {
    padding: 0.5rem 1rem;
    background: linear-gradient(188.48deg, #F1C88B 4.14%, rgba(243, 205, 150, 0) 86.31%);
}

@media (max-width: 576px) {
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .nav-item {
        padding: 0.25rem 0;
    }
} 

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

h2 {
    margin-top: 20px;
    color: #333;
}

.list-group-item {
    border: none;
    padding: 10px 15px;
    background-color: #fff;
    margin-bottom: 5px;
    border-radius: 5px;
}

.footer {
    background-color: #ff7f50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.banner {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: rgba(222, 73, 1, 1);
    width: 20% !important;
}

.news-ticker {
    background-color: rgba(255, 242, 236, 1);
    color: rgba(222, 73, 1, 1);
    text-align: left;
    padding:5px;
    border-radius: 5px;
}

.card {
    margin-bottom: 20px;
}

.footer {
    background-color: #ff7f50;
    color: white;
    padding: 20px 0;
    text-align: center;
} 

.logo{
    width: 100% !important;
    /* height: 35px !important; */
    margin-right: 10px;
}
.nav-top-right{
    width: 100%;
    height: 170px;
    margin-left: -60px;
}


.nav-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
.nav-list{
    display: flex;
    flex-direction: row;
    justify-content:start;
    align-items: center;
    list-style: none;
    color:rgba(51, 51, 51, 0.8);
    width: 100%;
    flex-wrap: wrap;
}
.nav-list-item{
    padding: 5px 0px 5px 0px;
}
.nav-list-item a{
    margin-top:20px;
    margin-right: 30px;
    color: rgba(51, 51, 51, 0.8);
    text-decoration: none;
    font-size: 19px;
    font-weight: 400;
}
.nav-list .active{
    color:rgba(222, 73, 1, 1);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(222, 73, 1, 1);
}
.nav-logo-box{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;    
}
.nav-logo-bar{
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}
.nav-logo-bar a{
    color: rgba(51, 51, 51, 0.8);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
}
.navbar-brand{
    font-size: 24px;
    font-weight: 700;
}
.nav-logo-left{
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
}

.nav-list-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* 确保下拉菜单紧贴导航项 */
    opacity: 1; /* 完全显示 */
    transition: opacity 0.3s ease-in-out; /* 渐进渐出效果 */
}
.banner-img{
    position: relative;
}
.dropdown-menu {
    display: block !important; /* 默认隐藏 */
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
    opacity: 0; /* 初始透明 */
    transition: opacity 0.3s ease-in-out; /* 渐进渐出效果 */
    padding: 0px !important;
}

.dropdown-item {
    padding: 10px 10px 10px 10px !important;
    color: #333;
    text-decoration: none;
    margin-top: 0px !important;
}

.dropdown-item:hover {
    background-color: rgba(222, 73, 1, 1) !important;
    color: #fff !important;
}
.nav-logo-bar-item{
    color: rgba(222, 73, 1, 1);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.nav-logo-bar-item-old{
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
    background-color: rgba(222, 73, 1, 1) !important;
    color: #fff !important;
}
.swiper-wrapper img{
    border-radius: 8px;
}
.mainSwiper{
    border-radius: 8px;
}

/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
}

.search-input {
    height: 36px;
    padding: 0 15px 0 35px; /* 增加左边距，为图标留出空间 */
    border: 1px solid rgba(222, 73, 1, 0.3);
    border-radius: 4px 0 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #333;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.search-button {
    height: 36px;
    padding: 0 20px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: rgba(222, 73, 1, 1);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: rgba(222, 73, 1, 0.8);
}

/* 调整导航栏右侧布局 */
.nav-logo-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 20px; /* 元素之间的间距 */
}


.bigtext-bone{
    display: none !important;
}

/* 确保父容器使用Flexbox布局 */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* 确保子元素高度一致 */
}
.att-title{
    display: flex;
    justify-content: center;
    align-items: center;
}
.att-title p{
    font-size: 18px;
    font-weight: 600;
}
.att-title text{
    font-size: 14px;
    font-weight: 400;
    margin-left: 10px;
}
.att-img img{
    width: 100%;
}
.footer-left{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    padding-left:25px !important;
}
.footer-left-title{
    font-size: 30px !important;
    font-weight: 700;
}
.footer-left-text{
    font-size: 15px !important;
    font-weight: 400;
}
/* 移动端适配 */
@media (max-width: 1180px) {
    .footer-left{
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        padding-left:25px !important;
    }
    .footer-left-title{
        font-size: 18px !important;
        font-weight: 700;
    }
    .footer-left-text{
        font-size: 10px !important;
        font-weight: 400;
    }
}
/* 移动端适配 */
@media (max-width: 768px) {

    .footer-left-title{
        
        font-size: 15px !important;
        font-weight: 700;
    }
    .att-title{
        display: flex;
        justify-content: start;
        align-items: start;
        margin-top: 10px !important;
        padding-left:10px !important;
    }
}

.text-info-link {
    text-decoration: none; /* 去掉下划线 */
    font-size: 14px;
    color: rgba(222, 73, 1, 1);
}

.text-info-link:hover {
    text-decoration: none; /* 确保在悬停时也没有下划线 */
}

.text-info-text-title {
    font-size: 16px;
    font-weight: bold;
    color: rgba(222, 73, 1, 1);
    margin-top: 10px;
    margin-bottom: 5px;
}

.text-info-tel {
    font-size: 16px;
    font-weight: normal;
    color: rgba(222, 73, 1, 1);
}
.swiper-2-img{
    height: 200px !important;
    width:100%;
}
@media (max-width: 1180px) {
    .swiper-2-img{
        height: 100px !important;
        width:100%;
    }
}
@media (max-width: 768px) {
    .swiper-2-img{
        height: 60px !important;
        width:100%;
    }
}
