/**
 * 天堂之家 PC端主题（与移动端布局不同：多栏、通栏头部、侧栏、页脚三栏）
 */
/* ============ 顶部条 ============ */
.topbar { background: var(--brown-dark); color: #c9ddf1; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: #c9ddf1; margin-left: 14px; }
.topbar a:hover { color: #fff; }
.topbar .hotline b { color: var(--gold); font-weight: 600; }
.region-entry { cursor: pointer; }
.region-entry b { color: var(--gold); font-weight: 600; }

/* ============ 主头部 ============ */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(30, 70, 120, .08); position: sticky; top: 0; z-index: 100; }
.site-header .wrap { display: flex; align-items: center; gap: 34px; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark {
  width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brown), #74b3ec);
  display: flex; align-items: center; justify-content: center; color: var(--gold-light);
  font-size: 24px; font-weight: 700; font-family: "KaiTi", serif;
}
.logo .name { font-size: 26px; font-weight: 700; color: var(--brown-dark); letter-spacing: 2px; font-family: "KaiTi", "STKaiti", serif; }
.logo .slogan { font-size: 12px; color: var(--text-light); margin-top: 2px; letter-spacing: 1px; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 16px; color: var(--text); position: relative;
}
.main-nav a:hover { color: var(--brown); background: #e9f2fb; }
.main-nav a.on { color: #fff; background: var(--brown); font-weight: 600; }
.header-search { display: flex; }
.header-search input {
  width: 200px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
  padding: 9px 12px; font-size: 13px; outline: none;
}
.header-search button {
  border: 0; background: var(--brown); color: #fff; padding: 0 16px; border-radius: 0 8px 8px 0; font-size: 14px;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ============ 首页 ============ */
.home-banner { margin-top: 18px; }
.home-banner .grid { display: grid; grid-template-columns: 2.6fr 1fr; gap: 16px; }
.swiper { position: relative; border-radius: 12px; overflow: hidden; height: 320px; background: #d8e9f8; }
.swiper .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; display: flex; align-items: center; justify-content: center; }
.swiper .slide.on { opacity: 1; }
.swiper .slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.swiper .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.swiper .dots i.on { background: var(--gold); }

/* 黄历卡 */
.almanac-card {
  background: linear-gradient(160deg, #fff, #eef6ff); border: 1px solid var(--gold-light);
  border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column;
}
.almanac-card .head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--gold-light); padding-bottom: 8px; }
.almanac-card .head .t { font-size: 15px; font-weight: 700; color: var(--brown-dark); }
.almanac-card .head .d { font-size: 12px; color: var(--text-light); }
.almanac-card .lunar { margin: 10px 0 4px; font-size: 15px; color: var(--brown); font-weight: 600; }
.almanac-card .gz { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.almanac-card .yj { display: flex; gap: 8px; }
.almanac-card .yj span { flex: 1; font-size: 12px; background: #f7efe3; border-radius: 6px; padding: 6px 8px; line-height: 1.5; }
.almanac-card .yj .ji { color: var(--red); }
.almanac-card .extra { margin-top: 8px; font-size: 12px; color: var(--text-light); display: flex; justify-content: space-between; }

/* 模块入口 */
.module-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.module-grid a {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center;
  padding: 16px 6px; transition: all .18s;
}
.module-grid a:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(40, 90, 150, .1); }
.module-grid .ico { font-size: 30px; display: block; margin-bottom: 8px; }
.module-grid .t { display: block; font-size: 15px; color: var(--text); font-weight: 600; }
.module-grid .s { display: block; font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* 栏目块 */
.home-section { margin-top: 30px; }
.home-section .sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.home-section .sec-head h2 { font-size: 20px; color: var(--brown-dark); margin: 0; font-family: "KaiTi", serif; letter-spacing: 1px; }
.home-section .sec-head h2::before { content: ""; display: inline-block; width: 4px; height: 18px; background: var(--gold); margin-right: 10px; border-radius: 2px; }
.home-section .more { font-size: 13px; color: var(--text-light); }
.home-section .more:hover { color: var(--brown); }
.home-2col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }

/* 新闻列表 */
.news-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item .d { flex-shrink: 0; width: 58px; text-align: center; background: #e9f2fb; border-radius: 8px; padding: 6px 0; }
.news-item .d b { display: block; font-size: 20px; color: var(--brown); }
.news-item .d span { font-size: 12px; color: var(--text-light); }
.news-item h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.news-item h3 a:hover { color: var(--brown); }
.news-item p { margin: 0; font-size: 13px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 单位卡片 */
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.unit-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: all .18s; display: flex; flex-direction: column; }
.unit-card:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(40, 90, 150, .12); transform: translateY(-2px); }
.unit-card .cover { height: 150px; background: #d8e9f8; overflow: hidden; }
.unit-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.unit-card .body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.unit-card h3 { margin: 0 0 6px; font-size: 16px; }
.unit-card h3 .badge { font-size: 11px; background: var(--gold-light); color: var(--brown); border-radius: 4px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; font-weight: 400; }
.unit-card .meta { font-size: 12px; color: var(--text-light); margin-bottom: 6px; line-height: 1.6; }
.unit-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.unit-card .price { color: var(--red); font-size: 14px; font-weight: 600; }

/* 祭祀馆卡片 */
.hall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hall-card { background: linear-gradient(170deg, #fff, #eef6ff); border: 1px solid var(--gold-light); border-radius: 12px; padding: 18px; text-align: center; }
.hall-card .photo { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 10px; background: #d8e9f8; overflow: hidden; border: 3px solid var(--gold-light); }
.hall-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.hall-card h3 { margin: 0 0 4px; font-size: 17px; }
.hall-card .dates { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.hall-card .stat { font-size: 12px; color: var(--text-light); }
.hall-card .stat b { color: var(--brown); }
.hall-card .go { margin-top: 10px; display: inline-block; background: var(--brown); color: #fff; font-size: 13px; border-radius: 20px; padding: 6px 22px; }
.hall-card .go:hover { background: var(--brown-dark); }

/* 数据统计条 */
.stat-bar { margin-top: 30px; background: var(--brown-dark); border-radius: 12px; color: #c9ddf1; display: flex; }
.stat-bar .item { flex: 1; text-align: center; padding: 18px 0; }
.stat-bar .item + .item { border-left: 1px solid rgba(201, 221, 241, .18); }
.stat-bar b { display: block; font-size: 26px; color: var(--gold); font-weight: 700; }
.stat-bar span { font-size: 13px; }

/* 治丧指南 */
.guide-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.guide-steps .step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; position: relative; }
.guide-steps .step .no { position: absolute; right: 12px; top: 8px; font-size: 30px; color: #d3e5f6; font-weight: 700; }
.guide-steps .step .t { font-weight: 600; margin-bottom: 6px; color: var(--brown-dark); }
.guide-steps .step p { margin: 0; font-size: 12px; color: var(--text-light); line-height: 1.7; }

/* ============ 列表页 ============ */
.page-head { background: linear-gradient(180deg, #e7f1fa, var(--bg)); padding: 26px 0 20px; margin-bottom: 20px; }
.page-head h1 { margin: 0 0 6px; font-size: 26px; color: var(--brown-dark); font-family: "KaiTi", serif; }
.page-head .crumb { font-size: 13px; color: var(--text-light); }
.page-head .crumb a:hover { color: var(--brown); }
.list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; padding-bottom: 40px; }
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar .lab { font-size: 13px; color: var(--text-light); margin-right: 4px; }
.filter-bar a {
  font-size: 13px; padding: 4px 12px; border-radius: 14px; color: var(--text-light); border: 1px solid transparent;
}
.filter-bar a:hover { color: var(--brown); }
.filter-bar a.on { background: var(--brown); color: #fff; }
.filter-bar .search-mini { margin-left: auto; display: flex; }
.filter-bar .search-mini input { border: 1px solid var(--line); border-radius: 6px 0 0 6px; padding: 6px 10px; font-size: 13px; width: 160px; outline: none; }
.filter-bar .search-mini button { border: 0; background: var(--brown); color: #fff; border-radius: 0 6px 6px 0; padding: 0 12px; font-size: 13px; }
.list-news { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.side-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--brown-dark); }
.side-card h3::before { content: ""; display: inline-block; width: 3px; height: 14px; background: var(--gold); margin-right: 8px; border-radius: 2px; }
.side-card ul { margin: 0; padding: 0; list-style: none; }
.side-card li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-card li:last-child { border-bottom: 0; }
.side-card li a::before { content: "·"; color: var(--gold); font-weight: 700; margin-right: 6px; }
.side-card li a:hover { color: var(--brown); }
.side-card li .date { float: right; font-size: 12px; color: var(--text-light); }

/* ============ 详情页 ============ */
.detail-box { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 30px; }
.detail-box h1 { margin: 0 0 12px; font-size: 24px; line-height: 1.5; }
.detail-meta { font-size: 13px; color: var(--text-light); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; display: flex; gap: 18px; flex-wrap: wrap; }
.detail-content { font-size: 15px; line-height: 1.9; }
.detail-content img { max-width: 100%; }
.unit-detail-head { display: grid; grid-template-columns: 380px 1fr; gap: 22px; margin-bottom: 20px; }
.unit-detail-head .cover { border-radius: 10px; overflow: hidden; height: 260px; background: #d8e9f8; }
.unit-detail-head .cover img { width: 100%; height: 100%; object-fit: cover; }
.kv-list { margin: 0; }
.kv-list li { display: flex; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; list-style: none; }
.kv-list li .k { width: 90px; color: var(--text-light); flex-shrink: 0; }
.tagline { margin: 10px 0; }
.tagline span { display: inline-block; background: #e7f1fa; color: var(--brown); font-size: 12px; border-radius: 4px; padding: 3px 10px; margin: 0 6px 6px 0; }

/* ============ 地图/吉日 ============ */
.map-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 340px 1fr; height: 640px; }
.map-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.map-side .filters { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.map-side .poi-list { flex: 1; overflow: auto; }
.poi-item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.poi-item:hover, .poi-item.on { background: #eff6fd; }
.poi-item h4 { margin: 0 0 4px; font-size: 14px; }
.poi-item .addr { font-size: 12px; color: var(--text-light); line-height: 1.6; }
#mapContainer { width: 100%; height: 100%; }
.jiri-layout { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.jiri-form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; position: sticky; top: 96px; }
.jiri-result { min-height: 400px; }
.day-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 12px; display: flex; gap: 18px; }
.day-card .date { text-align: center; flex-shrink: 0; width: 92px; background: #e9f2fb; border-radius: 10px; padding: 10px 4px; }
.day-card .date b { display: block; font-size: 22px; color: var(--brown); }
.day-card .date span { font-size: 12px; color: var(--text-light); }
.day-card .info { flex: 1; }
.day-card .info h3 { margin: 0 0 4px; font-size: 16px; }
.day-card .info .lunar { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.day-card .info .reason { font-size: 13px; color: var(--green); line-height: 1.7; }
.day-card .star { color: var(--gold); font-size: 13px; }

/* ============ 祭祀 ============ */
.memorial-create-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.tpl-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tpl-item { border: 2px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; background: #fff; }
.tpl-item.on { border-color: var(--gold); background: #eff6fd; }
.tpl-item .sw { height: 64px; border-radius: 8px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.tpl-item .t { font-size: 13px; }
.upload-box { border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; cursor: pointer; color: var(--text-light); font-size: 13px; transition: all .15s; }
.upload-box:hover { border-color: var(--gold); color: var(--brown); }
.upload-box img { max-width: 120px; max-height: 120px; border-radius: 8px; display: block; margin: 0 auto 8px; }

/* 祭拜厅 */
.hall-page { background: #edf4fb; }
.hall-hero { text-align: center; padding: 40px 16px 26px; }
.hall-hero .photo { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(30,70,120,.18); overflow: hidden; margin: 0 auto 14px; background: #d8e9f8; }
.hall-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.hall-hero h1 { margin: 0 0 6px; font-size: 26px; color: var(--brown-dark); font-family: "KaiTi", serif; }
.hall-hero .dates { color: var(--text-light); font-size: 14px; }
.hall-hero .epitaph { margin-top: 10px; color: var(--text-light); font-style: italic; }
.offer-bar { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 18px 0; }
.offer-btn { background: #fff; border: 1px solid var(--gold-light); border-radius: 12px; padding: 12px 18px; text-align: center; min-width: 86px; transition: all .15s; }
.offer-btn:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(40,90,150,.12); }
.offer-btn .i { font-size: 26px; display: block; }
.offer-btn .t { font-size: 13px; color: var(--text); margin-top: 4px; display: block; }
.hall-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.bgm-ctrl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-light); cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--brown-dark); color: #b5cde6; margin-top: 44px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 34px 0 24px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; font-weight: 600; }
.site-footer p { font-size: 13px; line-height: 2; margin: 0; }
.site-footer a { font-size: 13px; line-height: 2.2; color: #b5cde6; display: block; }
.site-footer a:hover { color: var(--gold); }
.footer-links { border-top: 1px solid rgba(181, 205, 230, .15); padding: 14px 0; font-size: 13px; }
.footer-links .labs { color: #7f9bb8; margin-right: 12px; }
.footer-links a { display: inline-block; margin: 0 12px 0 0; line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(181, 205, 230, .15); padding: 14px 0; text-align: center; font-size: 12px; color: #7f9bb8; }

/* 回到顶部 */
.back-top { position: fixed; right: 24px; bottom: 80px; width: 44px; height: 44px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brown); font-size: 18px; display: none; z-index: 90; box-shadow: 0 4px 12px rgba(30,70,120,.1); }
.back-top:hover { border-color: var(--gold); }
