/* 北京乾安阁殡葬信息网 - 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #FAF8F5; color: #333; line-height: 1.6; }
a { color: #8B7355; text-decoration: none; transition: color 0.3s; }
a:hover { color: #6B5344; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.logo h1 { font-size: 24px; color: #8B7355; font-weight: 600; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: #666; font-size: 16px; padding: 5px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #8B7355; border-bottom-color: #8B7355; }
.header-phone { background: #8B7355; color: #fff; padding: 8px 20px; border-radius: 20px; }
.header-phone strong { margin-left: 5px; }

/* 页面标题 */
.page-header { background: linear-gradient(135deg, #8B7355, #A68B6A); color: #fff; padding: 40px 0; text-align: center; }
.page-header h1 { font-size: 32px; }

/* Hero区域 */
.hero { background: linear-gradient(135deg, #F5F5DC, #FAF8F5); min-height: 400px; display: flex; align-items: center; justify-content: center; }
.hero-default { text-align: center; }
.hero-default h2 { font-size: 48px; color: #8B7355; margin-bottom: 20px; }
.hero-default p { font-size: 20px; color: #999; }

.banner-slider { width: 100%; height: 400px; overflow: hidden; position: relative; }
.banner-item { width: 100%; height: 400px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.banner-content { background: rgba(0,0,0,0.5); padding: 40px; text-align: center; color: #fff; border-radius: 10px; }
.banner-content h2 { font-size: 36px; margin-bottom: 15px; }
.banner-content p { font-size: 18px; margin-bottom: 20px; }
.btn { display: inline-block; padding: 12px 30px; background: #8B7355; color: #fff; border-radius: 5px; }
.btn:hover { background: #6B5344; color: #fff; }

/* 区块 */
.section { padding: 60px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 2px solid #8B7355; padding-bottom: 15px; }
.section-header h2 { font-size: 24px; color: #8B7355; }
.more { color: #8B7355; font-size: 14px; }

/* 陵园卡片 */
.cemetery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.cemetery-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.cemetery-card:hover { transform: translateY(-5px); box-shadow: 0 5px 25px rgba(0,0,0,0.12); }
.cemetery-img { height: 180px; overflow: hidden; background: #eee; }
.cemetery-img img { width: 100%; height: 100%; object-fit: cover; }
.no-img { height: 100%; display: flex; align-items: center; justify-content: center; color: #999; }
.cemetery-info { padding: 20px; }
.cemetery-info h3 { font-size: 18px; margin-bottom: 10px; }
.cemetery-info h3 a { color: #333; }
.cemetery-price { color: #C4A484; font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.cemetery-district, .cemetery-address { color: #999; font-size: 14px; margin-bottom: 5px; }
.cemetery-desc { color: #666; font-size: 14px; line-height: 1.5; }

/* 陵园列表 */
.filter-bar { background: #fff; padding: 15px 20px; border-radius: 10px; margin-bottom: 30px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.filter-bar a { padding: 8px 20px; border-radius: 20px; color: #666; }
.filter-bar a.active { background: #8B7355; color: #fff; }
.filter-bar select { padding: 8px 15px; border: 1px solid #ddd; border-radius: 5px; }

/* 陵园详情 */
.cemetery-detail { padding: 30px 0; }
.breadcrumb { margin-bottom: 20px; color: #999; }
.breadcrumb a { color: #8B7355; }
.detail-meta { display: flex; gap: 30px; color: #666; margin-bottom: 30px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }
.detail-content { background: #fff; padding: 30px; border-radius: 10px; margin: 20px 0; }
.detail-content h2 { color: #8B7355; border-bottom: 1px solid #eee; padding-bottom: 10px; margin: 25px 0 15px; }
.detail-content h2:first-child { margin-top: 0; }
.content-text { line-height: 1.8; color: #666; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 8px 0; padding-left: 25px; position: relative; }
.feature-list li:before { content: "✓"; position: absolute; left: 0; color: #8B7355; }
.detail-sidebar { position: sticky; top: 100px; }
.contact-card { background: #fff; padding: 25px; border-radius: 10px; text-align: center; box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
.contact-card h3 { color: #8B7355; margin-bottom: 15px; }
.contact-card p { margin: 10px 0; color: #666; }
.related-cemeteries { margin-top: 50px; }
.related-cemeteries h2 { margin-bottom: 20px; color: #8B7355; }

/* 攻略列表 */
.guide-list-page { background: #fff; border-radius: 10px; }
.guide-item-full { display: flex; gap: 20px; padding: 25px; border-bottom: 1px solid #eee; }
.guide-thumb { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.guide-content { flex: 1; }
.guide-content h2 { font-size: 18px; margin-bottom: 10px; }
.guide-content h2 a { color: #333; }
.guide-summary { color: #666; margin-bottom: 10px; }
.guide-meta { font-size: 13px; color: #999; display: flex; gap: 20px; }

/* 问答 */
.qa-list-page { background: #fff; border-radius: 10px; }
.qa-item-full { padding: 25px; border-bottom: 1px solid #eee; }
.qa-q { font-size: 16px; color: #333; margin-bottom: 15px; }
.qa-a { color: #666; padding-left: 20px; line-height: 1.6; }

/* 服务页面 */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; margin: 30px 0; }
.service-item { background: #fff; padding: 25px; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.service-item h3 { color: #8B7355; margin-bottom: 10px; }
.service-contact { background: linear-gradient(135deg, #8B7355, #A68B6A); color: #fff; padding: 40px; border-radius: 10px; text-align: center; margin-top: 40px; }
.service-contact h3 { margin-bottom: 20px; }
.service-contact p { margin: 10px 0; font-size: 18px; }
.service-contact .btn { background: #fff; color: #8B7355; }

/* 联系页面 */
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-box, .contact-form-box { background: #fff; padding: 30px; border-radius: 10px; }
.contact-list { list-style: none; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid #eee; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { width: 100%; padding: 15px; font-size: 16px; }

/* 关于我们 */
.about-content { background: #fff; padding: 40px; border-radius: 10px; }
.about-content h2 { color: #8B7355; margin: 30px 0 15px; }
.about-content h2:first-child { margin-top: 0; }
.about-content p, .about-content li { line-height: 1.8; color: #666; }
.about-content ul { padding-left: 20px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 10px; margin: 30px 0; }
.pagination a { padding: 8px 15px; background: #fff; color: #666; border-radius: 5px; }
.pagination a.active { background: #8B7355; color: #fff; }

/* Flash消息 */
.flash-messages { margin-bottom: 20px; }
.alert { padding: 12px 20px; border-radius: 5px; margin-bottom: 10px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-warning { background: #fff3cd; color: #856404; }

/* 底部 */
.site-footer { background: #333; color: #aaa; padding: 50px 0 20px; margin-top: 60px; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #aaa; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #444; font-size: 14px; }

/* 无数据 */
.no-data { text-align: center; color: #999; padding: 50px; }

/* 响应式 */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .main-nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .cemetery-grid { grid-template-columns: 1fr; }
    .contact-page { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); }
    .guide-item-full { flex-direction: column; }
    .guide-thumb { width: 100%; height: auto; }
}
