/* 会计学院官网样式 */

/* 全局样式 */
body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    line-height: 1.5;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    margin-top: 130px; /* 为固定导航栏留出空间 */
    margin-bottom: 20px; /* 为页脚留出一些空间 */
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004c99;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

/* 通用按钮样式 */
.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #004c99;
    border-color: #004c99;
}

/* 通用卡片样式 */
.card {
    border-radius: 0;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 通用标题样式 */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #0066cc;
}

/* 通用Banner样式 */
.banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 850px;
    margin-bottom: 0;
    overflow: hidden;
}

/* Hero Banner 基础样式 */
.hero-banner {
    background-image: url(../images/newInfo.png);
    background-size: cover;
    background-repeat: no-repeat;
}

/* 为不同页面设置特定的背景图 */
.hero-banner.academic-banner {
    background-image: url(../images/newInfo.png); /* 科研动态页面 */
}

.hero-banner.party-banner {
    background-image: url(../images/newInfo.png); /* 党政思建页面 */
}

.hero-banner.talent-banner {
    background-image: url(../images/newInfo.png); /* 人才培养页面 */
}

.hero-banner.industry-banner {
    background-image: url(../images/newInfo.png); /* 产教融合页面 */
}

.hero-banner.profile-banner {
    background-image: url(../images/newInfo.png); /* 学院概况页面 */
}

.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.banner-content {
    position: absolute;
    top: 40%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
}

.page-title-main {
    font-size: 70px;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title-en {
    font-size: 36px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 300;
    display: block;
    position: relative;
    padding-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

/* 通用侧边栏样式 */
.main-content {
    background-color: #fff;
    padding: 40px 0;
    /* 防止内容超出 */
    overflow-x: hidden;
}

.sidebar {
    padding: 0;
    background-color: #fff;
}

.sidebar-title {
    background-color: transparent;
    color: #333;
    padding: 0;
    margin-bottom: 30px;
}

/* 通用的侧边栏英文标题样式 */
.sidebar-title .academy-en,
.sidebar-title .party-en,
.sidebar-title .academic-en {
    font-size: 45px;
    font-weight: 400;
    letter-spacing: 0.6px;
    line-height: 71.34px;
    color: rgba(230, 230, 230, 1);
    text-align: left;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* 通用的侧边栏中文标题样式 */
.sidebar-title .academy-cn,
.sidebar-title .party-cn,
.sidebar-title .academic-cn {
    font-size: 32px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.blue-line {
    width: 80px;
    height: 3px;
    background-color: #0066cc;
    margin-bottom: 30px;
}

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

.sidebar-menu li {
    padding: 0;
    margin-bottom: 20px;
    border-bottom: none;
}

.sidebar-menu li a {
    color: #333;
    display: block;
    padding: 0;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    border-bottom: none;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: #0066cc;
    background-color: transparent;
}

.sidebar-menu li a.active {
    color: #0066cc;
    font-weight: bold;
    border-bottom: 2px solid #0066cc;
    display: inline-block;
    padding-bottom: 5px;
}

/* 顶部蓝色条样式 */
.top-blue-bar {
    background-color: #0066cc;
    color: #fff;
    padding: 8px 0; /* 放大padding */
    font-size: 14px; /* 放大字体 */
    font-weight: normal;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1010;
}

.top-blue-bar a {
    color: #fff;
    margin-left: 15px;
}

.top-blue-bar a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* 顶部导航样式优化 */
.top-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 36px; /* 增加蓝色条的高度，适应增大的padding */
    left: 0;
    z-index: 1000;
}

.top-bar {
    padding: 18px 0; /* 放大padding */
    background-color: #fff;
    font-size: 18px;
}

/* 水平导航菜单样式 */
.main-nav-horizontal {
    margin-left: 20px;
}

.nav-menu {
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-item-horizontal {
    margin: 0 10px;
    position: relative; /* 为下拉菜单定位添加 */
}

.nav-link-horizontal {
    color: #333;
    font-size: 18px; /* 放大字体 */
    font-weight: 500;
    text-decoration: none;
    padding: 7px 0; /* 放大padding */
    position: relative;
    white-space: nowrap;
}

/* 鼠标悬停或下拉菜单显示时的一级菜单样式 */
.nav-link-horizontal:hover,
.dropdown-hover:hover .nav-link-horizontal,
.dropdown-menu:hover + .nav-link-horizontal,
.dropdown-hover.active .nav-link-horizontal {
    color: #0066cc;
}

/* 鼠标悬停或下拉菜单显示时的下划线 */
.nav-link-horizontal:hover::after,
.dropdown-hover:hover .nav-link-horizontal::after,
.dropdown-menu:hover + .nav-link-horizontal::after,
.dropdown-hover.active .nav-link-horizontal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
}

/* 下拉菜单样式 - 修改布局 */
.dropdown-hover {
    position: relative;
    display: inline-block;
}

/* 使用纯CSS解决鼠标移动到二级菜单时消失的问题 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px); /* 增加与一级菜单的距离 */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    z-index: 1000;
    text-align: center;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    /* 设置一个延迟，使菜单不会立即消失 */
    transition-delay: 0.1s;
}

/* 添加小三角形指示器 */
.dropdown-menu:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

/* 添加覆盖区域，确保鼠标移动到二级菜单时不会断开 */
.dropdown-hover::after {
    content: '';
    position: absolute;
    height: 20px;
    width: 150%;
    left: -25%;
    bottom: -20px;
    display: none;
    z-index: 990;
}

/* 只要悬停在下拉菜单或其父元素上，就保持菜单可见 */
.dropdown-hover:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-hover:hover::after {
    display: block;
}

/* 添加show类，用于JavaScript控制 */
.dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.dropdown-menu li {
    padding: 0;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    display: block;
    padding: 15px 0;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #0088ff;
    color: #fff;
}

.dropdown-menu li a.active {
    background-color: #0088ff;
    color: #fff;
}

/* 移动端下拉菜单样式 */
#navbarNav .collapse {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#navbarNav .collapse ul li a {
    padding: 15px;
    font-size: 16px;
    color: #fff;
    text-align: center;
}

#navbarNav .collapse ul li a:hover {
    background-color: #0088ff;
}

#dynamic-nav-menu {
    display: contents; /* 让内容直接显示在父元素中，不创建自己的盒子 */
}

#dynamic-mobile-nav-menu {
    display: contents; /* 让内容直接显示在父元素中，不创建自己的盒子 */
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: 300px;
}

.logo-container img {
    height: 40px; /* 放大logo */
    max-width: 100%;
}

.college-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0;
    margin-left: 15px;
}

.school-motto {
    text-align: right;
}

.school-motto img {
    height: 30px;
    max-width: 100%;
}

.main-nav {
    background-color: #0066cc;
}

.navbar {
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 15px;
    font-size: 16px;
    color: #fff !important;
    text-align: center;
    font-weight: 500;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 首页轮播图样式 */
.hero-section {
    position: relative;
}

.carousel-item {
    height: 500px;
    background-color: #0066cc;
    overflow: hidden;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    opacity: 0.7;
    height: 100%;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.carousel-caption h1 {
    font-size: 3px;
    font-weight: bold;
    margin-bottom: 0.5px;
    color: #fff;
}

.carousel-caption h2 {
    font-size: 2.5px;
    margin-bottom: 2px;
    color: #fff;
}

.school-motto {
    max-width: 300px;
    margin: 0 auto;
}

/* 学院概况页面样式 */
main h1 {
    color: #0066cc;
    position: relative;
    padding-bottom: 15px;
}

main h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

main h2 {
    color: #0066cc;
    font-weight: 600;
}

.counter {
    font-size: 2.5px;
    font-weight: bold;
    color: #0066cc;
}

.counter-title {
    font-size: 1px;
    color: #666;
}

/* 页脚样式优化 */
.footer {
    background-color: #0066cc;
    color: #fff;
    padding: 0;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 990;
}

/* 添加页脚背景覆盖层 */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/foot-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.2;
    z-index: 1;
}

/* 页脚导航样式 */
.footer-nav {
    background-color: rgba(0, 102, 204, 0.8);
    padding: 20px 0; /* 放大padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 17px 0;
}

.footer-menu ul {
    margin-bottom: 0;
    padding: 82px 0;
}

.footer-menu ul li a {
    color: #fff;
    padding: 0 18px; /* 放大padding */
    font-size: 18px; /* 放大字体 */
    position: relative;
}

.footer-menu ul li a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* 移除导航栏中的竖线 */
.footer-menu ul li:not(:last-child) a:after {
    content: "";
}

/* 页脚内容区域 */
.footer-content {
    position: relative;
    z-index: 2;
    padding: 50px 0; /* 放大padding */
}

.school-emblem {
    height: 90px; /* 放大校徽 */
    margin-bottom: 17px;
    width: auto;
}

.school-name {
    height: auto;
    width: 80%;
    margin-bottom: 12px;
}

.en-name {
    font-size: 14px;
    margin: 0;
    color: #fff;
    opacity: 0.8;
}

.contact-info {
    padding-top: 0;
    text-align: left;
    margin-top: 22px;
    /* margin-left: -70px; */
}

.contact-info p {
    margin-bottom: 8px; /* 增加间距 */
    font-size: 16px; /* 放大字体 */
    color: #fff;
}

.qrcode-container {
    display: flex;
    justify-content: center;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 130px; /* 放大二维码 */
    height: 130px; /* 放大二维码 */
    margin-bottom: 5px;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}

.qr-code {
    width: 130px !important; /* 与上方qrcode img保持一致 */
    height: 130px !important; /* 与上方qrcode img保持一致 */
}

.qrcode p {
    margin-top: 8px; /* 增加间距 */
    font-size: 14px; /* 放大字体 */
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-menu ul li a {
        padding: 0 8px;
        font-size: 19px;
    }

    .footer-logo {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }

    .school-info {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .nav-item:hover::after {
        display: none;
    }

    .footer-left, .contact-info, .qrcode-container {
        margin-bottom: 30px;
        text-align: center;
    }

    .university-logo {
        align-items: center;
    }

    .qrcode-container .d-flex {
        justify-content: center !important;
    }

    .contact-info {
        text-align: center;
    }

    .carousel-caption h1 {
        font-size: 3px;
    }

    .carousel-caption h2 {
        font-size: 2px;
    }

    .carousel-item {
        height: 350px;
    }

    .counter {
        font-size: 1.8px;
    }

    .counter-title {
        font-size: 0.9px;
    }

    .college-name {
        font-size: 20px;
    }

    .school-motto img {
        height: 25px;
    }

    .top-bar {
        padding: 10px 0;
    }

    .nav-link {
        padding: 10px;
    }
}

/* 修复container-fluid过宽问题 */
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* 超大屏幕容器最大宽度设置 - 覆盖Bootstrap默认样式 */
@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1450px !important; /* 设置最大宽度为1450px */
    }
}