/* 圣地亚哥华人按摩黄页 - 主样式 | 主色 #eb528a，干净清爽 + 高端大气 */
:root {
  --brand: #eb528a;
  --brand-dark: #c93a72;
  --brand-soft: #fde7f0;
  --bg: #fdf7fa;
  --text: #2b2230;
  --muted: #8a7a84;
  --card: #ffffff;
  --line: #f4d3e2;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(235, 82, 138, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}
/* 让主内容撑开，卡片少时 footer 自动吸底，解决底部大片空白 */
/* 注意：body 是 flex 列布局，main 作为 flex-item 必须 width:100%，不然筛选剩2张卡时版心会被内容挤窄 */
main, .page-list, .detail, .detail-layout { flex: 1 0 auto; width: 100%; align-self: stretch; }
.page-list { padding-bottom: 36px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page-list.container { max-width: 1280px; }

.site-header, .hero, .site-footer, .float-bar, .mobile-bar { width: 100%; align-self: stretch; flex-shrink: 0; }
.float-bar { width: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.5px; }
.brand img,.brand-logo { width: 44px; height: 44px; object-fit: contain; border: none; background: none; border-radius: 0; flex-shrink: 0; }
.city-switch { display: flex; gap: 10px; font-size: 14px; align-items: center; }
/* 导航搜索 */
.search-box { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--brand); border-radius: 999px; overflow: hidden; background: #fff; }
.search-box input { border: none; outline: none; padding: 8px 14px; font-size: 14px; width: 180px; }
.search-box button { border: none; background: var(--brand); color: #fff; padding: 8px 16px; cursor: pointer; font-weight: 700; }
/* 右侧悬浮条 */
.float-bar { position: fixed; right: 18px; top: 40%; display: flex; flex-direction: column; gap: 8px; z-index: 99; }
.float-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 20px; cursor: pointer; box-shadow: 0 6px 18px rgba(235,82,138,.16); display: flex; align-items: center; justify-content: center; }
.float-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.float-btn svg { width: 24px; height: 24px; display: block; }
.float-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.float-tip { visibility: hidden; opacity: 0; position: absolute; right: 52px; top: 50%; transform: translateY(-50%); background: #2b2230; color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none; transition: opacity .15s ease, visibility .15s ease; z-index: 100; }
.float-btn:hover .float-tip, .float-btn:focus-within .float-tip { visibility: visible; opacity: 1; }
.float-tip--qr { background: #fff; padding: 8px; white-space: normal; width: 136px; height: 136px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.float-tip img { width: 120px; height: 120px; display: block; object-fit: contain; }
.photo-wall h2 .photo-hint { font-size: 12px; color: #666; font-weight: 400; }
.city-link { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; white-space: nowrap; }
.city-link.is-active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.city-link.is-disabled { color: var(--muted); background: #f9eff4; pointer-events: none; }

/* Hero */
.hero { background: linear-gradient(135deg, #d63a76 0%, var(--brand) 45%, #ff8fb3 100%); color: #fff; padding: 60px 0 52px; text-align: center; }
.hero-inner h1 { margin: 0 0 10px; font-size: 36px; letter-spacing: 3px; }
.hero-sub { margin: 0 0 24px; opacity: 0.92; }
.hero--img { background-size: cover; background-position: center; }
.hero--img .hero-inner { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.cat-nav { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cat-pill { border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.16); color: #fff; padding: 9px 20px; border-radius: 999px; font-size: 14px; }
.cat-pill:hover { background: #fff; color: var(--brand); }

/* 通用标题 / 卡片 - 首页推荐无边框版 */
.sec-title { margin: 34px 0 20px; font-size: 22px; }
.sec-title small { color: var(--brand); font-size: 13px; margin-left: 8px; font-weight: 400; }
#featured-title { margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.card { background: transparent; border: none; border-radius: 0; overflow: visible; transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }
.card.is-featured { border: none; }
.thumb { aspect-ratio: 4 / 3; height: auto; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #ffc9dd, #ffedf4); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-2 { background: linear-gradient(135deg, #f7b8d2, #ffe3ee); }
.thumb-3 { background: linear-gradient(135deg, #f4a8c6, #fff0f6); }
.card-body { padding: 12px 2px 0; }
.card-body h3 { margin: 8px 0 4px; font-size: 17px; }
.meta { color: var(--muted); font-size: 13px; margin: 4px 0; }
.badge { display: inline-block; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.link { color: var(--brand); font-weight: 700; }
.tip { color: var(--muted); font-size: 13px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; }

/* 城市分站 */
.city-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.city-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.city-card:hover { box-shadow: var(--shadow); }
.city-card.is-off { opacity: 0.6; }
.city-info { display: flex; flex-direction: column; gap: 4px; }
.city-info strong { font-size: 18px; }
.city-desc { color: var(--muted); font-size: 13px; }
.city-go { background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }

/* 列表页 */
.breadcrumb { color: var(--muted); font-size: 13px; margin: 22px 0 6px; }
.breadcrumb a { color: var(--brand-dark); }
.page-title { margin: 0 0 6px; font-size: 26px; }
.page-title small { font-size: 13px; color: var(--brand); font-weight: 400; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 20px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px; cursor: pointer; font-size: 14px; }
.tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.shop-list { display: grid; gap: 14px; margin-bottom: 22px; }
/* 列表宫格 - 无边框干净版 */
.shop-list.is-grid { grid-template-columns: repeat(4, 1fr); gap: 20px 16px; background: none; border: none; }
.shop-card { background: transparent; border: none; padding: 0; }
.shop-photo { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #f3e6ee; }
.shop-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-addr { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.68); color: #fff; font-size: 13px; text-align: center; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-badge { position: absolute; top: 8px; left: 8px; }
.shop-info { padding: 8px 2px 0; }
.shop-info h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-sub { margin: 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 4px; margin-right: 6px; font-weight: 700; }
.tag-huisuo { background: #0ea5a5; color: #fff; }
.tag-sijia { background: #e11d48; color: #fff; }
.shop-sub .kv-tag { padding: 0 5px; margin-right: 4px; }
nav.pagination, .mot-pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
nav.pagination .page-numbers, .mot-pagination a, .mot-pagination span { display: inline-block; min-width: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-align: center; font-size: 14px; }
nav.pagination .page-numbers.current, .mot-pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.page-404 .not-found { text-align: center; padding: 48px 20px; }
.page-404 .err-code { font-size: 72px; font-weight: 800; color: var(--brand); margin: 0; line-height: 1; }
.page-404 .not-found .search-box { margin: 20px auto; max-width: 420px; }
.page-404 .not-found .btn { margin: 4px; }
/* 城市多时文字链模式（图2） */
.city-text-list { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.city-text-list.is-show { display: block; }
.city-text-list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 20px; }
.city-text-list a::before { content: "> "; color: var(--brand); font-weight: 800; }
.view-toggle { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; cursor: pointer; font-size: 13px; color: var(--brand-dark); font-weight: 700; }
.shop-row { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.shop-row.is-top { border: 1.5px solid var(--brand); }
.shop-pic { width: 190px; min-height: 128px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #ffc9dd, #ffedf4); display: block; }
.shop-pic img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; }
/* 详情页布局兼容 detail / detail-layout 两种类名 */
.detail, .detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin-top: 8px; margin-bottom: 60px; align-items: start; }
.detail-main { min-width: 0; grid-column: 1; }
.contact-line { margin: 2px 0; }
/* 右列整体固定：二维码+热门城市一起随滚，不互相盖 */
.right-col { grid-column: 2; position: sticky; top: 86px; display: flex; flex-direction: column; gap: 16px; align-self: start; height: fit-content; }
.right-col .side { position: static; width: 100%; }
.gallery { position: relative; height: 360px; border-radius: 16px; overflow: hidden; background: #ffe3ee; border: 1px solid var(--line); }
/* 详情轮播固定 4:3 - 图片用文档流，不盖住右侧文字 */
.gallery-43 { height: auto; aspect-ratio: 4 / 3; }
.gallery-43 img { position: relative; inset: auto; width: 100%; height: 100%; object-fit: cover; }
.detail-top, .detail-top > * { min-width: 0; }
/* 首页推荐和底部拉开距离 */
#featured-title, .cards { margin-bottom: 8px; }
main.container { padding-bottom: 48px; }
/* 右侧热门城市 */
.hot-cities { margin-top: 16px; }
.hot-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.hot-links a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.hot-links a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.9); color: var(--brand); font-size: 24px; cursor: pointer; }
.gal-btn.prev { left: 12px; } .gal-btn.next { right: 12px; }
.gal-dots, .dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.7); cursor: pointer; }
.dot.on, .dot.is-on { background: var(--brand); }
/* 右侧联系卡兼容 side / contact-card */
.side, .contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: sticky; top: 86px; text-align: center; height: fit-content; }
.qr { margin: 14px auto; width: 185px; }
.qr img { width: 185px; height: 185px; border-radius: 12px; border: 1px dashed var(--brand); background: #fff7fb; }
/* side 二维码去边框 + 按钮收小 */
.qr.no-border img { border: none; background: none; border-radius: 8px; }
.side .btn-small { padding: 7px 18px; font-size: 13px; border-radius: 999px; font-weight: 700; }
/* 详情首屏：左图右文 */
.detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.shop-head h1 { margin: 0 0 8px; font-size: 26px; }
.long-desc h2 { margin: 0 0 10px; font-size: 18px; }
.long-desc p { margin: 0 0 12px; font-size: 15px; }
/* 热门城市去边框 + 左箭头 - 详情页一行两个 */
.hot-links.plain { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; justify-content: stretch; }
.hot-links.plain a { border: none; padding: 7px 4px; display: flex; align-items: center; gap: 6px; border-radius: 8px; min-width: 0; }
.hot-links.plain a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.city-text-list ul { list-style: none; }
.city-text-list a { display: inline-flex; align-items: center; gap: 4px; }
.city-text-list a::before { content: none; }
.shop-main h3 { margin: 0 0 4px; }
.desc { margin: 8px 0 12px; font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 按钮 */
.btn { display: inline-block; text-align: center; background: var(--brand); color: #fff; border-radius: 12px; padding: 12px 18px; font-weight: 800; border: 1.5px solid var(--brand); }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--brand); }
.btn-small { padding: 8px 16px; font-size: 14px; border-radius: 10px; }

/* 详情页 */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin-top: 8px; margin-bottom: 60px; align-items: start; }
.detail-layout .gallery { position: relative; height: 360px; border-radius: 16px; overflow: hidden; background: #ffe3ee; border: 1px solid var(--line); }
.detail-layout .gallery-43, .detail .gallery-43 { height: auto; aspect-ratio: 4 / 3; }
.slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-size: 18px; color: var(--brand-dark); background: linear-gradient(135deg, #ffc9dd, #fff2f7); padding: 20px; text-align: center; }
.slide.is-show { display: flex; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.9); color: var(--brand); font-size: 24px; cursor: pointer; }
.arrow.prev { left: 12px; } .arrow.next { right: 12px; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.7); cursor: pointer; }
.dot.is-on { background: var(--brand); }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.shop-name { margin: 0 0 8px; font-size: 24px; }
.block-title { margin: 0 0 10px; font-size: 18px; }
.shop-desc { margin: 0 0 10px; font-size: 15px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: sticky; top: 86px; text-align: center; }
.contact-card h2 { margin: 0; font-size: 19px; }
.contact-tip { color: var(--muted); font-size: 13px; margin: 6px 0 4px; }
.contact-card .btn { display: block; margin-top: 12px; }
.qr-box { margin: 16px auto 4px; }
.qr-box img { width: 185px; height: 185px; object-fit: contain; margin: 0 auto; border: 1px dashed var(--brand); border-radius: 12px; background: #fff7fb; }
.qr-box.is-empty::before { content: "微信二维码图 300×300（后台上传）"; display: flex; align-items: center; justify-content: center; width: 185px; height: 185px; margin: 0 auto; border: 1px dashed var(--brand); border-radius: 12px; background: #fff2f7; color: var(--muted); font-size: 13px; }
.qr-tip { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }

/* 移动端底部转化条 */
.mobile-bar { display: none; }

/* 页脚 - 卡片少时吸底 */
.site-footer { background: #2b2230; color: #cbbcc6; padding: 24px 0; font-size: 13px; text-align: center; margin-top: auto; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer strong { color: #fff; }

/* 响应式：三端适配 */
/* 平板 ≤1024px */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }
  .shop-list.is-grid { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .detail, .detail-layout { grid-template-columns: 1fr 280px; }
  .search-box input { width: 130px; }
}
/* 手机 ≤860px */
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; padding: 10px 10px; }
  .search-box { order: 3; width: 100%; }
  .search-box input { flex: 1; width: auto; }
  .hero { padding: 40px 0 36px; }
  .hero-inner h1 { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .shop-list.is-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shop-info h3 { font-size: 14px; }
  .city-list { grid-template-columns: 1fr; }
  .city-text-list ul { grid-template-columns: repeat(2, 1fr); }
  .detail, .detail-layout { grid-template-columns: 1fr; }
  .detail-top { grid-template-columns: 1fr; }
  .detail-main { grid-column: auto; grid-row: auto; }
  .right-col { grid-column: auto; position: static; }
  .side, .contact-card { position: static; }
  .gallery:not(.gallery-43) { height: 240px; }
  .float-bar { right: 10px; }
  .float-btn { width: 40px; height: 40px; }
  .mobile-bar { display: flex; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 60; }
  .mobile-bar a { flex: 1; text-align: center; padding: 14px; font-weight: 800; }
  .mobile-bar .wechat-btn { background: var(--brand); color: #fff; }
}
/* 小屏 ≤480px */
@media (max-width: 480px) {
  .shop-list.is-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .shop-info h3 { font-size: 13px; }
  .shop-sub { font-size: 11px; }
  .brand-text { font-size: 15px; }
  .city-switch { font-size: 12px; }
  .page-title { font-size: 20px; }
}
/* 新底部五栏 */
.footer-dark { background: #1c1620; color: #b9aab4; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 20px; text-align: left; padding: 28px 0 10px; }
.footer-col h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.footer-col a { display: block; font-size: 13px; padding: 2px 0; color: #b9aab4; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13px; margin: 0; line-height: 1.9; }
.disclaimer { border-top: 1px solid #3a2f3d; border-bottom: 1px solid #3a2f3d; padding: 12px 0; font-size: 12px; line-height: 1.8; text-align: left; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0 4px; font-size: 12px; }
.footer-bottom a { color: #d9c9d3; }
/* 营业变暗 */
.shop-card.is-closed .shop-photo img { filter: grayscale(1) brightness(.55); }
.shop-card.is-closed .shop-info { opacity: .5; }
.closed-mask { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.7); color: #fff; font-size: 13px; padding: 5px 16px; border-radius: 999px; }
.shop-card.is-closed .closed-mask { display: block; }
/* 详情网址复制 + 相册灯箱 */
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 12px; font-size: 12px; color: var(--brand-dark); cursor: pointer; margin-left: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.photo-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 200; align-items: center; justify-content: center; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 86vw; max-height: 82vh; border-radius: 10px; }
.lb-close { position: absolute; top: 18px; right: 26px; color: #fff; font-size: 38px; cursor: pointer; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; font-size: 30px; background: rgba(255,255,255,.9); color: var(--brand); cursor: pointer; }
.lb-arrow.left { left: 20px; } .lb-arrow.right { right: 20px; }
.lb-count { position: absolute; bottom: 20px; color: #fff; font-size: 14px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } .photo-grid { grid-template-columns: repeat(3, 1fr); } }
