/* 公共样式文件 - 包含导航栏、页脚、返回顶部等公共组件样式 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	
}

a,
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
}
/* 容器宽度限制 */
div.container {
    max-width: 1200px !important;
}
/* ==================== 导航栏样式 ==================== */
.navbar {
    padding: 18px 0;
    top: 0;
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: white;
}

.navbar-brand {
    padding: 0;
}

.logo-img {
    height: 62px;
}

.navbar-collapse {
    flex: 1;
}

.navbar-nav {
    /* gap: 15px; */
    width: 100%;
    justify-content: space-between;
}

.nav-link {
    color: #0052a4 !important;
    font-size: 14px;
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #edf6ff;
    /* color: #fff !important; */
}

/* 下拉菜单样式 - 纯CSS hover实现 */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 120px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    z-index: 1000;
}

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

.dropdown-item {
    color: #0052a4 !important;
    font-size: 14px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0052a4 !important;
}

.dropdown-toggle::after {
    vertical-align: middle;
}

/* ==================== 页面标题样式 ==================== */
.page-title-section {
    padding: 30px 0 20px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 8px solid #1e6db5;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 8px;
    background-color: #f5a623;
}

.title-bar {
    display: inline-block;
    width: 4px;
    height: 28px;
    display: none;
    background-color: #1e6db5;
}

.page-title h2 {
    font-size: 24px;
    font-weight: bold;
    color: #1e6db5;
    margin: 0;
}

/* ==================== 页脚样式 ==================== */
.footer-section {
    background-color: #0052a4;
    padding: 10px 0;
    color: #fff;
}

.footer-section .row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
}

.contact-info {
    padding-left: 20px;
    text-align: left;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #fff;
}

.contact-info p:last-child {
    padding-left: 16px;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

/* ==================== 版权信息样式 ==================== */
.copyright-section {
    background-color: #fff;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.copyright-section p {
    margin: 0;
    font-size: 12px;
    /* color: #1e6db5; */
}

/* ==================== 返回顶部样式 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    background-color: #f5f5f5;
}

.arrow-up {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.arrow-up::before {
    content: '';
    width: 12px;
    height: 1px;
    background-color: #666;
}

.arrow-up::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #666;
}

/* 汉堡菜单按钮样式 */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: #0052a4;
    display: inline-block;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #0052a4;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

/* 菜单展开时的关闭图标 */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 10px;
    }
    .title-bar{
        display: none;
    }
    .nav-link {
        padding: 10px 15px !important;
    }
    
    .contact-info {
        padding-left: 0;
        margin-top: 0;
        text-align: center;
    }
    
    .contact-info p:last-child {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .logo-img{
        height:40px;
    }
    .page-title h2 {
        font-size: 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section .row {
        flex-direction: column-reverse;
    }
    
    .contact-info {
        padding-left: 0;
        text-align: left;
         
        /* margin-bottom: 20px; */
    }
    .contact-info p{
        font-size: 12px;
        margin-bottom: 0px;
    }
    .contact-info p:last-child {
        padding-left: 16px;
    }
    .page-title::after{
        height: 4px;
        bottom: -4px;
    }
    .page-title{
        border-bottom: 4px solid #1e6db5;
    }
    /* 移动端全屏导航菜单 */
    .navbar-collapse {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        margin-top: 0;
        padding: 10px 20px;
        z-index: 999;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
    
    .navbar-collapse.show {
        display: flex;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 5px 20px !important;
        display: inline-block;
    }
}
