/* ===== 基础变量 ===== */
:root {
    --primary-color: #00a896;
    --primary-dark: #008f73;
    --accent-color: #e8a33c;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #f5f7f5;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --border-color: #e5e5e5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* ===== 文本居中 ===== */
.text-center {
    text-align: center;
}

/* ===== 章节通用 ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(26, 122, 58, 0.1);
    color: var(--primary-color);
    font-size: 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

/* ===== 头部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

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

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 15px;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

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

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.phone-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== 移动端菜单 ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

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

.mobile-menu-link.active {
    color: var(--primary-color);
}

/* ===== Banner区域 ===== */
.banner-section {
    position: relative;
    height: 500px;
    margin-top: 70px;
    overflow: hidden;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
}

.banner-slide.active {
    transform: translateX(0);
    z-index: 1;
}

.banner-slide.prev {
    transform: translateX(-100%);
}

.banner-slide .banner-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.banner-slide.active .banner-content {
    opacity: 1;
    transform: translateY(0);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.banner-section:hover .banner-arrow {
    opacity: 1;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.banner-arrow-prev {
    left: 30px;
}

.banner-arrow-next {
    right: 30px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 90, 58, 0.85) 0%, rgba(13, 60, 30, 0.75) 100%);
    display: flex;
    align-items: center;
}

.banner-content {
    color: var(--bg-white);
    text-align: center;
}

.banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.banner-content p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 35px;
}

.banner-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
}

.banner-btn-primary {
    background: var(--bg-white);
    color: var(--primary-color);
}

.banner-btn-primary:hover {
    background: var(--accent-color);
    color: var(--bg-white);
}

.banner-btn-outline {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

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

/* ===== 服务优势 ===== */
.features {
    background: var(--bg-white);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 30px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ===== 代理墓园预览 ===== */
.cemetery-preview {
    background: var(--bg-light);
}

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

.cemetery-card {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-md);
}

.cemetery-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.cemetery-card:hover .cemetery-image {
    transform: scale(1.1);
}

.cemetery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: var(--bg-white);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.cemetery-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cemetery-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.cemetery-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== 百度保障 ===== */
.guarantee {
    background: var(--bg-white);
    padding: 50px 0;
}

.guarantee-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(26, 122, 58, 0.05) 0%, rgba(13, 60, 30, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(26, 122, 58, 0.1);
}

.guarantee-icon {
    flex-shrink: 0;
}

.guarantee-text {
    text-align: left;
}

.guarantee-text h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.guarantee-text p {
    font-size: 15px;
    color: var(--text-light);
}

/* ===== 页脚 ===== */
.footer {
    background: var(--bg-dark);
    color: var(--bg-white);
    padding: 60px 0 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 45px;
    width: auto;
}

.footer-logo .logo-text {
    color: var(--bg-white);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-color);
}

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

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== 悬浮电话 ===== */
.floating-phone {
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 999;
}

.phone-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    animation: phonePulse 2s infinite;
}

.phone-btn:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.phone-text {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

@keyframes phonePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 122, 58, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(26, 122, 58, 0); }
}

/* ===== 页面英雄区 ===== */
.page-hero {
    height: 350px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--bg-white);
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

/* ===== 筛选器 ===== */
.filter-section {
    background: var(--bg-white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 10px 24px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

/* ===== 服务/产品卡片列表 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.card-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: var(--accent-color);
    color: var(--bg-white);
    font-size: 12px;
    border-radius: 15px;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.card-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-link {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--accent-color);
}

/* ===== 详情页 ===== */
.detail-header {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
}

.detail-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.detail-header-content {
    color: var(--bg-white);
    max-width: 800px;
}

.detail-header-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.detail-header-content p {
    font-size: 16px;
    opacity: 0.9;
}

.detail-body {
    padding: 60px 0;
}

.detail-section {
    margin-bottom: 50px;
}

.detail-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.detail-section p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 15px;
}

.detail-list {
    margin: 20px 0;
}

.detail-list li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

/* ===== 富文本内容样式（与后台保持一致） ===== */
.pricing-content,
.document-content,
.funeral-content,
.supply-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.pricing-content > *,
.document-content > *,
.funeral-content > *,
.supply-content > * {
    margin-bottom: 16px;
}

.pricing-content table,
.document-content table,
.funeral-content table,
.supply-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.pricing-content table th,
.document-content table th,
.funeral-content table th,
.supply-content table th,
.pricing-content table td,
.document-content table td,
.funeral-content table td,
.supply-content table td {
    border: 1px solid #e5e5e5;
    padding: 12px 16px;
    text-align: left;
    word-break: break-word;
}

.pricing-content table th,
.document-content table th,
.funeral-content table th,
.supply-content table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: var(--text-dark);
}

.pricing-content table tr:nth-child(even),
.document-content table tr:nth-child(even),
.funeral-content table tr:nth-child(even),
.supply-content table tr:nth-child(even) {
    background-color: #fafafa;
}

.pricing-content table tr:hover,
.document-content table tr:hover,
.funeral-content table tr:hover,
.supply-content table tr:hover {
    background-color: #f5f7fa;
}

.pricing-content h1,
.document-content h1,
.funeral-content h1,
.supply-content h1,
.pricing-content h2,
.document-content h2,
.funeral-content h2,
.supply-content h2,
.pricing-content h3,
.document-content h3,
.funeral-content h3,
.supply-content h3,
.pricing-content h4,
.document-content h4,
.funeral-content h4,
.supply-content h4,
.pricing-content h5,
.document-content h5,
.funeral-content h5,
.supply-content h5,
.pricing-content h6,
.document-content h6,
.funeral-content h6,
.supply-content h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.pricing-content h1,
.document-content h1,
.funeral-content h1,
.supply-content h1 {
    font-size: 26px;
}

.pricing-content h2,
.document-content h2,
.funeral-content h2,
.supply-content h2 {
    font-size: 22px;
}

.pricing-content h3,
.document-content h3,
.funeral-content h3,
.supply-content h3 {
    font-size: 18px;
}

.pricing-content h4,
.document-content h4,
.funeral-content h4,
.supply-content h4 {
    font-size: 16px;
}

.pricing-content h5,
.document-content h5,
.funeral-content h5,
.supply-content h5 {
    font-size: 14px;
}

.pricing-content h6,
.document-content h6,
.funeral-content h6,
.supply-content h6 {
    font-size: 13px;
}

.pricing-content p,
.document-content p,
.funeral-content p,
.supply-content p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.pricing-content ul,
.document-content ul,
.funeral-content ul,
.supply-content ul,
.pricing-content ol,
.document-content ol,
.funeral-content ol,
.supply-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.pricing-content ul li,
.document-content ul li,
.funeral-content ul li,
.supply-content ul li,
.pricing-content ol li,
.document-content ol li,
.funeral-content ol li,
.supply-content ol li {
    margin-bottom: 8px;
}

.pricing-content ul li,
.document-content ul li,
.funeral-content ul li,
.supply-content ul li {
    list-style-type: disc;
}

.pricing-content img,
.document-content img,
.funeral-content img,
.supply-content img,
.detail-section img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
    margin: 16px 0 !important;
    vertical-align: middle !important;
    display: inline-block !important;
}

.pricing-content strong,
.document-content strong,
.funeral-content strong,
.supply-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.pricing-content blockquote,
.document-content blockquote,
.funeral-content blockquote,
.supply-content blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-light);
    color: var(--text-light);
}

/* ===== 详情页侧边栏 ===== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.detail-sidebar {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.sidebar-info {
    margin-bottom: 25px;
}

.sidebar-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-info-item:last-child {
    border-bottom: none;
}

.sidebar-info-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.sidebar-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 20px;
}

.sidebar-phone:hover {
    background: var(--accent-color);
}

.sidebar-tip {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.sidebar-tip p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== 资讯列表 ===== */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.news-image {
    width: 200px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 25px;
    flex: 1;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
}

.news-tag {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(26, 122, 58, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
}

/* ===== 联系信息卡 ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-card .phone-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

/* ===== 页面内容区 ===== */
.page-content {
    padding-top: 70px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-content {
        grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cemetery-card:last-child {
        grid-column: span 2;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-content .footer-section:first-child {
        grid-column: span 3;
    }
    .footer-content .footer-section:last-child {
        grid-column: span 3;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }

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

    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .header-phone {
        font-size: 13px;
        gap: 4px;
    }

    .phone-icon {
        width: 14px;
        height: 14px;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .banner-btns {
        flex-direction: column;
        gap: 15px;
    }

    .banner-section {
        height: 400px;
    }

    .banner-arrow {
        width: 40px;
        height: 40px;
        opacity: 0.7;
    }

    .banner-arrow-prev {
        left: 15px;
    }

    .banner-arrow-next {
        right: 15px;
    }

    .banner-arrow svg {
        width: 20px;
        height: 20px;
    }

    .banner-dots {
        bottom: 20px;
    }

    .banner-dot {
        width: 10px;
        height: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 26px;
    }

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

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

    .cemetery-card:last-child {
        grid-column: span 1;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-content .footer-section:first-child,
    .footer-content .footer-section:last-child {
        grid-column: span 1;
    }
    .footer {
        padding: 40px 0 0;
    }
    .footer-content {
        padding-bottom: 30px;
    }
    .footer-logo-img {
        height: 35px;
    }
    .footer-desc {
        font-size: 13px;
    }
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    .footer-links li {
        margin-bottom: 10px;
    }
    .footer-links a {
        font-size: 13px;
    }
    .footer-contact li {
        margin-bottom: 12px;
        font-size: 13px;
    }
    .footer-contact svg {
        width: 16px;
        height: 16px;
    }
    .footer-bottom p {
        font-size: 12px;
    }

    .floating-phone {
        right: 20px;
        bottom: 80px;
    }

    .phone-btn {
        width: 50px;
        height: 50px;
    }

    .detail-header {
        height: 300px;
    }

    .detail-header-content h1 {
        font-size: 28px;
    }

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

    .news-image {
        width: 100%;
        height: 180px;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 图片和文字对齐修复 */
.detail-section img {
    vertical-align: middle !important;
    display: inline-block !important;
}

.detail-body img {
    vertical-align: middle !important;
    display: inline-block !important;
}

.detail-main img {
    vertical-align: middle !important;
    display: inline-block !important;
}

/* 只针对包含图片的段落应用flex布局，保持其他段落的正常换行 */
.pricing-content p:has(img),
.document-content p:has(img),
.funeral-content p:has(img),
.supply-content p:has(img) {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
