/* =========================================================
   随州市装修管家平台 - 前台通用样式（zsgj-* / zsjg-*）
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: #333; background: #fff; }
a { color: #1a5dc9; text-decoration: none; }
a:hover { color: #0f4a9d; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: 14px; outline: none; }

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

/* ---------- 顶部条 ---------- */
.zsgj-topbar { background: #0f2a4a; color: rgba(255,255,255,.85); font-size: 13px; }
.zsgj-topbar .zsgj-container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.zsgj-topbar a { color: rgba(255,255,255,.85); margin-left: 14px; }
.zsgj-topbar a:hover { color: #fff; }
.zsgj-topbar-phone { margin-left: 14px; }

/* ---------- 头部 ---------- */
.zsgj-header { background: #fff; border-bottom: 1px solid #f0f1f3; }
.zsgj-header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.zsgj-logo { display: flex; align-items: center; gap: 12px; }
.zsgj-logo-icon { width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(135deg, #2563eb, #0f2a4a); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.zsgj-logo-text b { display: block; font-size: 20px; color: #0f2a4a; }
.zsgj-logo-text em { font-style: normal; font-size: 12px; color: #9ca3af; }
.zsgj-header-quote { display: flex; gap: 12px; }

/* ---------- 导航 ---------- */
.zsgj-nav { background: #fff; border-bottom: 2px solid #f0f1f3; }
.zsgj-nav-inner { display: flex; gap: 4px; height: 50px; align-items: center; }
.zsgj-nav-inner a { padding: 0 18px; line-height: 50px; color: #374151; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.zsgj-nav-inner a:hover { color: #2563eb; }
.zsgj-nav-inner a.active { color: #2563eb; font-weight: 600; border-bottom-color: #2563eb; }

.zsgj-main { min-height: 60vh; padding: 24px 0 40px; background: #f7f8fa; }

/* ---------- 按钮（含 zsjg- 兼容） ---------- */
.zsgj-btn, .zsjg-btn-primary, .zsjg-btn-line, .zsjg-btn-block, .zsjg-btn-lg, .zsjg-btn-primary-outline { display: inline-block; padding: 9px 22px; border-radius: 6px; font-size: 14px; cursor: pointer; text-align: center; border: 1px solid transparent; line-height: 1.4; }
.zsgj-btn-primary, .zsjg-btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.zsgj-btn-primary:hover, .zsjg-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.zsgj-btn-line, .zsjg-btn-line, .zsjg-btn-primary-outline { background: #fff; border-color: #c7d2fe; color: #2563eb; }
.zsgj-btn-line:hover, .zsjg-btn-line:hover, .zsjg-btn-primary-outline:hover { border-color: #2563eb; color: #2563eb; }
.zsjg-btn-block { display: block; width: 100%; }
.zsjg-btn-lg { padding: 12px 32px; font-size: 16px; }

/* ---------- 区块与网格 ---------- */
.zsgj-section { margin-bottom: 28px; }
.zsgj-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.zsgj-section-head h3 { font-size: 20px; color: #0f2a4a; border-left: 4px solid #2563eb; padding-left: 10px; }
.zsgj-more { color: #9ca3af; font-size: 13px; }
.zsgj-grid, .zsjg-grid-3, .zsgj-grid-3, .zsgj-col-2, .zsgj-col-3 { display: grid; gap: 18px; }
.zsjg-grid-3, .zsgj-grid-3, .zsgj-col-3 { grid-template-columns: repeat(3, 1fr); }
.zsgj-col-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .zsjg-grid-3, .zsgj-grid-3, .zsgj-col-3 { grid-template-columns: repeat(2, 1fr); } .zsgj-col-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .zsjg-grid-3, .zsgj-grid-3, .zsgj-col-3 { grid-template-columns: 1fr; } }

/* ---------- 卡片 ---------- */
.zsgj-card { background: #fff; border: 1px solid #ecf0f5; border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.zsgj-card:hover { box-shadow: 0 8px 24px rgba(15,42,74,.10); transform: translateY(-2px); }
.zsgj-card-img { width: 100%; height: 180px; object-fit: cover; display: block; background: #f3f5f8; }
.zsgj-card-body { padding: 14px 16px; }
.zsgj-card-body h4 { font-size: 15px; color: #1b2a44; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsgj-card-meta { color: #9ca3af; font-size: 12px; line-height: 1.9; }
.zsgj-card-tag, .zsjg-tag-gray, .zsjg-tag-hot { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; background: #eef2ff; color: #2563eb; margin-right: 6px; }
.zsjg-tag-gray { background: #f0f1f3; color: #6b7280; }
.zsjg-tag-hot { background: #fee2e2; color: #dc2626; }

/* ---------- 详情页面板 ---------- */
.zsgj-detail-panel { background: #fff; border-radius: 10px; padding: 24px; border: 1px solid #ecf0f5; margin-bottom: 18px; }
.zsgj-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.zsgj-detail-main, .zsgj-detail-side { min-width: 0; }
.zsgj-detail-title { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #f0f1f3; }
.zsgj-detail-desc { color: #4b5563; line-height: 1.9; }

/* ---------- 面包屑 ---------- */
.zsgj-crumb { color: #9ca3af; font-size: 13px; margin-bottom: 16px; }
.zsgj-crumb a { color: #6b7280; }
.zsgj-crumb a:hover { color: #2563eb; }
.zsgj-page-head { margin-bottom: 18px; }
.zsgj-page-head h3 { font-size: 22px; color: #0f2a4a; }

/* ---------- 表单 ---------- */
.zsgj-form { background: #fff; border-radius: 10px; padding: 26px; border: 1px solid #ecf0f5; max-width: 720px; }
.zsjg-form-narrow { max-width: 460px; }
.zsgj-form-row { margin-bottom: 16px; }
.zsgj-form-label { display: block; margin-bottom: 6px; color: #374151; }
.zsgj-input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; }
.zsgj-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.zsgj-form-tip { font-size: 12px; color: #9ca3af; margin-top: 4px; }
.zsgj-check-grid { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.zsgj-check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ---------- 信息列表 ---------- */
.zsgj-info-list { line-height: 2.1; }
.zsgj-info-list b { color: #6b7280; font-weight: 400; margin-right: 10px; }

/* ---------- 提示 ---------- */
.zsgj-tip, .zsjg-msg-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; padding: 12px 16px; border-radius: 8px; margin: 14px 0; }
.zsjg-msg-warn { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.zsgj-tip-list { line-height: 2; color: #6b7280; }

/* ---------- 空状态 ---------- */
.zsgj-empty { text-align: center; color: #9ca3af; padding: 50px 0; }

/* ---------- 筛选 ---------- */
.zsgj-filter { background: #fff; border-radius: 10px; padding: 16px; margin-bottom: 18px; border: 1px solid #ecf0f5; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zsgj-filter-item { display: flex; align-items: center; gap: 8px; }
.zsgj-filter-item select, .zsgj-filter-item input, .zsgj-filter-search input { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; }
.zsgj-filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.zsgj-filter-search { display: flex; gap: 8px; align-items: center; }
.zsjg-filter-search-lg input { width: 320px; padding: 11px 14px; }

/* ---------- 分页 ---------- */
.zsgj-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.zsgj-pagination a, .zsgj-pagination span { padding: 6px 13px; border: 1px solid #d1d5db; border-radius: 6px; color: #374151; background: #fff; }
.zsgj-pagination a:hover { border-color: #2563eb; color: #2563eb; }
.zsgj-pagination .on { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ---------- 徽标 ---------- */
.zsgj-badge, .zsjg-badge-gray { display: inline-block; background: #2563eb; color: #fff; font-size: 12px; border-radius: 20px; padding: 2px 10px; }
.zsjg-badge-gray { background: #9ca3af; }

/* ---------- 快速入口 ---------- */
.zsgj-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .zsgj-quick { grid-template-columns: repeat(2, 1fr); } }
.zsgj-quick-item { background: #fff; border: 1px solid #ecf0f5; border-radius: 10px; padding: 20px; text-align: center; color: #374151; }
.zsgj-quick-item:hover { border-color: #2563eb; color: #2563eb; }
.zsgj-quick-icon { font-size: 30px; margin-bottom: 10px; }

/* ---------- 案例/活动/公司/小区等列表卡片 ---------- */
.zsgj-article-list { display: flex; flex-direction: column; background: #fff; border-radius: 10px; border: 1px solid #ecf0f5; }
.zsgj-article-line { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #f0f1f3; }
.zsgj-article-line:last-child { border-bottom: none; }
.zsgj-article-line-body { flex: 1; min-width: 0; margin-right: 16px; }
.zsgj-article-line-body h4 { font-size: 15px; margin-bottom: 4px; }
.zsgj-article-line-body h4 a { color: #1b2a44; }
.zsgj-article-summary { color: #9ca3af; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsgj-article-meta-line, .zsgj-article-exts, .zsgj-activity-meta-line, .zsgj-case-meta-line { color: #9ca3af; font-size: 12px; margin-top: 6px; }
.zsgj-article-ext { margin-right: 12px; }
.zsgj-article-cover { width: 600px; max-width: 100%; height: auto; object-fit: cover; border-radius: 6px; }
.zsgj-article-tags { margin-top: 6px; }
.zsgj-article-content { line-height: 2; color: #4b5563; }
.zsgj-article-pager { display: flex; gap: 12px; margin-top: 20px; }

.zsgj-case-card .zsgj-card-img { height: 200px; }
.zsgj-case-actions, .zsgj-case-view { margin-top: 12px; }
.zsgj-case-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

.zsgj-activity-card .zsgj-card-img { height: 170px; }
.zsgj-activity-cover { width: 100%; height: 200px; object-fit: cover; border-radius: 10px; }

.zsgj-community-list, .zsgj-company-list, .zsgj-butler-list { display: flex; flex-direction: column; gap: 14px; }
.zsgj-community-line, .zsgj-company-line, .zsgj-butler-line { background: #fff; border: 1px solid #ecf0f5; border-radius: 10px; padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.zsgj-community-name, .zsgj-company-line-info b { font-size: 17px; color: #111827; }
.zsgj-community-card { text-align: center; }
.zsgj-company-card { background: #fff; border: 1px solid #ecf0f5; border-radius: 10px; padding: 18px; }
.zsgj-company-card-top { display: flex; gap: 14px; align-items: center; }
.zsgj-company-card-top img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f3f5f8; }
.zsgj-company-card-info h4 { font-size: 16px; margin-bottom: 4px; }
.zsgj-company-card-desc, .zsgj-butler-card-desc { color: #9ca3af; font-size: 13px; margin-top: 8px; line-height: 1.8; }
.zsgj-company-stars { color: #f59e0b; font-size: 13px; }
.zsgj-company-quote { margin-top: 12px; }
.zsgj-company-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .zsgj-company-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .zsgj-company-cards { grid-template-columns: 1fr; } }

.zsgj-butler-head { display: flex; gap: 14px; align-items: center; }
.zsgj-butler-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #f3f5f8; }
.zsjg-butler-card { display: flex; flex-direction: column; }
.zsgj-butler-card-desc { flex: 1; }

/* ---------- 报价 ---------- */
.zsgj-quote-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.zsgj-quote-main, .zsgj-quote-side { min-width: 0; }
.zsgj-quote-summary { background: #fff; border-radius: 10px; border: 1px solid #ecf0f5; padding: 20px; }
.zsgj-quote-summary-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #f0f1f3; color: #4b5563; }
.zsgj-quote-budget { margin: 14px 0; }
.zsgj-quote-budget-item { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 16px; margin-right: 10px; cursor: pointer; }
.zsgj-quote-budget-item.on { border-color: #2563eb; background: #eef2ff; color: #2563eb; }
.zsgj-quote-budget-lg { font-size: 16px; font-weight: 600; }
.zsgj-quote-result { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px; padding: 20px; margin-top: 18px; }
.zsgj-total-tip { font-size: 15px; color: #111827; margin-bottom: 8px; }

/* ---------- 对比表 ---------- */
.zsgj-compare-box { background: #fff; border-radius: 10px; border: 1px solid #ecf0f5; overflow: hidden; }
.zsgj-compare-table-wrap { overflow-x: auto; }
.zsgj-compare-table { width: 100%; border-collapse: collapse; }
.zsgj-compare-table th, .zsgj-compare-table td { padding: 12px 16px; border-bottom: 1px solid #f0f1f3; text-align: center; }
.zsgj-compare-table th { background: #f8fafc; color: #6b7280; }
.zsgj-compare-dim, .zsgj-compare-intro { color: #374151; font-weight: 400; }
.zsgj-compare-company { font-weight: 600; color: #111827; }
.zsgj-compare-bar { height: 10px; background: #e5e7eb; border-radius: 5px; overflow: hidden; display: inline-block; width: 120px; vertical-align: middle; }
.zsgj-compare-bar i { display: block; height: 100%; background: #2563eb; }

/* ---------- 明细表格 ---------- */
.zsgj-house-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.zsgj-house-table th, .zsgj-house-table td { border: 1px solid #ecf0f5; padding: 10px 12px; text-align: left; }
.zsgj-house-table th { background: #f8fafc; color: #6b7280; }

/* ---------- 图片画廊 ---------- */
.zsgj-image-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.zsgj-image-gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }

/* ---------- 迷你列表 ---------- */
.zsgj-mini-list { display: flex; flex-direction: column; }
.zsgj-mini-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f1f3; align-items: center; }
.zsgj-mini-item:last-child { border-bottom: none; }
.zsgj-mini-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; background: #f3f5f8; flex-shrink: 0; }
.zsgj-mini-info { flex: 1; min-width: 0; }
.zsgj-mini-info h4 { font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsgj-mini-info p { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* ---------- 侧边 ---------- */
.zsgj-side-nav { background: #fff; border-radius: 10px; border: 1px solid #ecf0f5; overflow: hidden; margin-bottom: 16px; }
.zsgj-side-nav a { display: block; padding: 12px 18px; color: #374151; border-bottom: 1px solid #f0f1f3; }
.zsgj-side-nav a:last-child { border-bottom: none; }
.zsgj-side-nav a.active, .zsgj-side-nav a:hover { color: #2563eb; background: #f8faff; font-weight: 600; }
.zsgj-side-company, .zsgj-side-community, .zsgj-side-butler, .zsgj-side-sub { background: #fff; border-radius: 10px; border: 1px solid #ecf0f5; padding: 18px; margin-bottom: 16px; }

/* ---------- Hero ---------- */
.zsgj-detail-hero { display: flex; gap: 18px; background: #fff; border-radius: 10px; padding: 22px; border: 1px solid #ecf0f5; margin-bottom: 18px; align-items: center; }
.zsgj-detail-hero-img { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; background: #f3f5f8; flex-shrink: 0; }
.zsgj-detail-hero-info { flex: 1; }
.zsgj-detail-hero-info h3 { font-size: 22px; color: #111827; }
.zsgj-detail-hero-company { color: #6b7280; margin: 6px 0 10px; }
.zsgj-hero-address, .zsgj-hero-tags { color: #9ca3af; font-size: 13px; margin-top: 6px; }
.zsgj-hero-actions { display: flex; gap: 12px; margin-top: 14px; }

/* ---------- 横幅轮播 ---------- */
.zsgj-banner { position: relative; border-radius: 0; overflow: hidden; margin-bottom: 28px; background: #0f2a4a; }
.zsgj-banner-slides { display: flex; transition: transform .5s ease; }
.zsgj-banner-item { flex: 0 0 100%; position: relative; height: 300px; background-size: cover; background-position: center; }
.zsgj-banner-item a { position: absolute; inset: 0; z-index: 1; }
.zsgj-banner-caption { position: absolute; left: 40px; bottom: 34px; color: #fff; z-index: 2; }
.zsgj-banner-caption h3 { font-size: 28px; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.zsgj-banner-caption p { font-size: 14px; opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.zsgj-banner-dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 8px; z-index: 2; }
.zsgj-banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.zsgj-banner-dot.on { background: #fff; }

/* ---------- 用户中心 ---------- */
.zsgj-uc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; }
@media (max-width: 900px) { .zsgj-uc-layout { grid-template-columns: 1fr; } }
.zsgj-uc-side, .zsgj-uc-main { min-width: 0; }
.zsgj-uc-user { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; border: 1px solid #ecf0f5; padding: 18px; margin-bottom: 16px; }
.zsgj-uc-avatar { width: 56px; height: 56px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 600; }
.zsjg-uc-nav a { display: block; padding: 12px 18px; color: #374151; border-bottom: 1px solid #f0f1f3; }
.zsjg-uc-nav a.active { color: #2563eb; font-weight: 600; }

/* ---------- 认证 ---------- */
.zsjg-auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f2a4a, #2563eb); }
.zsgj-auth-box { width: 400px; background: #fff; border-radius: 12px; padding: 36px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.zsgj-auth-box h3 { font-size: 22px; margin-bottom: 22px; text-align: center; color: #111827; }
.zsgj-auth-link, .zsgj-auth-tip { text-align: center; margin-top: 16px; font-size: 13px; color: #9ca3af; }

/* ---------- 消息列表 ---------- */
.zsgj-msg-list { display: flex; flex-direction: column; gap: 12px; }
.zsgj-msg-item { background: #fff; border: 1px solid #ecf0f5; border-radius: 10px; padding: 16px; display: flex; justify-content: space-between; gap: 12px; }
.zsgj-msg { text-align: center; color: #9ca3af; padding: 40px 0; }

/* ---------- 评论 ---------- */
.zsgj-review-list { display: flex; flex-direction: column; gap: 14px; }
.zsgj-review-item { background: #fff; border: 1px solid #ecf0f5; border-radius: 10px; padding: 16px; }
.zsgj-review-head { display: flex; justify-content: space-between; color: #9ca3af; font-size: 13px; margin-bottom: 8px; }
.zsgj-review-form { margin-top: 16px; }

/* ---------- 风险提示 / 视频 ---------- */
.zsgj-risk-list { line-height: 2; color: #6b7280; }
.zsgj-video { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; }
.zsgj-video iframe, .zsgj-video video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- 404 ---------- */
.zsgj-404-box, .zsjg-404-wrap { text-align: center; padding: 80px 0; }
.zsgj-404-code { font-size: 90px; font-weight: 700; color: #e5e7eb; line-height: 1; }

/* ---------- 表单/认证用各格子 ---------- */
.zsgj-template-card { border: 1px solid #ecf0f5; border-radius: 8px; padding: 14px; cursor: pointer; transition: all .15s; background: #fff; }
.zsgj-template-card:hover, .zsgj-template-card.on { border-color: #2563eb; background: #f8faff; }
.zsgj-cert-list { display: flex; flex-wrap: wrap; gap: 10px; }
.zsgj-cert-item { border: 1px solid #ecf0f5; border-radius: 8px; padding: 8px 14px; }

/* ---------- 底部 ---------- */
.zsgj-footer { background: #0f2a4a; color: rgba(255,255,255,.8); }
.zsgj-footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 16px 30px; }
@media (max-width: 900px) { .zsgj-footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .zsgj-footer-inner { grid-template-columns: repeat(3, 1fr); gap: 24px 12px; } .zsgj-footer-contact { grid-column: 1 / -1; } }
.zsgj-footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.zsgj-footer-col a { display: block; color: rgba(255,255,255,.7); margin-bottom: 8px; font-size: 13px; }
.zsgj-footer-col a:hover { color: #fff; }
.zsgj-footer-contact p { font-size: 13px; margin-bottom: 8px; }
.zsgj-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.5); }

/* ---------- 文章列表变体 ---------- */
.zsjg-article-list-lg .zsgj-article-line { padding: 20px 24px; }

/* ---------- 图片定界修复：子 img 尺寸约束（避免占位图/原图撑破布局） ---------- */
.zsgj-banner-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zsgj-card-img { position: relative; }
.zsgj-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zsgj-card-img .zsgj-card-tag { position: absolute; left: 8px; bottom: 8px; z-index: 2; }
.zsgj-activity-cover img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.zsgj-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 6px; }
.zsgj-detail-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.zsgj-article-cover img { width: 100%; height: auto; object-fit: cover; display: block; border-radius: 6px; }
.zsgj-company-line img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: #f3f5f8; }
.zsgj-company-line-info { flex: 1; min-width: 0; }
.zsgj-butler-line img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; flex-shrink: 0; background: #f3f5f8; }
.zsgj-butler-line > div { flex: 1; min-width: 0; }
.zsgj-cert-item img { width: 48px; height: 32px; object-fit: contain; vertical-align: middle; margin-right: 6px; background: #f3f5f8; }
.zsgj-compare-company img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; vertical-align: middle; margin-right: 8px; background: #f3f5f8; }
.zsgj-side-company img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; vertical-align: middle; margin-right: 8px; background: #f3f5f8; }
.zsgj-side-butler img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; vertical-align: middle; margin-right: 8px; background: #f3f5f8; }
.zsgj-butler-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.zsgj-butler-card-head img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; flex-shrink: 0; background: #f3f5f8; }

/* =========================================================
   版式修复补丁：保持原有 zsgj-* 选择器与命名，仅补齐缺失声明、
   纠正与模板真实 DOM 不一致的层级（h1/h2/h3）与子元素排版。
   ========================================================= */

/* ---------- 区块/卡片/页头：模板实际使用 h1/h2/h3 ---------- */
.zsgj-section-head h2 { font-size: 20px; color: #0f2a4a; border-left: 4px solid #2563eb; padding-left: 10px; }
.zsgj-card-body h3 { font-size: 15px; color: #1b2a44; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsgj-card-body h3 a { color: #1b2a44; }
.zsgj-card-body p { color: #6b7280; font-size: 13px; line-height: 1.7; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsgj-page-head h1, .zsgj-page-head h2 { font-size: 22px; color: #0f2a4a; }
.zsgj-page-head p { color: #6b7280; font-size: 13px; margin-top: 6px; }
.zsgj-company-card-info { flex: 1; min-width: 0; }
.zsgj-company-card-info h3 { font-size: 16px; margin-bottom: 4px; }
.zsgj-company-card-info h3 i, .zsgj-company-card-info h4 i { font-style: normal; }
.zsgj-detail-panel h3 { font-size: 16px; color: #111827; margin-bottom: 12px; }
.zsgj-house-table table { width: 100%; border-collapse: collapse; }
.zsgj-more { display: inline-block; }
.zsgj-total-tip { margin-bottom: 16px; color: #6b7280; font-size: 14px; }
.zsgj-total-tip b { color: #2563eb; font-size: 18px; margin: 0 2px; }

/* ---------- 快捷入口：模板 5 项 + 图标块级化 + 五色徽标 ---------- */
.zsgj-quick { grid-template-columns: repeat(5, 1fr); }
.zsgj-quick-item { display: block; padding: 20px 12px; }
.zsgj-quick-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 14px; font-size: 24px; font-weight: 600; color: #fff; background: #2563eb; }
.zsgj-quick-item b { display: block; font-size: 15px; color: #1b2a44; margin-bottom: 4px; }
.zsgj-quick-item:hover b { color: #2563eb; }
.zsgj-quick-item em { display: block; font-style: normal; font-size: 12px; color: #9ca3af; }
.zqi-1 { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.zqi-2 { background: linear-gradient(135deg, #0f9d58, #34d399); }
.zqi-3 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.zqi-4 { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.zqi-5 { background: linear-gradient(135deg, #ef4444, #f87171); }
@media (max-width: 900px) { .zsgj-quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .zsgj-quick { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 列表行：子元素块级化，避免标题/说明挤在同一行 ---------- */
.zsgj-company-line-info b { display: block; font-size: 16px; color: #111827; margin-bottom: 4px; }
.zsgj-company-line-info span { display: block; font-size: 12px; color: #9ca3af; line-height: 1.9; }
.zsgj-company-line-info em { display: block; font-style: normal; font-size: 12px; color: #2563eb; line-height: 1.9; }
.zsgj-community-line { flex-wrap: wrap; }
.zsgj-community-name { display: block; min-width: 0; }
.zsgj-community-name b { display: block; font-size: 12px; font-weight: 400; color: #9ca3af; margin-top: 2px; }
.zsgj-community-line span { color: #6b7280; font-size: 13px; }
.zsgj-community-line em, .zsgj-butler-line em { font-style: normal; font-size: 12px; color: #9ca3af; }
.zsgj-butler-line > div b { display: block; font-size: 15px; color: #111827; margin-bottom: 4px; }
.zsgj-butler-line > div span { display: block; font-size: 12px; color: #9ca3af; line-height: 1.8; }
.zsgj-article-line b { display: block; font-size: 15px; color: #1b2a44; }
.zsgj-article-line > span { color: #1b2a44; font-size: 15px; }
.zsgj-article-line-body b { display: block; font-size: 15px; color: #1b2a44; margin-bottom: 4px; }
.zsgj-article-line-body b a { color: #1b2a44; }
.zsgj-article-line-body span { color: #6b7280; font-size: 13px; }
.zsgj-article-line em { font-style: normal; font-size: 12px; color: #9ca3af; }
.zsgj-article-ext { display: inline-block; font-style: normal; font-size: 12px; color: #9ca3af; }
.zsgj-article-ext b { font-weight: 600; color: #374151; margin-right: 4px; }
.zsgj-mini-info b { display: block; font-size: 14px; color: #1b2a44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsgj-mini-info span, .zsgj-mini-info em { display: block; font-style: normal; font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* ---------- 筛选 chips / 侧栏选中态 ---------- */
.zsgj-filter-item a { display: inline-block; padding: 5px 12px; border: 1px solid #d1d5db; border-radius: 20px; background: #fff; color: #374151; font-size: 13px; }
.zsgj-filter-item a:hover { border-color: #2563eb; color: #2563eb; }
.zsgj-filter-item a.on { border-color: #2563eb; background: #2563eb; color: #fff; }
.zsgj-side-nav a.on { color: #2563eb; background: #f8faff; font-weight: 600; }

/* ---------- 分页：Paging.php 输出 nav.paging > ul.pagination + span.total ---------- */
.zsgj-pagination ul.pagination { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.zsgj-pagination ul.pagination li { list-style: none; }
.zsgj-pagination ul.pagination li.active span { background: #2563eb; border-color: #2563eb; color: #fff; }
.zsgj-pagination ul.pagination li.disabled span { color: #b9bec7; background: #f8fafc; }
.zsgj-pagination nav.paging .total { color: #9ca3af; font-size: 13px; border: none; background: none; padding: 0 0 0 8px; }

/* ---------- 顶部条 / 标签 / 管家头部 / 对比勾选与操作栏 ---------- */
.zsgj-topbar-left, .zsgj-topbar-right { display: flex; align-items: center; }
.zsgj-topbar-left { font-size: 13px; }
.zsgj-tag { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; background: #eef2ff; color: #2563eb; margin-left: 6px; }
.zsgj-butler-head-info { flex: 1; min-width: 0; }
.zsgj-butler-head-info h3 { font-size: 20px; color: #111827; margin-bottom: 4px; }
.zsgj-butler-head-info p, .zsgj-butler-head-info span { font-size: 13px; color: #6b7280; }
.zsgj-compare-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; cursor: pointer; white-space: nowrap; }
.zsgj-compare-box { width: 16px; height: 16px; margin: 0; vertical-align: middle; cursor: pointer; border-radius: 4px; overflow: visible; accent-color: #2563eb; }
.zsgj-compare-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: auto; height: auto; background: #fff; border: 1px solid #c7d2fe; border-radius: 10px; padding: 12px 18px; margin-top: 18px; box-shadow: 0 6px 18px rgba(15,42,74,.08); }
.zsgj-compare-bar > span { color: #6b7280; font-size: 13px; }
.zsgj-compare-bar b { color: #2563eb; font-size: 16px; margin: 0 2px; }

/* ---------- 横幅标题（模板为纯文本节点） ---------- */
.zsgj-banner-caption { font-size: 28px; font-weight: 600; line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,.4); }

/* ---------- 用户中心：头像与资料分组、消息条目纵向排列 ---------- */
.zsgj-uc-user-info { flex: 1; min-width: 0; }
.zsgj-uc-user-info b { display: block; font-size: 15px; color: #111827; margin-bottom: 4px; }
.zsgj-uc-user-info span { display: block; font-size: 12px; color: #9ca3af; line-height: 1.8; }
.zsgj-msg-item { flex-direction: column; align-items: flex-start; gap: 6px; }
.zsgj-msg-item b { font-size: 14px; color: #111827; }
.zsgj-msg-item p { font-size: 13px; color: #6b7280; line-height: 1.8; }
.zsgj-msg-item span { font-size: 12px; color: #9ca3af; }
.zsgj-msg-item.unread { border-left: 3px solid #2563eb; background: #f8faff; }

/* =========================================================
   版式调整：首页内容区横向排列 + 案例横向轮播展示
   沿用既有 zsgj-* 命名与蓝白配色（#2563eb / #0f2a4a）
   ========================================================= */

/* ---------- 整宽横向网格：2 列 / 4 列 ---------- */
.zsgj-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.zsgj-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .zsgj-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .zsgj-grid-2, .zsgj-grid-4 { grid-template-columns: 1fr; }
}
.zsgj-grid-2 > .zsgj-tile, .zsgj-grid-3 > .zsgj-tile, .zsgj-grid-4 > .zsgj-tile { height: 100%; }

/* ---------- 横向排列卡片（公司 / 小区 / 活动 / 知识 / 管家） ---------- */
.zsgj-tile { display: flex; flex-direction: column; background: #fff; border: 1px solid #ecf0f5; border-radius: 10px; overflow: hidden; color: #374151; transition: box-shadow .2s, transform .2s; }
.zsgj-tile:hover { box-shadow: 0 8px 24px rgba(15,42,74,.10); transform: translateY(-2px); color: #374151; }
.zsgj-tile-thumb { width: 100%; height: 150px; background: #f3f5f8; overflow: hidden; }
.zsgj-tile-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zsgj-tile-logo { width: 100%; height: 104px; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-bottom: 1px solid #f0f1f3; }
.zsgj-tile-logo img { max-width: 78%; max-height: 76px; width: auto; height: auto; object-fit: contain; }
.zsgj-tile-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 0; }
.zsgj-tile-head img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #f3f5f8; flex-shrink: 0; }
.zsgj-tile-head img.zsgj-tile-avatar { border-radius: 50%; }
.zsgj-tile-headinfo { flex: 1; min-width: 0; }
.zsgj-tile-headinfo h3 { font-size: 15px; color: #1b2a44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsgj-tile-headinfo span { display: block; margin-top: 2px; font-size: 12px; color: #9ca3af; }
.zsgj-tile-body { flex: 1; padding: 14px 16px; }
.zsgj-tile-body h3 { font-size: 15px; color: #1b2a44; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zsgj-tile-body p { color: #6b7280; font-size: 13px; line-height: 1.7; margin-bottom: 6px; }
.zsgj-tile-body p.zsgj-tile-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zsgj-tile-meta { color: #9ca3af; font-size: 12px; line-height: 1.9; }
.zsgj-tile-meta b { color: #2563eb; font-weight: 600; margin: 0 2px; }
.zsgj-tile-quote { color: #2563eb; font-size: 13px; line-height: 1.9; }

/* ---------- 横向轮播（案例展示：可左右切换 + 圆点 + 自动播放） ---------- */
.zsgj-carousel { position: relative; padding: 2px 0; }
.zsgj-carousel-viewport { overflow: hidden; margin: 0 -9px; }
.zsgj-carousel-track { display: flex; width: 100%; transition: transform .5s ease; }
.zsgj-carousel-item { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 9px; box-sizing: border-box; min-width: 0; display: flex; }
.zsgj-carousel[data-per="2"] .zsgj-carousel-item { flex-basis: 50%; max-width: 50%; }
.zsgj-carousel[data-per="1"] .zsgj-carousel-item { flex-basis: 100%; max-width: 100%; }
.zsgj-carousel.zsgj-carousel-fill .zsgj-carousel-item { flex: 1 1 0; max-width: none; }
.zsgj-carousel-item > .zsgj-card { width: 100%; height: 100%; display: block; }
.zsgj-carousel-item > .zsgj-empty { width: 100%; }
.zsgj-carousel-btn { position: absolute; top: 50%; margin-top: -20px; width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; background: rgba(15,42,74,.72); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 3; }
.zsgj-carousel-btn:hover { background: #2563eb; }
.zsgj-carousel-btn[disabled] { opacity: .3; cursor: default; }
.zsgj-carousel-prev { left: 2px; }
.zsgj-carousel-next { right: 2px; }
.zsgj-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.zsgj-carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: #d7dde6; cursor: pointer; }
.zsgj-carousel-dot.on { background: #2563eb; }
@media (max-width: 600px) { .zsgj-carousel-btn { width: 34px; height: 34px; margin-top: -17px; font-size: 18px; } }

/* ---------- 案例详情页相关案例区（轮播内卡片与主区一致） ---------- */
.zsgj-carousel .zsgj-case-card .zsgj-card-img { height: 200px; }

/* ---------- 新房案例详情：案例实景大图轮播（每屏 1 张） ---------- */
.zsgj-case-gallery .zsgj-carousel-item { align-items: stretch; }
.zsgj-gallery-figure { width: 100%; margin: 0; }
.zsgj-gallery-figure img { display: block; width: 100%; height: 460px; object-fit: cover; border-radius: 12px; background: #eef2f7; }
@media (max-width: 900px) { .zsgj-gallery-figure img { height: 360px; } }
@media (max-width: 600px) { .zsgj-gallery-figure img { height: 220px; border-radius: 8px; } }

/* ---------- 窄屏横向溢出修复（顶部条 / 头部 / 导航 / 筛选：允许换行收缩，不隐藏内容） ---------- */
@media (max-width: 768px) {
  .zsgj-topbar .zsgj-container { height: auto; min-height: 36px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; row-gap: 2px; }
  .zsgj-topbar-left, .zsgj-topbar-right { flex-wrap: wrap; min-width: 0; }
  .zsgj-topbar-left { width: 100%; }
  .zsgj-topbar-right { margin-left: auto; }
  .zsgj-topbar a, .zsgj-topbar-phone { margin-left: 10px; }

  .zsgj-header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .zsgj-logo, .zsgj-logo-text { min-width: 0; }
  .zsgj-logo-text b, .zsgj-logo-text em { white-space: normal; }
  .zsgj-header-quote { width: 100%; }
  .zsgj-header-quote .zsgj-btn { flex: 1 1 auto; }

  .zsgj-nav-inner { flex-wrap: wrap; height: auto; padding-top: 2px; padding-bottom: 2px; }
  .zsgj-nav-inner a { padding: 0 12px; line-height: 40px; font-size: 14px; white-space: nowrap; }

  .zsgj-filter-item { flex-wrap: wrap; min-width: 0; row-gap: 6px; }
  .zsgj-filter-search { width: 100%; }
  .zsgj-filter-search input { flex: 1 1 auto; min-width: 0; }
}

/* ---------- 窄屏横向溢出修复（详情 / 报价双栏在窄屏堆叠为单栏，表单控件撑满容器） ---------- */
@media (max-width: 768px) {
  .zsgj-detail-grid, .zsgj-quote-layout { grid-template-columns: 1fr; }
  .zsgj-form-row input, .zsgj-form-row textarea, .zsgj-form-row select { width: 100%; box-sizing: border-box; }
}

/* ---------- 报价总表（步骤一/二/三合并为一张表，说明区移到表格下方） ---------- */
.zsgj-quote-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.zsgj-quote-table .zsgj-qt-col-label { width: 190px; }
.zsgj-quote-table th, .zsgj-quote-table td { border: 1px solid #ecf0f5; padding: 12px 14px; text-align: left; vertical-align: top; font-weight: 400; color: #374151; }
.zsgj-quote-table th { background: #f8fafc; color: #4b5563; font-weight: 600; }
.zsgj-quote-table th i { color: #dc2626; font-style: normal; }
.zsgj-quote-table tr.zsgj-qt-step td { background: #eef2ff; color: #2563eb; font-weight: 600; font-size: 15px; letter-spacing: .5px; }
.zsgj-quote-table td .zsgj-input { max-width: 380px; }
.zsgj-quote-table td .zsgj-form-tip { display: block; margin-top: 6px; }
.zsgj-quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.zsgj-quote-below { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.zsgj-quote-below .zsgj-detail-panel { margin-bottom: 0; }
.zsgj-quote-below .zsgj-quote-result { margin-top: 0; }

@media (max-width: 768px) {
  .zsgj-quote-table, .zsgj-quote-table tbody, .zsgj-quote-table tr, .zsgj-quote-table th, .zsgj-quote-table td { display: block; width: auto; }
  .zsgj-quote-table th { border-bottom: 0; }
  .zsgj-quote-table td { border-top: 0; margin-bottom: 12px; }
  .zsgj-quote-table tr.zsgj-qt-step td { border-bottom: 1px solid #ecf0f5; margin-bottom: 12px; }
  .zsgj-quote-table td .zsgj-input { max-width: none; }
  .zsgj-quote-below { grid-template-columns: 1fr; }
}

/* ---------- 移动端：轮播图按宽度等比自适应（素材 1920x480 = 4:1） ---------- */
@media (max-width: 768px) {
  .zsgj-banner-item { height: 25vw; }
  .zsgj-banner-caption { left: 14px; bottom: 10px; font-size: 15px; }
  .zsgj-banner-caption h3 { font-size: 15px; margin-bottom: 2px; }
  .zsgj-banner-caption p { font-size: 12px; }
  .zsgj-banner-dots { bottom: 8px; right: 12px; }
  .zsgj-banner-dot { width: 8px; height: 8px; }
}
