/* 公共样式 - 页面头部和尾部 */

html {
    overflow: hidden;
    overflow-y: auto;
}
/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}
body a {
    color: #333;
    text-decoration: none;
}
body a:hover {
    color: #d82b2b;
    text-decoration: none;
}
body {
    --active-color: #F79C26;
    --primary-color: #D20B17;
}
body .navbar {
    --bs-navbar-active-color: var(--active-color);
}
/* 顶部导航栏样式 */
body .nav-wrap {
    padding: 0;
    padding-right: 15px;
}
body .top-nav {
    height: 180px;
    background: linear-gradient( 180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.8) 17%, rgba(0,0,0,0.1) 82%, rgba(0,0,0,0) 100%);
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0;
    padding-bottom: 40px;
    padding-top: 2px;
}
.top-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient( 270deg, #E44221 0%, #D71020 100%);
}


.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-brand img {
    margin-right: 10px;
    width: auto;
    height: 134px;
}
.navbar-brand .mb-logo {
    margin-left: 10px;
    width: 184px;
    height: auto;
}

.navbar-brand span {
    font-size: 16px;
    color: #fff;
    align-self: center;
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    font-size: 1vw;
    color: #fff;
    font-weight: 600;
    padding: 0;
    position: relative;
}

.nav-link:hover {
    color: var(--active-color);
}
.nav-link:focus {
    color: #fff;
}

body .top-nav .nav-link.active {
    color: #fff;
    font-weight: bold;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--active-color);
}

.top-nav .dropdown-menu {
    padding-top: 0;
    border-top: 4px solid var(--active-color);
}
.top-nav .dropdown-menu::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--active-color);
    z-index: 2;
}
.top-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}
.top-nav .dropdown-menu .dropdown-item {
    font-size: 16px;
    color: #333;
    padding: 10px 20px;
    text-align: center;
}
.top-nav .dropdown-menu .dropdown-item:hover {
    background-color: var(--active-color);
    color: white;
}
.top-nav .dropdown-item.active {
    background-color: var(--active-color);
    color: white;
}
.top-nav .nav-link:focus-visible {
    box-shadow: none;
    outline: none;
}
.top-nav .navbar-toggler {
    padding: 0;
}
.top-nav .toggle-btn {
    display: none;
}
.top-nav .show-active {
    background: var(--primary-color);
}
#navbarNavMobile {
    padding: 0 16px;
}
#navbarNavMobile .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(216, 216, 216, 0.3);
}
#navbarNavMobile .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}
#navbarNavMobile .nav-link.active {
    color: var(--active-color);
    border-bottom: 1px solid var(--active-color);
}
#navbarNavMobile .active::before {
    display: none;
}
#navbarNavMobile .dropdown-menu::after {
    display: none;
}
#navbarNavMobile .dropdown-menu {
    background: transparent;
    border: none;
    padding: 0 10px;
}
#navbarNavMobile .dropdown-menu .dropdown-item {
    color: #fff;
    text-align: left;
    border-bottom: 1px solid rgba(216, 216, 216, 0.3);
}
#navbarNavMobile .dropdown-menu .dropdown-item::last-child {
    border-bottom: none;
}
#navbarNavMobile .dropdown-menu .dropdown-item:hover {
    background-color: transparent;
    color: var(--active-color);
    border-bottom: 1px solid var(--active-color);
}
#navbarNavMobile .dropdown-menu .active {
    color: var(--active-color);
    border-bottom: 1px solid var(--active-color);
    background: transparent;
}
/*次级banner*/
.sub-banner {
    background-position: center;
    height: 440px;
    display: flex;
    align-items: center;
    color: white;
}
.sub-banner .banner-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0 0;
    /* background-color: #d9534f; */
    /* transform: skewY(-10deg) translateY(-50px); */
    /* transform-origin: top left; */
    z-index: 1;
}

.sub-banner .banner-img {
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    /* 小屏设备 */
    .sub-banner {
        height: 211px;
    }
    .banner-area .breadcrumb {
        right: 10px;
    }
}

/* 面包屑导航 */
.banner-area {
    position: relative;
    height: 95%;
}
.breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
    width: 100%;
    position: absolute;
    bottom: 0px;
    right: 0px;
    z-index: 10;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.breadcrumb span {
    color: white;
}
/* 左侧分类栏（Sidebar） */
.col-sidebar {
    padding-right: 20px;
    background-color: white;
    padding: 0;
}

/* 左侧侧边导航样式 */

.sidebar {
    background-color: white;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    position: relative;
    padding: 0 20px;
    padding-top: 80px;
}

.sidebar-title {
    background: linear-gradient( 270deg, #E44221 0%, #D71020 100%);
    font-size: 16px;
    font-weight: bold;
    padding: 0 0 10px 0;
    margin: 0 0 10px 0;
    text-align: left;
    border-radius: 0;
    border-bottom: none;
    position: absolute;
    height: 120px;
    width: 400px;
    top: -60px;
    left: 0;
    clip-path: polygon(0% 0%, 0% 0%, 90% 0%, 100% 20%, 100% 100%, 100% 100%, 10% 100%, 0% 80%);
    color: #fff;
    line-height: 120px;
    font-weight: 600;
    font-size: 28px;
    padding-left: 40px;
}
.sidebar-title-m {
    background: linear-gradient( 270deg, #E44221 0%, #D71020 100%);
    color: #fff;
    padding: 8px 10px;
    margin-bottom: 0;
     clip-path: polygon(0% 0%, 0% 0%, 90% 0%, 100% 30%, 100% 100%, 100% 100%, 0% 100%, 0% 100%);
}
.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 35px;
    left: 40px;
    width: 32px;
    height: 1px;
    border-bottom: 3px solid #fff;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav .nav-item {
    margin-bottom: 10px;
}

.sidebar-nav .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #666;
    text-decoration: none;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: transparent;
    font-size: 18px;
     border-bottom: 1px solid #E3E3E3;
}

.sidebar-nav .nav-link:hover {
    color: var(--primary-color);
}

.sidebar-nav .nav-item.active .nav-link {
    color: var(--primary-color);
}

.sidebar-nav .nav-item.active .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 4px;
    height: 100%;
    background-color: var(--active-color);
    transform: translateY(-50%);
}

.sidebar-nav .nav-link::after {
    content: '>';
    font-size: 18px;
    margin-left: 10px;
    color: #333;
    font-weight: normal;
}

@media (max-width: 992px) {
    .col-sidebar {
        margin-bottom: 0px;
        padding-top: 16px;
    }
    .sidebar-nav .nav-item {
        margin-bottom: 0px;
    }
    .sidebar{
       padding: 0 15px;
    }
    .nav-link {
        font-size: 16px;
    }
    .sidebar-nav .nav-link {
        padding: 8px 20px;
        background: #FAFAFA;
        font-size: 14px;
    }
    .sidebar-nav .nav-item.active .nav-link::before {
        left: -10px;
        width: 3px;
        display: none;
    }
    .sidebar-nav .nav-link::after {
        display: none;
    }
    .sidebar-nav .nav-link::last-child {
        border-bottom: 1px solid var(--active-color);
    }
}

/* 主容器样式 */
.main-container {
    margin: 30px auto;
    position: relative;
}
.main-content {
    position: relative;
    top: -45px;
    z-index: 10;
    background: #fff;
}
.col-content {
    position: relative;
    z-index: 10;
    padding-top: 20px;
    background: #fff;
}

/* 页脚样式 */
footer {
    background-color: var(--primary-color);
    height: 260px;
    margin: 0;
    padding: 0;
    border-top: 6px solid var(--active-color);
}

.footer-content {
    background-color: var(--primary-color);
    height: 100%;
    padding: 30px 0;
}
.footer-content .dropdown {
    width: 300px;
    height: 48px
}

.footer-contact h5 {
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-contact p {
    color: white;
    font-size: 12px;
    margin: 5px 0;
    line-height: 1.5;
}

/* 二维码样式 */
.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qrcode-box {
    width: 100px;
    height: 100px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.qrcode-content {
    color: #d9534f;
    font-size: 14px;
}

.qrcode-text {
    color: white;
    font-size: 10px;
    text-align: center;
}

/* 友情链接样式 */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-links .btn {
    background-color: #D44A4A;
    color: white;
    border: none;
    border-radius: 0;
    padding: 8px 15px;
    font-size: 14px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links .btn:hover {
    background-color: #d9534f;
    color: white;
}
.footer-links .btn:focus {
    box-shadow: none;
}

.footer-links .dropdown-menu {
    width: 300px;
    border-radius: 0;
    border: 1px solid #ddd;
    height: 200px;
    overflow: hidden;
    overflow-y: auto;
}

.footer-links .dropdown-item {
    font-size: 14px;
    color: #333;
    height: 30px;
    line-height: 30px;
}

.footer-links .dropdown-item:hover {
    background-color: #f0f0f0;
    color: #d9534f;
}

/* 版权信息样式 */
.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #D44A4A;
}

.footer-copyright p {
    color: white;
    font-size: 10px;
    margin: 0;
    text-align: center;
}


/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 40vh;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 999;
    display: block;
}

/* 响应式设计 - 导航栏、页脚和回到顶部按钮 */
@media (max-width: 1200px) {
    body .top-nav {
        height: 88px;
    }
    body .nav-wrap {
        padding-right: 0;
    }
    .top-nav .navbar-collapse {
        background-color: var(--primary-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        height: 100vh;
    }
    .collapsing {
        transition: none;
    }
}
@media (min-width: 1200px) {
    body .nav-wrap .d-xl-none {
        display: none!important;
    }
}

@media (max-width: 768px) {
    
    .nav-item {
        margin-left: 0;
        margin-bottom: 10px;
    }
    .sidebar-nav .nav-item {
        margin-bottom: 0px;
    }
    
    /* 页脚调整 */
    footer {
        height: auto;
    }
    
    .footer-content {
        padding: 20px 0;
    }
    
    .footer-contact,
    .footer-qrcode,
    .footer-links {
        margin-bottom: 20px;
    }
    
    .footer-qrcode {
        margin: 20px 0;
    }
}

@media (max-width: 375px) {
    /* 二维码和联系信息分两行显示 */
    .footer-contact,
    .footer-qrcode,
    .footer-links {
        text-align: center;
    }
}

.TRS_Editor img {
    max-width: 100%;
}