/* 鼠标悬停自动下拉菜单，仅限桌面端 */
@media (min-width: 992px) {
  .nav-menu .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    margin-top: 0;
    animation: dropdownFadeIn 0.2s;
  }
  .nav-menu .dropdown-menu {
    display: none;
  }
}
@media (min-width: 1400px) {
    .container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl {
        max-width:1420px
    }
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

:root {
    --primary-color: #2ca145;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --link-color: #2ca145;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: inherit;
}


ul{
list-style-type: none;
}
body .a{
    text-decoration: none;
    color: #000000;
}
.header {
   
    padding: 50px 0;
    color: white;
    /* 新增背景图片，可根据实际图片路径修改 */
    background-image: url('../img/bg-header.png');
    background-size: cover;
    background-position: center;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 65px;
    margin-right: 10px;
}

.search-box {
    text-align: right;
    color: white;
}

.nav-menu {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0;
    z-index: 1000;
}

.nav-menu .navbar-toggler {
    border-color: var(--primary-color);
    margin: 8px 0;
}

.nav-menu .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 161, 69, 0.25);
}

.nav-menu .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 12px 15px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--primary-color);
}

.nav-menu .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-color);
}

.nav-menu .dropdown-menu {
    border: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-top: 0;
    border-top: 2px solid var(--primary-color);
}

.nav-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

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

.nav-menu .dropdown-item:hover,
.nav-menu .dropdown-item:focus {
    background-color: rgba(44, 161, 69, 0.1);
    color: var(--primary-color);
}

.nav-menu .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.15em;
}

.banner {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.section-title {
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    margin: 20px 0;
    font-weight: bold;
    color: var(--primary-color);
}

.news-itemlist {
    margin-bottom: 10px;
    padding-bottom: 5px;
}
.news-itemlist a{
    color: var(--text-color);
    text-decoration: none;
}

.news-item {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #737373;
}

.news-item::before{
    content: '•';
    color:#999;
}

.news-item a {
    color: var(--text-color);
    text-decoration: none;
    flex-grow: 1;
}

.news-item a:hover {
    color: var(--link-color);
}

.news-date {
    color: #999;
    font-size: 0.9em;
}

.more-link {
    float: right;
    color: #999;
    font-size: 0.9em;
    text-decoration: none;
}

.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


.card a{
   text-decoration: none;
   color: var(--text-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.content-box .card-img-top {
    height: 100px;
    object-fit: cover;
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-custom:hover {
    background-color: #238c39;
    color: white;
}

.btn-outline-custom {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: white;
    padding: 10px 20px;
    border-radius: 4px;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: 30px;
}

.qr-code {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.qr-text {
    font-size: 0.8em;
    text-align: center;
}

.new-exhibition-bg {
    background: url('../img/bg.png') no-repeat center center;
    background-size: cover;
    padding: 32px 24px;
}

/* 新展推介和文化产品卡片图片动效 */
.new-exhibition-bg .card-img-top {
    transition: all 0.6s;
}

.new-exhibition-bg .card:hover .card-img-top {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(44,161,69,0.10);
}

@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .search-box {
        text-align: center;
        margin-top: 10px;
    }

    .nav-menu {
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.2em;
    }
}

/* 轮播图样式 */
.carousel {
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item {

    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    bottom: 30px;
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.carousel-indicators {
    bottom: 10px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* 响应式轮播图调整 */
@media (max-width: 992px) {
    .carousel-item {
        height: 350px;
    }

    .carousel-caption h5 {
        font-size: 1.3rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        padding: 10px;
        bottom: 20px;
    }

    .carousel-caption h5 {
        font-size: 1.1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }

    .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 250px;
    }

    .carousel-caption {
        padding: 8px;
        bottom: 10px;
    }

    .carousel-caption h5 {
        font-size: 1rem;
        margin-bottom: 2px;
    }

    .carousel-caption p {
        font-size: 0.7rem;
        margin-bottom: 0;
    }
}

/* 新闻轮播图样式 */
.news-carousel {
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

/* 创建1:1比例的容器 */
.square-img-container {
    position: relative;
    width: 100%;
    padding-top: 81%;
    /* 1:1 比例 */
    overflow: hidden;
}

.square-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px;
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.news-carousel-caption p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-carousel .carousel-control-prev,
.news-carousel .carousel-control-next {
    width: 15%;
    opacity: 0.7;
}

.news-carousel .carousel-control-prev:hover,
.news-carousel .carousel-control-next:hover {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-carousel {
        margin-bottom: 20px;
    }

    .news-carousel-caption {
        padding: 5px;
        font-size: 0.8rem;
    }
}

/* 新闻列表样式优化 */
.news-list {
    margin-top: 0;
}


@media (max-width: 767px) {
    .col-md-7 .news-list {
        margin-top: 15px;
    }
}

/* 特别推荐四宫格样式 */
.feature-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: white;   
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-box:nth-child(1) {
    background-color: #25A63F;
}

.feature-box:nth-child(2) {
    background-color: #25A63F;
}

.feature-box:nth-child(3) {
    background-color: #25A63F;
}

.feature-box:nth-child(4) {
    background-color: #25A63F;
}

.feature-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 20px 10px;
    text-align: center;
    height: 100%;
    justify-content: space-evenly;
}

.feature-icon {
    font-size: 2.5rem;
    margin: 12px 0;
    color: white;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.2);
}

.feature-text {
    font-weight: 500;
    font-size: 1.2rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-text {
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .feature-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .feature-text {
        font-size: 1rem;
    }

    .feature-link {
        padding: 15px 10px;
    }
}

@media (max-width: 768px) {
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .feature-text {
        font-size: 0.95rem;
    }

    .feature-link {
        padding: 12px 8px;
    }
}

@media (max-width: 576px) {
    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .feature-text {
        font-size: 0.9rem;
    }

    .feature-link {
        padding: 10px 5px;
    }
}

/* 移动端导航菜单优化 */
@media (max-width: 991px) {
    .nav-menu .navbar-collapse {
        background-color: white;
        padding: 10px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-menu .navbar-nav {
        margin-top: 10px;
        margin-bottom: 10px;
        width: 100%;
    }

    .nav-menu .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .nav-menu .nav-link.active::after {
        display: none;
    }

    .nav-menu .nav-link.active {
        background-color: rgba(44, 161, 69, 0.1);
    }

    .nav-menu .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px;
        background-color: #f8f9fa;
        border-radius: 4px;
    }

    .nav-menu .dropdown-item {
        padding: 8px 15px;
    }

    .nav-menu .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

/* 等高行和内容盒子样式 */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.content-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.content-box .section-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.content-inner2 {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 5px 35px 0px 35px;
}

.content-inner {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 5px;
}
.education a{text-decoration: none;}

.content-inner .row,
.content-inner .news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-indent: 10px;
    justify-content: flex-start;
}

.content-inner .row {
    margin-right: -10px;
    margin-left: -10px;
}

.content-inner .row>[class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* 调整卡片和新闻列表在内容盒子中的样式 */
.content-box .card {
    height: calc(100% - 10px);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.content-box .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-box .news-list {
    margin-top: 10px;
}

.content-box .news-item {
    padding: 9px 0;
    margin-bottom: 0;
    width: 100%;
}

.content-box .news-item:last-child {
    border-bottom: none;
}

.content-box .feature-box {
    height: 100%;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 991px) {
    .equal-height-row {
        display: flex;
    }

    .content-box {
        margin-bottom: 20px;
    }

    .content-inner .row {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .equal-height-row {
        display: block;
    }

    .content-box {
        height: auto;
        margin-bottom: 20px;
    }
}
/* 博物馆简介页面样式 */
.museum-intro {
    line-height: 1.8;
    text-indent: 2em;
    color: #333;
}

.museum-intro p {
    margin-bottom: 0.3rem;
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #777777;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* 左侧导航样式优化 */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 1rem;
}

.list-group-item.active {
    background-color: #2ca145;
    color: #ffffff;
    font-weight: 500;
    border-color: rgba(0,0,0,0.05);
}

.list-group-item:hover:not(.active) {
    background-color:#2ca145;
    color: white;
}

/* 页脚移动端适配优化 */
@media (max-width: 767px) {
    .footer {
        padding: 20px 0;
        text-align: center;
    }
    
    .footer .col-md-3 {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .footer .offset-md-3 {
        margin-left: 0;
    }
    
    .footer p {
        margin-bottom: 5px;
        font-size: 0.9em;
    }
    
    .qr-code {
        width: 80px;
        height: 80px;
        margin-bottom: 5px;
    }
    
    .qr-text {
        font-size: 0.75em;
        margin-bottom: 15px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 575px) {
    .footer .col-4 {
        padding: 0 5px;
    }
    
    .qr-code {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 1200px) {
    .h2, h2 {
        font-size: 1.5rem;
    }
}

.nav-menu .navbar-nav {
    display: flex;
    width: 100%;
}

.nav-menu .nav-item {
    flex: 1 1 0;
    text-align: center;
}

.nav-menu .nav-link {
    width: 100%;
    display: inline-block;
}

@media (max-width: 767px) {
    .header .container .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo-container {
        justify-content: center;
        margin-bottom: 8px;
    }
    .logo {
        height: 38px;
        margin: 0 auto 4px auto;
        display: block;
    }
    .search-box {
        text-align: center;
        margin-top: 0;
        margin-bottom: 8px;
    }
    .search-box .bi-search {
        font-size: 1.5rem;
        margin: 0 auto;
        display: inline-block;
    }
    .header {
        padding: 8px 0 4px 0;
        background-size: cover;
        background-position: center;
    }
    .header .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

.bi-circle-fill::before{
    content: "⨀";
    font-size: 16px;
}
.list-group-item+.list-group-item{
    display: inline-flex;
    background-color: #e7ebee;
    font-size: 1.1rem;
    padding-left: 30%;
}