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

:root {
    --primary-color: #2d7d46;
    --primary-dark: #1e5a30;
    --primary-light: #4a9d63;
    --secondary-color: #8b7355;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f0;
    --bg-white: #fff;
    --border-color: #e0e0d5;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 顶部信息栏 */
.top-bar {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-right span {
    margin-left: 20px;
}

/* 主导航 */
.main-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

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

.logo-img {
    width: 160px;
    height: auto;
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-size: 15px;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
    font-weight: 500;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

/* Banner区域 */
.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* 子页面Banner - 单张图片 */
.banner .banner-content {
    width: 100%;
    height: 400px;
}
.banner .banner-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 首页Banner - 轮播 */
.banner-carousel {
    width: 100%;
    height: 500px;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.banner-slide.active { opacity: 1; z-index: 1; }

.banner-slide-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
}
.banner-slide-content h1 {
    color: #fff;
    font-size: 36px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    letter-spacing: 4px;
    white-space: nowrap;
    margin: 0;
}

.banner-link {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 3;
}

.banner-dots {
    position: absolute;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.banner-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dot.active {
    background: #fff;
    transform: scale(1.2);
}
.banner-dot:hover { background: rgba(255,255,255,0.7); }

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.section-header h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 3px;
    margin-top: 15px;
}

/* 园区简介 */
.about-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-left h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-left h3 span {
    font-size: 16px;
    color: var(--text-light);
    font-weight: normal;
    margin-left: 10px;
}

.about-left > p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.feature-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.about-right img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* 服务项目 */
.service-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.service-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 30px 15px 15px;
    color: #fff;
}

.service-overlay h4 {
    font-size: 16px;
    font-weight: 500;
}

/* 福位赏析 */
.products-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h4 {
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 5px;
}

.product-info p {
    font-size: 13px;
    color: var(--text-light);
}

.more-btn {
    text-align: center;
    margin-top: 40px;
}

.more-btn a {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s;
}

.more-btn a:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 最新资讯 */
.news-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.news-left img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.news-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: background-color 0.3s;
}

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

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 10px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
}

.news-date .day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    margin-top: 5px;
}

.news-text h4 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.news-text h4 a:hover {
    color: var(--primary-color);
}

.news-text p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 殡葬文化 */
.culture-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.culture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.culture-left {
    display: flex;
    justify-content: center;
}

.culture-left img {
    max-width: 400px;
    border-radius: 8px;
}

.culture-right h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.culture-right p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
    text-align: justify;
}

/* 服务流程 */
.process-section {
    padding: 60px 0;
    background-color: var(--bg-white);
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-num {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

.step-text {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.step-arrow {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

/* 页脚 */
.main-footer {
    background-color: #2c3e2d;
    color: #ccc;
    padding: 50px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-img {
    width: 140px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #aaa;
}

.footer-center h4,
.footer-right h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-center p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #aaa;
}

.footer-center span {
    color: var(--primary-light);
}

.footer-right ul {
    list-style: none;
}

.footer-right li {
    margin-bottom: 10px;
}

.footer-right a {
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
}

.footer-bottom .beian {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    display: inline-block;
}

.footer-bottom .beian a {
    color: #aaa;
    text-decoration: none;
    display: inline;
    vertical-align: middle;
}

.footer-bottom .gw-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 4px;
    display: inline;
}

.copyright p {
    font-size: 13px;
    color: #888;
}

.copyright .beian {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    display: inline-block;
}

.copyright .beian a {
    color: #aaa;
    text-decoration: none;
    display: inline;
    vertical-align: middle;
}

.copyright .gw-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 4px;
    display: inline;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    font-size: 20px;
}

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

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .news-content,
    .culture-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-steps {
        gap: 10px;
    }

    .step-arrow {
        display: none;
    }
}

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

    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .news-content {
        grid-template-columns: 1fr;
    }

    .news-left img {
        height: auto;
    }

    .step-item {
        width: calc(50% - 10px);
    }

    .process-steps {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        flex-direction: row;
        gap: 10px;
        width: fit-content;
    }

    .step-item {
        width: 100%;
    }
}

/* 详情页样式 */
.detail-article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 30px auto;
}

.detail-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

.detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.detail-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.detail-price {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.detail-description {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.detail-content {
    font-size: 15px;
    color: #444;
    line-height: 2;
    word-wrap: break-word;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6 {
    color: #333;
    margin: 20px 0 10px 0;
    line-height: 1.4;
}

.detail-content ul,
.detail-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}
