@font-face {
    font-family: 'DreamHanSerifCN';
    src: url('/assets/font/DreamHanSerifCN-W14.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'DreamHanSerifCN', 'SimSun', '宋体', serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.nav-link-home:hover {
    color: #4ecdc4 !important;
    background-color: transparent !important;
}

.nav-link:hover {
    background-color: #4ecdc4 !important;
}

#myCarousel, .carousel-inner, .carousel-item {
    height: 100%;
}

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

.carousel-item .logo-overlay {
    position: absolute;
    right: 150px;
    top: 50%;
    transform: translateY(-50%) translateX(100px);
    width: 827px;
    height: 154px;
    /*background-image: url('/storage/banner_font.png');*/
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
    opacity: 0;
    animation:
        slideInFromRight 2s ease-out forwards,
        lightFlow 3s ease-in-out infinite 2s;
}

.carousel-item.active .logo-overlay {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    transition-delay: 0.3s;
}

@keyframes slideInFromRight {
    0% {
        transform: translateY(-50%) translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

@keyframes lightFlow {
    0% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(255,255,255,0.3));
    }
    50% {
        filter: brightness(1.1) drop-shadow(0 0 15px rgba(255,255,255,0.7));
    }
    100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(255,255,255,0.3));
    }
}

@keyframes pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.social-apps {
    /*position: absolute;*/
    /*top: 50px;*/
    /*right: 60px;*/
    /*z-index: 888;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1;
}

.social-apps a {
    position: relative;
    display: inline-block;
}

.social-apps .pop {
    display: none;
    position: absolute;
    margin-top: 10px;
    transform: translateX(-100%);
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.social-apps a:hover .pop {
    display: block;
}

.social-apps a:hover .fa-weixin {
    color: #00ff00 !important;
}

.container {
    max-width: 1500px;
}

.btn-group {
    display: flex;
    justify-content: center;
    gap: 60px;
    font-size: 18px;
    margin-top: 50px;
}

.btn-custom {
    background-color: white;
    color: #929292;
    border: 1px solid;
    padding: 5px 10px;
    width: 120px;
    text-align: center;
    cursor: pointer;
}

.btn-custom.active {
    background-color: #0f837a;
    color: white;
}

/* 新闻项样式 */
.news-items {
    background-color: #ededed;
    padding: 15px;
    /*margin-bottom: 10px;*/
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.news-items img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.news-content {
    display: flex;
    flex-direction: column;
}

.news-headers {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between; /* 这将把子元素推到两侧 */
    align-items: flex-start; /* 顶部对齐 */
    width: 100%;
}

.time-containers {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #4ecdc4;
    color: white;
    width: 80px;
    height: 80px;
    padding: 0 25px;
    /* 移除 margin-right */
    flex-shrink: 0; /* 防止容器被压缩 */
}

.days {
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
}

.year-months {
    font-size: 14px;
    width: 60px;
}

.time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    width: 80px;
    padding: 5px 25px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.day {
    font-size: 30px;
    font-weight: bold;
    color: #818183;
}

.year-month {
    font-size: 14px;
    width: 60px;
    color: #c7c7c7;
}

.news-header {
    display: flex;
    align-items: center;
}

.news-header .badge {
    margin-right: 10px;
}

.news-item {
    height: 117px;
    background-color: #ededed;
    padding: 20px 5px 5px 5px;
    margin-bottom: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.news-item:hover {
    background-color: #4ecdc4;
}

.news-item:hover .news-content .news-header .time-container .day,
.news-item:hover .news-content .news-header .time-container .year-month,
.news-item:hover .news-content .news-header h5,
.news-item:hover .news-content .news-header p {
    color: #ffffff;
}

.news-content {
    flex: 1;
}

.news-items h5 {
    font-weight: normal;
}

.news-items p {
    color: #acacac;
}

.news-item h5 {
    color: #7a7a7a;
    font-weight: normal;
}

.news-item p {
    color: #acacac;
}

.view-more-container {
    display: flex;
}

.view-more {
    background-color: #0f837a;
    border: none;
    color: white;
    width: 120px;
    padding: 8px 16px;
    margin-left: auto;
}

.view-more:focus {
    border: 1px solid #a6e3de;
    outline: none;
}

.view-detail {
    background-color: #0f837a;
    color: white;
    width: 120px;
    padding: 8px 16px;
    margin-right: auto;
    text-align: center;
}

.view-detail:hover {
    background-color: #0f837a; /* 保持背景颜色不变 */
    color: white; /* 保持文字颜色不变 */
    text-decoration: none; /* 移除悬停时的下划线 */
}

.custom-dropdown-menu {
    display: none; /* 初始隐藏 */
    position: fixed; /* 固定位置 */
    top: 10%; /* 距离顶部距离，根据需要调整 */
    left: 0;
    width: 100%; /* 占满宽度 */
    z-index: 1000; /* 确保在最上层 */
    background-color: white; /* 背景颜色 */
    height: 300px; /* 固定高度 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.nav-item:hover .custom-dropdown-menu {
    display: block; /* 鼠标悬停时显示 */
}

.object-fit-cover {
    object-fit: cover;
}

@media (max-width: 768px) {
    .custom-dropdown-menu .row {
        flex-direction: column;
    }

    .custom-dropdown-menu .col-md-4 {
        width: 100% !important;
    }

    .custom-dropdown-menu .col-md-4:last-child {
        height: 200px;
    }
}

.child_one {
    display: flex;
    flex-direction: column;
    /*justify-content: flex-start;*/
    /*align-items: flex-start;*/
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 30px 20px;
    height: 280px;
    width: 320px;
}

.child_two {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-size: 18px;
    height: 280px;
    width: 320px;
}

.child_three {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 320px;
}

.child_three img {
    margin-left: 40px;
    height: auto;
}

.custom-border-right {
    border-right: 1px solid #efefef;
    margin-top: 10px;
    margin-bottom: 10px;
}

.custom-border-down {
    border-bottom: 1px solid #efefef;
}

.card {
    margin-bottom: 20px; /* 添加底部间距 */
    border: none; /* 移除边框 */
}

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

.card-img {
    width: 100%;
    height: 220px; /* 根据需要调整图片高度 */
    object-fit: cover; /* 确保图片覆盖整个区域 */
}

.card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures content is spread out vertically */
    height: 100%; /* Ensures the body takes full height */
}

.card-title-container {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0; /* 移除默认的标题边距 */
    padding-left: 10px;
}

.card-text {
    color: #9b9b9b; /* 示例文本颜色 */
    margin-top: 20px;
    margin-left: 20px;
    /*margin: 20px 0 0 20px;*/
}

.card-deck {
    display: flex;
    justify-content: center;
    gap: 20px; /* 添加卡片之间的间距 */
    flex-wrap: wrap; /* 允许换行 */
}

.block_view-detail {
    font-size: 14px;
    background-color: #d4c17c;
    color: white;
    width: 110px;
    padding: 8px 16px;
    margin-left: auto;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.block_view-detail:hover {
    color: white;
}

/* 自定义样式确保轮播图居中 */
.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 轮播项目样式 */
.carousel-item .row > div {
    padding: 0 10px;
}

/* 图片容器样式 */
.img-container {
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    border: 1px solid #cdd1da;
    color: #adb5c4;
    background-color: transparent;
    background-image: none;
    opacity: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: #0f837a;
    border-color: #0f837a;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

.carousel-control-prev {
    margin-top: 70px;
    left: -80px;
}

.carousel-control-next {
    margin-top: 70px;
    right: -80px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100%, 100%;
    background-repeat: no-repeat;
    filter: brightness(0) invert(0.7);
}

.foot-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.foot-left, .foot-right {
    flex: 1;
    min-width: 400px; /* 设置最小宽度防止挤压 */
    max-width: 550px; /* 设置最大宽度 */
    margin: 0 20px; /* 左右间距 */
}

.widget {
    background-color: rgba(40, 83, 76, 0.5);
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    color: #ffffff;
    text-align: center;
    height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.widget img {
    display: block;
    margin: 0 auto 10px;
    max-width: 40px;
    height: auto;
}

.nav-items {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    margin: 8px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 250px;
}

.nav-items:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.daohang {
    display: flex;
    flex-direction: column; /* 垂直排列子元素 */
    align-items: center; /* 居中对齐子元素 */
    padding: 10px;
    border-radius: 5px;
    width: 100px; /* 容器宽度 */
}
.daohang h3, .daohang img {
    width: 100px; /* 子元素宽度 */
    text-align: center; /* 居中文本 */
    margin: 2px 0; /* 添加一些间距 */
    font-size: 22px;
}
.daohang img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 992px) {
    .foot-left, .foot-right {
        min-width: 100%;
        margin: 20px 0;
    }
}

/* 通用按钮样式 */
.right-fixed-btn {
    position: fixed;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #ffffff;
    color: #adb5c4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    text-align: center;
}

.right-fixed-btn i {
    font-size: 20px;
    margin-bottom: 3px;
}

.right-fixed-btn div {
    font-size: 12px;
    line-height: 1.2;
}

.right-fixed-btn:hover {
    background-color: #4ecdc4;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 电话按钮定位 */
#right-tel {
    top: calc(50% - 70px);
    transform: translateY(-50%);
    opacity: 1;
    visibility: visible;
}

/* 微信按钮定位 */
#right-weixin {
    top: calc(50% - 0px);
    transform: translateY(-50%);
    opacity: 1;
    visibility: visible;
}

/* 返回顶部按钮定位 */
#back-to-top {
    top: calc(50% + 70px);
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 弹出框样式 */
.popup-content {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.right-fixed-btn:hover .popup-content {
    opacity: 1;
    visibility: visible;
}

.popup-content:before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: #f5f5f5;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .right-fixed-btn {
        width: 45px;
        height: 45px;
        right: 10px;
    }

    .right-fixed-btn i {
        font-size: 16px;
    }

    .right-fixed-btn div {
        font-size: 10px;
    }

    .popup-content {
        width: 150px;
        right: 60px;
    }

    .qr-code {
        width: 120px;
        height: 120px;
    }
}

.content-container {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    width: 75%;
}

.article-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #444444;
    text-align: center;
}

.article-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #424242;
}

.article-line {
    display: block;
    margin: 20px auto;
    width: 50px;
}

.article-time {
    display: block;
    margin: 20px auto; /* 水平居中 */
    text-align: center; /* 确保文本内容居中 */
}

.custom-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.gaikuang-bg {
    background-color: #495057 !important;
    background: url('/storage/gaikuang_bg.png') !important;
}

.canvas-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 3;
}

.click-hint {
    color: #ffffff;
    font-size: 1em;
    margin-left: 5px;
    transition: color 0.3s;
}

.img-fluid {
    max-width: 120%;
    height: auto;
}

.img-fluids {
    max-width: 100%;
    height: auto;
}

.img-fluidss {
    max-width: 110%;
    margin-top: 5px;
    height: auto;
}

.footer-custom {
    background: url('/storage/foot_bg.png') no-repeat;
    background-size: contain;
    background-position: center;
}

@media (min-width: 992px) {
    .footer-custom {
        background-size: cover;
    }
}

.friend-custom {
    background: url('/storage/friend_bg.png') no-repeat;
    background-size: contain;
    background-position: center;
}

@media (min-width: 992px) {
    .friend-custom {
        background-size: cover;
        background-position: center 30%;
    }
}

.block-custom {
    background: url('/storage/block_bg.png') no-repeat;
    background-size: contain;
    background-position: center;
}

@media (min-width: 992px) {
    .block-custom {
        background-size: cover;
        background-position: center 20%;
    }
}

.news-custom {
    background: url('/storage/group_news_bg.png') no-repeat;
    background-size: contain;
    background-position: center;
}

@media (min-width: 992px) {
    .news-custom {
        background-size: cover;
        background-position: center 20%;
    }
}

@media (max-width: 768px) {
    .carousel-item .logo-overlay {
        position: absolute;
        right: -480px;
        top: 60%;
        /*background-image: url('/storage/banner_font.png');*/
        background-size: 40% 40%; /* 缩小到原始尺寸的 20% */
        background-repeat: no-repeat;
        z-index: 10;
        opacity: 0;
        animation:
            slideInFromRight 2s ease-out forwards,
            lightFlow 3s ease-in-out infinite 2s;
    }
    .footer-custom {
        background: none; /* 移除背景图片 */
    }
    .news-custom {
        background: none; /* 移除背景图片 */
    }
    .block-custom {
        background: none; /* 移除背景图片 */
    }
    .friend-custom {
        background: none; /* 移除背景图片 */
    }
    .news-items {
      margin-bottom: 10px;
    }
    .logo {
      width: 90%;
      height: 90%;
    }
}

