/* 全局样式 */
body {
    font-family: "Microsoft Yahei", sans-serif;
    color: #000000;
    transition: all 0.3s ease;
}

/* 动画效果 */
.section-title, .cemetery-card, .news-list, .culture-accordion {
    opacity: 0;
    transform: translateX(-100px);
}

.animate-in {
    animation: fadeInLeft 2s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 墓地卡片过渡效果 */
.cemetery-card {
    transition: all 0.3s ease;
}
/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid #eee;
}
.navbar-brand img {
    max-height: 50px;
}
.nav-link {
    color: #666;
    margin: 0 8px;
    font-size: 16px;
}
.nav-link:hover {
    color: #8c7853;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.search-btn:hover {
    background-color: #8c7853;
    color: white !important;
}
/* banner轮播 */
#carouselBanner .carousel-item {
    height: 100vh;
}
#carouselBanner .carousel-item>img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* 移动端时取消全屏展示 */
@media (max-width: 767px) {
	.navbar-brand img {
    max-height: 46px;
    }
    #carouselBanner .carousel-item {
        height: 50vh;
    }
    #carouselBanner .carousel-caption {
        padding: 0 10px;
    }
    #carouselBanner .carousel-caption h1 {
        font-size: 1.5rem;
    }
    #carouselBanner .carousel-caption p {
        font-size: 1rem;
    }
}
#carouselBanner .carousel-caption {
    text-align: center;
    right: 10%;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
/* 轮播按钮样式 */
#carouselBanner .carousel-control-prev,
#carouselBanner .carousel-control-next {
    position: absolute;
    bottom: 20px;
    top: auto;
    width: auto;
    height: auto;
    background-color: rgba(0,0,0,0.5);
    border-radius: 4px;
    padding: 10px;
    border: 1px solid #ddd;
}
#carouselBanner .carousel-control-prev {
    left: 150px;
}
#carouselBanner .carousel-control-next {
    right: auto;
    left: 200px;
}
#carouselBanner .carousel-control-prev-icon,
#carouselBanner .carousel-control-next-icon {
    width: 26px;
    height: 26px;
}

/* 模块标题 */
.section-title {
    text-align: center;
    margin: 50px 0 30px;
    position: relative;            
}
.section-title a{
    text-decoration: none;
}
.section-title h2 {
    font-size: 28px;
    color: #8c7853;
    font-weight: 500;
    font-family: "方正粗宋简体", "Microsoft Yahei", sans-serif;
}
.tab-navigation a{
    text-decoration: none;
}
.tab-navigation h3{
    font-family: "方正粗宋简体", "Microsoft Yahei", sans-serif;
    
}
.section-title p {
    font-size: 16px;
    color: #999;
    margin-top: 8px;
}
/* 单位简介 */
.intro-box {
    margin-bottom: 50px;
}
.intro-text {
    line-height: 1.8;
    font-size: 16px;
    color: #666;            
    text-decoration: none;
}
.map-link {
    display: inline-block;
    margin-top: 20px;
    border: 1px solid #c5c5c5;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.map-link img{
    width: 17rem;
}
.map-link:hover {
    border: 1px solid #c5c5c5;    
    transform: translateY(-3px);
    transition: all 0.3s ease;
}
/* 单位简介链接 */
.about-link {
    color: #666;
    text-decoration: none;
}
.about-link:hover { 
    transform: translateX(20px);
    transition: all 0.5s ease;
}
/* 单位简介文字特效 */
.intro-text p {
    transition: all 0.5s ease;
}
.intro-text p:hover {
    transform: scale(1.02);
    line-height: 1.9;
}
/* 墓地展示卡片 */
.cemetery-card {
    margin-bottom: 30px;
    border: none;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cemetery-card img {
    border-radius: 4px 4px 0 0;
}
.cemetery-card .card-body {
    padding: 15px;
}
.cemetery-card .card-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.cemetery-card .card-text {
    font-size: 16px;
    color: #8c7853;
}
/* 新闻动态 */
.news-list {
    list-style: none;
    padding: 0;
}
.news-list li {
    padding: 20px 10px;
    border: 1px dashed #eee;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    white-space: nowrap;
}
.news-list li a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(95% - 80px);
}
.news-list li a:hover {
    color: #8c7853;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
.news-list li span {
    color: #999;
    font-size: 14px;
    margin-left: 10px;
    float: right;
    white-space: nowrap;
}
/* 图片新闻 */
#carouselNews {
    height: 400px;
    overflow: hidden;
}
#carouselNews .carousel-inner {
    height: 100%;
}
#carouselNews .carousel-item {
    height: 100%;
}
#carouselNews .carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/* 新闻标题遮罩 */
.news-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 30px 20px 20px;
    color: white;
    text-align: left;
    border-radius: 0 0 8px 8px;
}
.news-caption h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}
/* 新闻链接 */
.news-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}
.news-link:hover .news-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}
/* 殡葬文化 */
.culture-box {
    margin-bottom: 50px;
}
.culture-accordion .accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 4px;
}
.culture-accordion .accordion-button {
    background-color: #fff;
    color: #666;
    font-size: 16px;
    position: relative;
    padding-right: 40px;
    border: none;
    box-shadow: none;
}
.culture-accordion .accordion-body {
    border: none;
    box-shadow: none;
    margin-left: 54px;
}
 
.culture-accordion .accordion-button::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
    color: #8c7853;
    background-image: none;
}
.culture-accordion .accordion-button:not(.collapsed) {
    background-color: #ffffff;
    color: #333;
}
.culture-accordion .accordion-button:not(.collapsed)::after {
    content: '-';
    background-image: none;
}
/* 手风琴数字前缀 */
.accordion-number {
    color: #bedbc7;
    font-weight: bold;
    margin-right: 30px;
    font-size: 24px;
}
.culture-link {
    color: #999;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.8;
    max-height: 5.4em;
}
.culture-link:hover {
    color: #8c7853;
    text-decoration: underline;
    transform: translateX(5px);
    transition: all 0.3s ease;
}
.culture-accordion .accordion-item{
    border-bottom: 1px solid #eee;
}
.culture-txt {
    margin-bottom: 20px;
    color: #5f4244;
    border-bottom: 1px solid #eee;
    padding-bottom: 22px;
}
/* 底部footer */
footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0 20px;
    font-size: 16px;
}
.footer-contact {
    line-height: 1.8;
}
.footer-qrcode img {
    max-width: 120px;
}

/* 标签页导航样式 */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 15px 20px;
    margin: 0 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.tab-btn h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: #333;
}
.tab-btn p {
    margin: 0;
    font-size: 14px;
    color: #999;
}
.tab-btn:hover,
.tab-btn.active {
    border-bottom: 3px solid #d4a76a;
}
.tab-btn:hover h3,
.tab-btn.active h3 {
    color: #d4a76a;
}
/* 标签内容样式 */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* 新闻详情页样式 */
.news-detail-page {
    margin-top: 9rem;
    padding: 40px 0;
}
.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.news-detail-title {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}
.news-detail-meta {
    color: #999;
    font-size: 14px;
}
.news-detail-meta span {
    margin: 0 15px;
}
.news-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.news-detail-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}
.news-detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}
/* 附件下载 */
.attachment-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f6f2;
    border-radius: 8px;
}
.attachment-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8c7853;
}
.attachment-list {
    list-style: none;
    padding: 0;
}
.attachment-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}
.attachment-list li:last-child {
    border-bottom: none;
}
.attachment-link {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}
.attachment-link:hover {
    color: #8c7853;
    transform: translateX(5px);
}
.attachment-icon {
    width: 40px;
    height: 40px;
    background-color: #8c7853;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}
.attachment-info {
    flex: 1;
}
.attachment-name {
    font-size: 15px;
    font-weight: 500;
}
.attachment-size {
    font-size: 13px;
    color: #999;
}
/* 上一篇/下一篇 */
.news-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.news-navigation a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}
.news-navigation a:hover {
    color: #8c7853;
}
.news-navigation .prev-news {
    text-align: left;
}
.news-navigation .next-news {
    text-align: right;
}
.news-navigation-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}
.news-navigation-title {
    font-size: 15px;
    color: #333;
}
/* 返回列表按钮 */
.back-to-list {
    margin-top: 30px;
    text-align: center;
}
.back-to-list a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #8c7853;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.back-to-list a:hover {
    background-color: #7a6845;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 新闻列表 */
.news-list-page {
    list-style: none;
    padding: 0;
    margin-top: 9rem;
}
.news-list-page li {
    padding: 20px;
    border: 1px solid #eee;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.news-list-page li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.news-list-page li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}
.news-list-page li a:hover {
    color: #8c7853;
}
.news-date {
    color: #999;
    font-size: 14px;
    margin-top: 8px;
}
.news-summary {
    color: #666;
    font-size: 15px;
    margin-top: 10px;
    line-height: 1.6;
}
/* 分页 */
.pagination {
    justify-content: center;
    margin-top: 40px;
}
.page-link {
    color: #666;
    border: 1px solid #eee;
    margin: 0 5px;
}
.page-link:hover {
    color: #8c7853;
    background-color: #f8f6f2;
    border-color: #8c7853;
}
.page-item.active .page-link {
    background-color: #8c7853;
    border-color: #8c7853;
    color: white;
}
/* 图标样式 */
footer .iconfont{
    font-size: 18px;
    margin-right: 10px;
}