/*
Theme Name: Locksmith SEO
Description: 百度本地生活风格 - 开锁商户页
Version: 3.0.0
*/

:root {
  --bd-blue: #1e6fff;
  --bd-blue-dark: #1758d1;
  --bd-bg: #f2f3f5;
  --card: #ffffff;
  --text: #222;
  --muted: #9a9aa0;
  --green: #07c160;
  --green-dark: #06ad56;
  --star: #ffb800;
  --border: #f0f0f2;
  --red: #fa5151;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bd-bg); color: var(--text); line-height: 1.6; -webkit-text-size-adjust: 100%; padding-bottom: 64px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ===== 商户信息卡（顶部） ===== */

.merchant-name { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.merchant-tag { font-size: 11px; background: #fff0e8; color: #f28300; border: 1px solid #ffd4b3; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.merchant-rate { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.merchant-rate .rate-score { color: var(--bd-blue); font-size: 16px; font-weight: 800; }
.merchant-rate .stars { color: var(--star); letter-spacing: 1px; }
.merchant-stats { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }
.merchant-stats b { color: var(--text); }

/* ===== 头图 ===== */
.hero-banner { position: relative; background: linear-gradient(135deg, #1e6fff 0%, #4d8dff 60%, #7cabff 100%); color: #fff; padding: 40px 20px 44px; text-align: center; border-radius: 12px; margin: 10px 12px 0; }
.hero-banner h1 { font-size: 26px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.15); }
.hero-banner .hb-sub { font-size: 14px; margin-top: 8px; opacity: .95; }
.hero-banner .hb-tags { display: flex; justify-content: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.hero-banner .hb-tag { font-size: 12px; background: rgba(255,255,255,.2); border-radius: 20px; padding: 4px 12px; }
.hero-banner .hb-call { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff; font-size: 20px; font-weight: 800; padding: 13px; border-radius: 50px; margin-top: 16px; box-shadow: 0 4px 14px rgba(7,193,96,.4); }
.hero-banner .hb-note { font-size: 11px; margin-top: 8px; opacity: .85; }

/* ===== 区块卡片 ===== */
.card { background: var(--card); border-radius: 12px; margin: 10px 12px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.card-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.card-title .ct-icon { font-size: 18px; }

/* ===== 服务项目 ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc { text-align: center; padding: 10px 4px; border-radius: 10px; background: var(--bd-bg); }
.svc .s-icon { font-size: 26px; display: block; }
.svc .s-name { font-size: 12px; font-weight: 600; margin-top: 4px; }

/* ===== 商户信息列表 ===== */
.info-list { }
.info-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-item:last-child { border-bottom: none; }
.info-item .ii-icon { font-size: 16px; width: 22px; text-align: center; }
.info-item .ii-label { color: var(--muted); font-size: 12px; width: 56px; flex-shrink: 0; }
.info-item .ii-value { flex: 1; }
.info-item .ii-btn { font-size: 13px; color: var(--bd-blue); flex-shrink: 0; }

/* ===== 评价 ===== */
.rate-summary { display: flex; align-items: center; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.rate-summary .rs-score { text-align: center; }
.rate-summary .rs-num { font-size: 36px; font-weight: 800; color: var(--star); line-height: 1; }
.rate-summary .rs-stars { font-size: 13px; color: var(--star); margin-top: 4px; }
.rate-summary .rs-count { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rate-summary .rs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rate-summary .rs-tag { font-size: 11px; background: var(--bd-bg); color: var(--muted); border-radius: 20px; padding: 3px 10px; }
.review { padding: 12px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: none; }
.review .rv-head { display: flex; align-items: center; gap: 10px; }
.review .rv-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #9ec5ff, #1e6fff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; overflow: hidden; }
.review .rv-user { font-size: 13px; font-weight: 600; }
.review .rv-stars { font-size: 11px; color: var(--star); }
.review .rv-time { font-size: 11px; color: var(--muted); }
.review .rv-text { font-size: 13px; margin-top: 6px; }

/* ===== 地图模拟 ===== */
.map-box { position: relative; height: 150px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #e8f1ff, #cfe3ff 50%, #b8d6ff); }
.map-box .map-pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -80%); font-size: 36px; text-align: center; }
.map-box .map-pin .pin-label { font-size: 11px; background: var(--card); border-radius: 20px; padding: 2px 10px; box-shadow: 0 2px 6px rgba(0,0,0,.15); white-space: nowrap; }
.map-box .map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(30,111,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(30,111,255,.08) 1px, transparent 1px); background-size: 30px 30px; }
.map-actions { display: flex; gap: 10px; margin-top: 12px; }
.map-actions .ma-btn { flex: 1; text-align: center; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.ma-nav { background: var(--bd-blue); color: #fff; }
.ma-tel { background: var(--green); color: #fff; }

/* ===== FAQ ===== */
.faq-item { padding: 11px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 14px; font-weight: 700; }
.faq-a { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ===== 文章区 ===== */
.posts-section { background: var(--card); border-radius: 12px; margin: 10px 12px; padding: 16px; }
.post-list { list-style: none; }
.post-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.post-item:last-child { border-bottom: none; }
.post-item a { display: block; }
.post-item .p-title { font-size: 14px; font-weight: 700; }
.post-item .p-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ===== 文章页 ===== */
.site-main { padding: 0 0 12px; }
.post-content { background: var(--card); border-radius: 12px; margin: 10px 12px; padding: 18px 16px; }
.post-content h1 { font-size: 20px; line-height: 1.4; margin-bottom: 10px; }
.post-content h2 { font-size: 17px; margin: 16px 0 8px; }
.post-content p { font-size: 15px; margin-bottom: 12px; }
.post-content ul, .post-content ol { margin: 0 0 12px 20px; }
.post-tel-box { background: linear-gradient(135deg, var(--green), var(--green-dark)); border-radius: 12px; padding: 16px; text-align: center; color: #fff; margin: 10px 12px 0; }
.post-tel-box .pt-label { font-size: 13px; }
.post-tel-box .pt-number { display: block; font-size: 24px; font-weight: 800; margin: 6px 0; }
.post-tel-box .pt-btn { display: block; background: #fff; color: var(--green-dark); font-weight: 800; padding: 10px; border-radius: 50px; }

/* ===== 页面 ===== */
.page-content { background: var(--card); border-radius: 12px; margin: 10px 12px; padding: 18px 16px; }
.page-content h1 { font-size: 20px; margin-bottom: 10px; }
.page-content p { margin-bottom: 12px; }

/* ===== 面包屑 ===== */
.breadcrumb { font-size: 12px; color: var(--muted); padding: 10px 16px 0; }

/* ===== 页脚 ===== */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.site-footer p { margin-bottom: 4px; }

/* ===== 底部悬浮操作条 ===== */
.fixed-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; display: flex; background-color: #ffffff; border-top: 1px solid #eaeaea; padding: 5px; box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.fixed-bar .fb-item { flex: 1; text-align: center; padding: 9px 4px; font-size: 11px; color: var(--muted); }
.fixed-bar .fb-item .fb-icon { display: block; font-size: 20px; }
.fixed-bar .fb-call { flex: 1.4; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 16px; font-weight: 800; }
.fixed-bar .fb-call .fc-icon { font-size: 20px; }

/* ===== 桌面 ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .page-shell { max-width: 480px; margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,.06); min-height: 100vh; background: var(--bd-bg); }
  .fixed-bar { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .services { grid-template-columns: repeat(6, 1fr); }
}/* ===== 媒体封面区（视频/幻灯片） ===== */
.media-cover { margin: 10px 12px; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.media-cover video { width: 100%; height: 200px; object-fit: cover; display: block; background: #000; }
.media-slider { position: relative; }
.media-slider .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.media-slider .slides::-webkit-scrollbar { display: none; }
.media-slider .slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.media-slider .slide video, .media-slider .slide img { width: 100%; height: 200px; object-fit: cover; display: block; }
.media-slider .slide-num { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 12px; }
.media-slider .dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; background: #000; }
.media-slider .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; }
.media-slider .dot.active { background: #fff; }/* 顶部媒体封面：全宽无留白 */
.media-cover-top { margin: 0; border-radius: 0; box-shadow: none; }
.media-cover-top video { height: 220px; }
.media-cover-top .slide video, .media-cover-top .slide img { height: 220px; }/* ===== 商户卡片（百度本地生活风格 v2） ===== */
.merchant-card { background: var(--card); padding: 16px; border-radius: 12px; margin: 10px 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.mc-top { display: flex; gap: 12px; }
.mc-logo { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--bd-blue), #4d8dff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; }
.mc-info { flex: 1; min-width: 0; }
.mc-name { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.mc-verified { font-size: 10px; background: var(--bd-blue); color: #fff; padding: 1px 6px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.mc-rate { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.mc-rate .rate-num { color: var(--bd-blue); font-size: 16px; font-weight: 800; }
.mc-rate .stars { color: var(--star); letter-spacing: 1px; }
.mc-rate .rate-count { font-size: 11px; }
.mc-status { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.mc-status .open-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.mc-status .open-text { color: var(--green); font-weight: 700; }
.mc-addr { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.mc-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mc-tag { font-size: 11px; background: var(--bd-bg); color: #666; border-radius: 4px; padding: 2px 8px; }
.mc-tag.hot { background: #fff0e8; color: #f28300; border: 1px solid #ffd4b3; }
.mc-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0 0; }
.mc-stats { display: flex; justify-content: space-around; padding-top: 12px; text-align: center; }
.mc-stat b { display: block; font-size: 16px; font-weight: 800; color: var(--text); }
.mc-stat span { font-size: 11px; color: var(--muted); }.mc-call { flex-shrink: 0; background: linear-gradient(90deg, #f6893a, #ff552e); color: #fff; border-radius: 8px; padding: 10px 22px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(255,85,46,.3); }
.mc-status, .mc-addr { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.mc-status .mc-icon, .mc-addr .mc-icon { width: 18px; text-align: center; flex-shrink: 0; font-size: 12px; }

/* 商户卡行布局 + 58同城风格拨打按钮 */
.mc-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mc-left { flex: 1; }

/* 拨打按钮（统一版） */
.mc-call { flex-shrink: 0; background: linear-gradient(90deg, #f6893a, #ff552e); color: #fff; border-radius: 8px; padding: 10px 22px; display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(255,85,46,.3); }
.mc-call .mc-call-icon { width: 14px; height: 14px; object-fit: contain; }
.mc-call:active { background: #ff552e; }

/* 保障信息条（58同城风格-紧凑版） */
.insurance { display: flex; justify-content: space-between; align-items: center; background-color: #fef9ed; padding: 5px 10px; border-radius: 0; margin-top: 10px; }
.insurance__title { width: 76px; height: 17px; object-fit: contain; }
.insurance__list { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #9c6a47; list-style: none; margin: 0; padding: 0; }
.insurance__list-item { display: flex; align-items: center; white-space: nowrap; }
.insurance__check { width: 14px; height: 14px; margin-right: 3px; object-fit: contain; }

.mc-photo { margin: 10px 12px 0; }
.mc-photo img { width: 100%; border-radius: 12px; display: block; object-fit: cover; max-height: 120px; }

/* 店铺介绍折叠 */
.shop-intro { max-height: 150px; overflow: hidden; position: relative; transition: max-height .3s ease; }
.shop-intro.expanded { max-height: none; }
.shop-intro.fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.shop-intro p { margin-bottom: 10px; font-size: 14px; line-height: 1.7; }
.shop-intro h2, .shop-intro h3 { margin: 12px 0 6px; font-size: 16px; }
.shop-intro ul, .shop-intro ol { margin: 0 0 10px 18px; }
.intro-toggle { display: none; width: 100%; margin-top: 10px; padding: 9px; border: 1px solid var(--bd-blue); background: #fff; color: var(--bd-blue); border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.intro-toggle:active { background: #eef4ff; }

/* 头图电话框 */
.hb-telbox { padding: 0; margin-top: 16px; text-align: center; }
.htb-label { font-size: 13px; opacity: .95; }
.htb-number { display: block; font-size: 24px; font-weight: 800; margin: 6px 0; color: #fff; }
.htb-btn { display: block; background: #fff; color: var(--green-dark); font-weight: 800; padding: 11px; border-radius: 50px; font-size: 15px; }

/* 底部拨打按钮（58风格） */
.fb-call { flex-grow: 1; display: flex; justify-content: center; align-items: center; background: #ff552e; border-radius: 5px; font-size: 15px; color: #fff; padding: 13px; font-weight: 700; gap: 8px; }
.fb-call::before { content: ''; width: 24px; height: 24px; background: url('images/tel.png') no-repeat; background-size: 100% 100%; }

/* ===== 首页 58 类目聚合列表页 ===== */
.hy-header { background: #fff; padding: 12px 14px 1px; }
.hy-header-top { display: flex; justify-content: space-between; align-items: center; }
.hy-logo { font-size: 18px; font-weight: 800; color: #ff552e; }
.hy-city { font-size: 13px; color: #666; }
.hy-title { margin-top: 10px; }
.hy-title h1 { font-size: 20px; color: #222; margin: 0; }
.hy-title p { font-size: 12px; color: #999; margin: 4px 0 0; }
.hy-search { display: flex; margin: 12px 0; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.hy-search input { flex: 1; border: 0; padding: 10px 12px; font-size: 14px; outline: none; background: #f7f7f7; }
.hy-search button { border: 0; background: #ff552e; color: #fff; padding: 0 18px; font-size: 14px; }
.hy-filter { display: flex; gap: 8px; padding: 8px 14px; background: #fff; border-bottom: 1px solid #f0f0f0; overflow-x: auto; }
.hyf-item { font-size: 13px; color: #666; background: #f5f6f7; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.hyf-item.active { background: #ffe9e3; color: #ff552e; font-weight: 600; }
.hy-list { padding: 0 12px 12px; }
.hy-item { display: block; background: #fff; border-radius: 10px; padding: 12px 14px; margin-top: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.04); cursor: pointer; }
.hy-item-title { font-size: 15px; font-weight: 700; color: #222; line-height: 1.4; }
.hy-item-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.hy-badge { font-size: 11px; padding: 3px 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; }
.hy-badge-region { background: #f0f1f3; color: #666; }
.hy-badge-auth { background: #fff3e8; color: #ff8800; border: 1px solid #ffd7a8; }
.hy-badge-safe { background: #e8f4ff; color: #1e6fff; border: 1px solid #c6e2ff; }
.hy-item-score { margin-top: 10px; color: #ff8800; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.hy-item-score b { font-size: 17px; }
.hy-stars { color: #ffb800; font-size: 13px; letter-spacing: 1px; }
.hy-score-count { color: #999; font-size: 12px; }
.hy-item-review { margin-top: 8px; font-size: 12px; color: #666; background: #f9fafb; padding: 8px 10px; border-radius: 6px; }
.hy-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hy-tag { font-size: 11px; color: #666; background: #f5f6f7; padding: 3px 8px; border-radius: 4px; }
.hy-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.hy-consult { font-size: 11px; color: #999; }
.hy-call { display: inline-flex; align-items: center; gap: 4px; background: #ff552e; color: #fff; font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 6px; text-decoration: none; }
.hy-footer-note { text-align: center; font-size: 11px; color: #aaa; padding: 14px 0 70px; }
.hy-badge img { height: 18px; width: auto; }
.hy-call img { height: 15px; width: auto; }
.rv-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* 评价区叠放头像组 */
.hy-review-avs { display: inline-flex; align-items: center; margin-right: 6px; vertical-align: middle; }
.hy-review-avs img { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #fff; margin-left: -7px; object-fit: cover; background: #eee; }
.hy-review-avs img:first-child { margin-left: 0; }
