/*===== 公用样式=====*/
body {
    font-family: 'Microsoft Yahei', sans-serif;
    font-weight: normal;
    font-style: normal;
    color: #333333;
    overflow-x: hidden;
    background-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    object-fit: cover;
    justify-content: center;
}

a:focus,
input:focus,
textarea:focus,
button:focus {
    text-decoration: none;
    outline: none;
}

a:focus,
a:hover {
    text-decoration: none;
}

i,
span,
a {
    display: inline-block;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Microsoft Yahei', sans-serif;
    font-weight: 700;
    color: #333333;
    margin: 0px;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

p {
    font-size: 16px;
    line-height: 26px;
    margin: 0;
}

.box-container {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

a {
    color: #343434;
}

a:hover {
    text-decoration: underline;
}

/* 页尾样式 */
.footer-section {
    background: #1387e8;
    padding: 30px 0;
    font-weight: 400;
    font-size: 16px;
    color: #ffffff;
}
.footer {
    text-align: center;
}

.footer .copyright {
    margin-bottom: 25px;
}

.footer .content {
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.footer .content .link {
    color: #ffffff;
    font-weight: 400;
    padding: 0 15px;
    border-right: 1px solid #ffffff;
    line-height: 16px;
}

.footer .content .link:last-child {
    border-right: none;
}

/* 导航条样式 */
.container {
    max-width: 1200px;
    padding: 0 30px;
}

.navbar {
    background-color: #1387e8;
    padding: 0;
    min-height: 55px;
}

.navbar .navbar-brand {
    width: 149px;
    height: 39px;
    padding: 0;
}

.navbar .navbar-brand .mobile {
    display: none;
}

.navbar .nav-mobile-search {
    display: none;
}

.navbar-dark .navbar-nav .nav-item {
    position: relative;
    padding: 10px 0;
}

.navbar-dark .navbar-nav .nav-item .line {
    display: none;
    position: absolute;
    width: 12px;
    height: 2px;
    background-color: #ffffff;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    border-radius: 1px;
}

.navbar-dark .navbar-nav .nav-item.active .line {
    display: inline-block;
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
    padding: 5px 19px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    background: #0c0c0c;
    border-radius: 5px;
    min-width: 150px;
    max-width: 180px;
    border: none;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% - 2px);
    padding: 10px 20px;
}

.dropdown-menu::before {
    display: inline-block;
    content: '';
    border-top: 0;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #0c0c0c;
    border-left: 7px solid transparent;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -7px;
}

.dropdown-item {
    padding: 10px 5px;
    color: #ffffff;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-item.active {
    background: rgba(19, 135, 232, 1);
    color: #ffffff;
}

.dropdown-item:first-child {
    margin-top: 0;
}

.dropdown-item:hover {
    /* background: #007bff; */
    background: rgba(19, 135, 232, 1);
    color: #ffffff;
}

.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
}

.nav-search {
    display: flex;
    gap: 25px;
}

.nav-search .form-inline {
    position: relative;
}

.nav-search .form-inline .form-control {
    height: 28px;
    background: #ffffff;
    border-radius: 14px;
    font-weight: 400;
    font-size: 11px;
    padding: 0 30px 0 10px;
    width: 100px;
}

.nav-search .form-inline .form-control::placeholder {
    color: #1387e8;
}

.nav-search .form-inline .img {
    position: absolute;
    top: 5px;
    right: 10px;
    width: 16px;
    height: 16px;
    z-index: 1;
    cursor: pointer;
}

.nav-search .btn-group {
    height: 28px;
    background: #ffffff;
    border-radius: 14px;
    padding: 0 3px;
}

.nav-search .btn-group .btn {
    font-weight: bold;
    font-size: 11px;
    color: #1387e8;
    height: 24px;
    line-height: 22px;
    padding: 0;
    width: 45px;
    border-radius: 12px !important;
    margin-top: 2px;
}

.nav-search .btn-group .btn.active {
    background: #1387e8;
    color: #ffffff;
}

.nav-search .nav-link {
    padding: 8px 0;
    font-weight: 400;
    font-size: 16px;
    color: #ffffff;
}

.nav-search .nav-link:hover {
    text-decoration: underline;
}

/* 移动端侧边栏导航条 */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    min-width: 60vw;
    max-width: 80vw;
    background-color: #1d1d1d;
    transform: translateX(100%);
    transition: transform 0.1s ease-in-out;
    z-index: 4;
    overflow-y: auto;
    padding: 0;
    font-size: 13px;
    color: #ffffff;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar .components {
    padding: 20px 0;
    margin: 0;
    list-style: none;
}

.sidebar .components li {
    padding: 5px 12px;
}

.sidebar .components li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar .components li a:hover {
    color: #fff;
}

.sidebar .components .active a {
    background: #1387e8;
    border-radius: 4px;
}

.sidebar .collapse {
    width: 100% !important;
    list-style: none;
    margin: 0;
    transition: none !important;
}

.sidebar .collapse li {
    padding: 5px 12px;
}

.sidebar .collapse li a {
    padding: 10px 12px;
}

.sidebar .dropdown-toggle {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.sidebar .dropdown-toggle::after {
    display: inline-block;
    content: '';
    border-top: 0;
    border-right: 4px solid transparent;
    border-top: 5px solid #ffffff;
    border-left: 4px solid transparent;
    transform: rotate(-90deg);
    transition: all 0.1s ease-in-out;
    position: absolute;
    right: 10px;
    top: 16px;
}

.sidebar .dropdown-toggle[aria-expanded='true']::after {
    transform: rotate(0deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 12, 12, 0.5);
    z-index: 3;
    display: none;
}

.overlay.active {
    display: block;
}
