/* ==========================================================
   玩宠物 PC 端样式
   v2.5 视觉体系：晴空蓝 primary + 活力青 accent
   全部原创配色与系统字体，无第三方素材依赖
   ========================================================== */

:root {
  /* 主色（晴空蓝） */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-lighter: #eff6ff;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  /* 辅色（活力青） */
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-darker: #0e7490;
  --accent-light: #cffafe;
  --accent-lighter: #ecfeff;
  /* 语义色 */
  --success: #10b981;
  --success-light: #d1fae5;
  --warn: #f59e0b;
  --warn-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  /* 中性 */
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #fff;
  /* 圆角 / 阴影 */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.05);
  --shadow-hover: 0 6px 16px rgba(15,23,42,.07), 0 14px 32px rgba(37,99,235,.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 700; color: var(--text); flex-shrink: 0; letter-spacing: .5px; }
.logo .logo-mark { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon { font-size: 26px; }
.main-nav { display: flex; gap: 18px; flex: 1; align-items: center; }
.main-nav a { font-weight: 500; font-size: 14px; color: var(--text-light); position: relative; padding: 4px 0; white-space: nowrap; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent));
}
.header-search { display: flex; align-items: center; background: var(--bg); border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.header-search input { border: 0; background: transparent; padding: 9px 16px; width: 150px; outline: none; font-size: 13px; }
.header-search button {
  border: 0; background: var(--primary); color: #fff; padding: 9px 18px;
  cursor: pointer; font-size: 13px; font-weight: 500; transition: background .2s;
}
.header-search button:hover { background: var(--primary-dark); }

.site-notice { background: var(--primary-lighter); color: var(--primary-dark); font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--primary-200); }

.site-main { min-height: 60vh; padding-bottom: 50px; }

/* ---------- Banner ---------- */
.hero {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 52%, #1d4ed8 100%);
  border-radius: 0 0 28px 28px;
  padding: 54px 0 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '🐕🐈'; position: absolute; right: -20px; bottom: -30px;
  font-size: 180px; opacity: .13; letter-spacing: -30px;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; letter-spacing: 1px; }
.hero p { font-size: 16px; opacity: .93; margin-bottom: 28px; max-width: 560px; }
.hero-search { display: flex; max-width: 560px; background: #fff; border-radius: 28px; padding: 6px; box-shadow: 0 10px 30px rgba(30,58,138,.24); }
.hero-search input { flex: 1; border: 0; outline: none; padding: 11px 20px; font-size: 15px; border-radius: 22px; background: transparent; }
.hero-search button {
  border: 0; background: var(--primary); color: #fff; padding: 0 32px;
  border-radius: 22px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.hero-search button:hover { background: var(--primary-dark); }
.hero-stats { display: flex; gap: 42px; margin-top: 34px; }
.hero-stats .stat b { display: block; font-size: 26px; font-weight: 700; }
.hero-stats .stat span { font-size: 13px; opacity: .88; }

/* ---------- 区块标题 ---------- */
.section { margin-top: 46px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 22px; font-weight: 700; position: relative; padding-left: 14px; }
.section-head h2::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 20px; border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--accent));
}
.section-head .more { font-size: 13px; color: var(--text-light); }
.section-head .more:hover { color: var(--primary); }

/* ---------- 分类宫格 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat-item {
  background: var(--white); border-radius: var(--radius); padding: 20px 6px; text-align: center;
  box-shadow: var(--shadow); transition: all .25s; border: 1px solid transparent;
}
.cat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary-200); color: var(--primary); }
.cat-item .cat-emoji { font-size: 28px; display: block; margin-bottom: 8px; }
.cat-item .cat-name { font-size: 13px; font-weight: 500; }
.cat-item .cat-num { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid.col-3 { grid-template-columns: repeat(3, 1fr); }

.place-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all .25s; display: flex; flex-direction: column;
}
.place-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.place-cover {
  height: 158px; background: linear-gradient(135deg,#dbeafe,#bfdbfe);
  display: flex; align-items: center; justify-content: center; font-size: 42px; position: relative;
}
.place-cover img { width: 100%; height: 100%; object-fit: cover; }
.place-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(37,99,235,.94); color: #fff;
  font-size: 11px; padding: 3px 9px; border-radius: 10px; font-weight: 500;
}
.place-body { padding: 14px 15px 16px; flex: 1; display: flex; flex-direction: column; }
.place-title { font-size: 15px; font-weight: 600; margin-bottom: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-meta { font-size: 12px; color: var(--text-light); margin-bottom: 9px; display: flex; align-items: center; gap: 6px; }
.place-policy {
  font-size: 12px; color: var(--accent-darker); background: var(--accent-lighter); padding: 4px 9px;
  border-radius: 6px; display: inline-block; margin-bottom: 10px;
}
.place-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: 11px; color: var(--text-light); background: var(--bg); padding: 2px 8px; border-radius: 4px; }

/* ---------- 文章列表 ---------- */
.article-item {
  display: flex; gap: 16px; background: var(--white); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); transition: all .25s; margin-bottom: 14px;
}
.article-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.article-thumb {
  width: 110px; height: 78px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg,#dbeafe,#bfdbfe); display: flex; align-items: center;
  justify-content: center; font-size: 30px; overflow: hidden;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-info { flex: 1; min-width: 0; }
.article-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.article-info p { font-size: 13px; color: var(--text-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-foot { display: flex; gap: 16px; font-size: 12px; color: var(--text-lighter); margin-top: 8px; }

/* ---------- 侧栏布局 ---------- */
.with-side { display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
.side-card { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.side-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; padding-left: 11px; position: relative; }
.side-card h3::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); width:4px; height:15px; border-radius:2px; background:linear-gradient(180deg,var(--primary),var(--accent)); }
.hot-list li { list-style: none; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.hot-list li:last-child { border-bottom: 0; }
.hot-list .rank { display: inline-block; width: 19px; height: 19px; line-height: 19px; text-align: center;
  border-radius: 5px; background: var(--bg); color: var(--text-light); font-size: 11px; margin-right: 8px; }
.hot-list li:nth-child(1) .rank { background: var(--primary); color:#fff; }
.hot-list li:nth-child(2) .rank { background: var(--primary-400); color:#fff; }
.hot-list li:nth-child(3) .rank { background: var(--primary-200); color:#1e40af; }

/* ---------- 筛选栏 ---------- */
.filter-bar { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 22px; }
.filter-row { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.filter-row:last-child { border-bottom: 0; }
.filter-label { font-size: 13px; color: var(--text-light); width: 62px; flex-shrink: 0; padding-top: 3px; }
.filter-opts { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.filter-input { width: 240px; max-width: 100%; }
.filter-opts a, .filter-opts span {
  font-size: 13px; padding: 4px 13px; border-radius: 15px; cursor: pointer; transition: all .2s; color: var(--text);
}
.filter-opts a:hover { background: var(--primary-lighter); color: var(--primary); }
.filter-opts .on { background: var(--primary); color: #fff; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 34px 0 10px; }
.pagination a, .pagination span {
  min-width: 35px; height: 35px; line-height: 35px; text-align: center; padding: 0 10px;
  background: var(--white); border-radius: 8px; font-size: 13px; box-shadow: var(--shadow);
}
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination a.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ---------- 详情页 ---------- */
.detail-card { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.detail-title { font-size: 26px; font-weight: 700; margin-bottom: 14px; line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-light);
  padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.detail-content { font-size: 15px; line-height: 1.9; color: #334155; }
.detail-content h2 { font-size: 19px; margin: 28px 0 12px; font-weight: 600; padding-left: 12px; border-left: 4px solid var(--primary); }
.detail-content h3 { font-size: 16px; margin: 20px 0 10px; font-weight: 600; }
.detail-content p { margin-bottom: 14px; }
.detail-content strong { color: var(--text); }
.info-table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; }
.info-table td { padding: 11px 14px; font-size: 14px; border-bottom: 1px solid var(--border); }
.info-table td:first-child { width: 100px; color: var(--text-light); background: #f8fafc; }

.map-box { height: 280px; background: linear-gradient(135deg,#ecfeff,#cffafe); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--accent-darker); font-size: 14px; margin: 18px 0; flex-direction: column; gap: 8px; }
.map-box .map-icon { font-size: 40px; }

.pager-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: 14px; }
.pager-nav a { color: var(--text-light); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager-nav a:hover { color: var(--primary); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 70px 20px; color: var(--text-light); }
.empty .empty-icon { font-size: 52px; margin-bottom: 14px; opacity: .5; }

/* ---------- 工具页 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow);
  transition: all .25s; border: 1px solid transparent; }
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary-200); }
.tool-card .tool-emoji { font-size: 34px; margin-bottom: 12px; }
.tool-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.tool-card p { font-size: 13px; color: var(--text-light); }

.calc-form { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 11px 15px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; outline: none; transition: border-color .2s; font-family: inherit;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
select.form-control { cursor: pointer; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L2 4h8z'/%3E%3C/svg%3E") no-repeat right 15px center; }
.btn {
  display: inline-block; padding: 11px 32px; background: var(--primary); color: #fff; border: 0;
  border-radius: 9px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-block { width: 100%; }
.calc-result {
  margin-top: 22px; padding: 22px; background: var(--primary-lighter); border-radius: var(--radius);
  border-left: 4px solid var(--primary); display: none;
}
.calc-result.show { display: block; }
.calc-result .res-value { font-size: 28px; font-weight: 700; color: var(--primary-dark); }
.calc-result .res-label { font-size: 13px; color: var(--primary-dark); margin-bottom: 4px; }
.calc-result .res-tip { font-size: 12px; color: var(--text-light); margin-top: 12px; line-height: 1.7; }

/* ---------- 关于页 ---------- */
.about-content { background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.about-content h2 { font-size: 20px; margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.about-content h2:first-child { margin-top: 0; }
.about-content p { font-size: 14.5px; line-height: 1.9; color: #334155; margin-bottom: 13px; }
.about-note { background: var(--primary-lighter); border: 1px solid var(--primary-200); border-radius: 10px; padding: 18px 20px; margin-top: 24px; }
.about-note p { margin-bottom: 7px; font-size: 13.5px; }
.about-note p:last-child { margin-bottom: 0; }

/* ---------- 领养 ---------- */
.adopt-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .25s; }
.adopt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.adopt-tag { position: absolute; top: 10px; right: 10px; color:#fff; font-size: 11px; padding: 3px 9px; border-radius: 10px; font-weight:500; }
.adopt-tag.t1 { background: var(--accent-dark); }
.adopt-tag.t2 { background: var(--primary); }
.adopt-tag.t3 { background: var(--danger); }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-light); margin: 22px 0 16px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .with-side { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  /* 注意：主导航的隐藏已下移至 ≤767px（v2.0 平板保留导航），见文件末尾 */
}

/* ==========================================================
   城市分站切换器
   ========================================================== */

.city-switch { position: relative; flex-shrink: 0; }

.city-switch-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--primary-lighter); border: 1px solid var(--primary-200);
  color: var(--primary-dark); font-size: 13.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 18px; cursor: pointer;
  transition: all .2s; font-family: inherit; max-width: 120px;
}
.city-switch-btn:hover { background: var(--primary-100); border-color: var(--primary-300); }
.city-pin { font-size: 12px; }
.city-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 66px; }
.city-arrow { font-size: 11px; opacity: .7; }

.city-panel {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 460px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.16);
  z-index: 300; overflow: hidden; border: 1px solid var(--border);
}
.city-panel.show { display: block; }

.city-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px; font-size: 15px;
}
.city-panel-close { cursor: pointer; color: #94a3b8; font-size: 20px; line-height: 1; }
.city-panel-close:hover { color: var(--text); }

.city-panel-search { padding: 0 18px 12px; }
.city-panel-search input {
  width: 100%; padding: 8px 14px; border: 1px solid var(--border);
  border-radius: 18px; font-size: 13px; outline: none; font-family: inherit;
}
.city-panel-search input:focus { border-color: var(--primary); }

.city-panel-body { max-height: 330px; overflow-y: auto; padding: 0 18px 8px; }
.city-group { margin-bottom: 14px; }
.city-group-title { font-size: 12.5px; color: var(--text-light); margin-bottom: 9px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.city-chip {
  display: inline-block; padding: 5px 14px; border-radius: 14px;
  background: #f1f5f9; color: var(--text); font-size: 13px;
  transition: all .18s; cursor: pointer;
}
.city-chip:hover { background: var(--primary-lighter); color: var(--primary); }
.city-chip.on { background: var(--primary); color: #fff; font-weight: 500; }
.city-empty-tip { font-size: 13px; color: #94a3b8; padding: 10px 0; }

.city-panel-foot {
  border-top: 1px solid var(--border); padding: 11px 18px; text-align: center;
}
.city-panel-foot a { font-size: 13px; color: var(--primary); }

/* 城市提示条 */
.city-bar {
  background: var(--accent-lighter); color: var(--accent-dark); font-size: 12.5px;
  padding: 6px 0; border-bottom: 1px solid var(--accent-light);
}
.city-bar b { color: var(--accent-darker); }
.city-bar-switch { margin-left: 12px; color: var(--primary); text-decoration: underline; }

/* 页脚城市链接 */
.footer-city { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.footer-city a { font-size: 13px; color: var(--text-light); }
.footer-city a:hover { color: var(--primary-400); }
.footer-more { font-size: 13px; color: var(--primary-400); }

/* ==========================================================
   宠物类型切换器
   ========================================================== */

.species-switch { position: relative; flex-shrink: 0; }

.species-switch-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--accent-lighter); border: 1px solid var(--accent-light);
  color: var(--accent-darker); font-size: 13.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 18px; cursor: pointer;
  transition: all .2s; font-family: inherit; max-width: 150px;
}
.species-switch-btn:hover { background: var(--accent-light); border-color: #67e8f9; }
.species-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 116px; }

.species-panel {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 420px; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.16);
  z-index: 300; overflow: hidden; border: 1px solid var(--border);
}
.species-panel.show { display: block; }
.species-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px; font-size: 15px;
}
.species-panel-body { padding: 0 18px 12px; }

/* 类型徽标（列表卡片上展示"适合哪类宠物"） */
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-tag {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 9px; border-radius: 11px; font-size: 12px;
  background: var(--accent-lighter); color: var(--accent-darker);
}
.sp-tag.universal { background: #f1f5f9; color: var(--text-light); }
.sp-tag.on { background: var(--primary); color: #fff; }

/* ==========================================================
   城市分站列表页
   ========================================================== */
.city-hero {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 0 0 28px 28px; padding: 44px 0 48px; color: #fff;
  position: relative; overflow: hidden;
}
.city-hero::before {
  content: '🏙️'; position: absolute; right: 30px; bottom: -24px;
  font-size: 150px; opacity: .12;
}
.city-hero-title { font-size: 30px; font-weight: 700; margin-bottom: 10px; }
.city-hero-sub { font-size: 15px; opacity: .94; }
.city-hero-sub b { font-size: 18px; }

.city-hero-hot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.city-hero-hot-label { font-size: 13px; opacity: .85; }
.city-hero-hot-item {
  padding: 5px 15px; border-radius: 18px; font-size: 13.5px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  color: #fff; transition: all .2s;
}
.city-hero-hot-item:hover { background: #fff; color: var(--primary); }
.city-hero-hot-item.on { background: #fff; color: var(--primary); font-weight: 600; }

.city-hero-actions { margin-top: 20px; }
.city-hero-all {
  display: inline-block; font-size: 14px; color: #fff;
  border-bottom: 1px dashed rgba(255,255,255,.6); padding-bottom: 2px;
}
.city-hero-all:hover { border-bottom-style: solid; }

/* 字母导航（吸顶） */
.letter-nav {
  position: sticky; top: 0; z-index: 30; background: #fff;
  box-shadow: 0 1px 6px rgba(15,23,42,.05); margin-bottom: 26px;
}
.letter-nav .container { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.letter-nav-item {
  min-width: 34px; height: 34px; line-height: 34px; text-align: center; padding: 0 8px;
  border-radius: 8px; background: #f1f5f9; font-size: 13.5px; font-weight: 500;
  color: var(--text); transition: all .18s;
}
.letter-nav-item:hover { background: var(--primary); color: #fff; }
.letter-nav-top { font-size: 12.5px; color: var(--text-light); }

.city-list-wrap { padding-bottom: 20px; }

.alpha-group { margin-bottom: 26px; scroll-margin-top: 70px; }
.alpha-title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.alpha-title-letter {
  font-size: 17px; font-weight: 700; color: var(--primary);
  width: 30px; height: 30px; line-height: 30px; text-align: center;
  background: var(--primary-100); border-radius: 9px; flex: 0 0 auto;
}
.alpha-title-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--primary-200), transparent); }

.alpha-list { display: flex; flex-wrap: wrap; gap: 10px; }
.alpha-item {
  background: #fff; border-radius: 10px; box-shadow: var(--shadow);
  transition: all .18s; border: 1px solid transparent;
  padding: 10px 16px; min-width: 132px;
}
.alpha-item:hover { border-color: var(--primary-200); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.alpha-item.on { border-color: var(--primary); background: var(--primary-lighter); }
.alpha-item-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; margin-bottom: 3px;
}
.alpha-item-tag {
  font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 6px;
  background: #f1f5f9; color: var(--text-light); font-weight: 400;
}
.alpha-item-tag.hot { background: var(--primary-100); color: var(--primary); }
.alpha-item-meta { font-size: 12px; color: var(--text-light); }

.city-empty { text-align: center; padding: 60px 0; color: var(--text-light); font-size: 15px; }

.city-foot-tip { padding: 6px 0 50px; }
.city-foot-tip p {
  text-align: center; font-size: 13.5px; color: var(--text-light);
  background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.city-foot-tip a { color: var(--primary); }

@media (max-width: 1000px) {
  .city-hero-title { font-size: 24px; }
  .city-panel { width: 92vw; }
  .species-panel { width: 92vw; }
  .alpha-item { min-width: 0; flex: 1 1 calc(50% - 10px); }
}

/* ==================== PC 个人中心（v1.3） ==================== */
.user-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #fff; border-radius: 16px; padding: 26px 28px; margin: 26px 0 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.06);
}
.user-hero-avatar {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  background: var(--primary-lighter); display: flex; align-items: center; justify-content: center;
  font-size: 34px; flex: 0 0 76px;
}
.user-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-hero-info { flex: 1; min-width: 220px; }
.user-hero-info h1 { font-size: 21px; margin: 0 0 8px; color: var(--text); }
.user-hero-meta { font-size: 13.5px; color: var(--text-light); }
.user-hero-meta .dot { margin: 0 7px; color: #cbd5e1; }
.user-hero-meta .warn { color: #b45309; }
.user-hero-stat { margin-top: 12px; display: flex; gap: 26px; }
.user-stat b { font-size: 20px; color: var(--primary); display: block; }
.user-stat span { font-size: 12.5px; color: var(--text-light); }
.user-hero-actions { display: flex; gap: 10px; align-items: center; }
.user-hero-actions .btn-primary {
  padding: 9px 20px; border: 0; border-radius: 20px; cursor: pointer;
  background: linear-gradient(135deg,#3b82f6,#2563eb); color: #fff; font-size: 13.5px;
  box-shadow: 0 5px 14px rgba(37,99,235,.3);
}
.user-hero-actions .btn-ghost {
  padding: 9px 20px; border: 1px solid var(--border); border-radius: 20px;
  background: #fff; color: var(--text-light); font-size: 13.5px; text-decoration: none;
}
.user-hero-actions .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.user-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 22px; }
.user-card {
  display: block; background: #fff; border-radius: 14px; padding: 22px 20px;
  text-decoration: none; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.06);
  transition: transform .15s, box-shadow .15s;
}
.user-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.user-card-ico { font-size: 26px; display: block; margin-bottom: 10px; }
.user-card b { display: block; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.user-card-desc { font-size: 12.5px; color: var(--text-light); line-height: 1.6; }

.user-tip {
  background: var(--primary-lighter); border: 1px dashed var(--primary-200); border-radius: 12px;
  padding: 18px 22px; font-size: 13.5px; color: #475569; line-height: 1.9;
}
.user-tip p { margin: 0; }

@media (max-width: 900px) {
  .user-cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
  .user-cards { grid-template-columns: 1fr; }
  .user-hero { padding: 20px; }
}

/* ==================== 行业名片库 / 本地宠物群（v1.4） ==================== */
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 26px; margin-bottom: 8px; }
.page-head p { color: var(--text-light); font-size: 14px; }

.card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .card-list { grid-template-columns: 1fr; } }

.biz-card {
  background: var(--white); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); transition: all .2s; border: 1px solid transparent;
}
.biz-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary-200); }

.biz-card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.biz-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--primary-100);
}
.biz-avatar-txt {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff;
  font-size: 22px; font-weight: 700;
}
.biz-who { display: flex; flex-direction: column; min-width: 0; }
.biz-who b { font-size: 16.5px; }
.biz-title { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.biz-place {
  margin-left: auto; font-size: 12.5px; color: var(--primary-dark); background: var(--primary-lighter);
  padding: 5px 12px; border-radius: 15px; white-space: nowrap; max-width: 55%;
  overflow: hidden; text-overflow: ellipsis;
}
.biz-place:hover { background: var(--primary-100); }

.biz-intro {
  margin: 12px 0 10px; font-size: 13.5px; color: #475569; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tag {
  font-size: 11.5px; background: #f1f5f9; color: var(--text-light);
  padding: 3px 10px; border-radius: 5px;
}
.biz-contact {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--border); font-size: 13px; color: #334155;
}

/* 宠物群卡片 */
.group-card { display: flex; gap: 18px; }
.group-qr-box { flex-shrink: 0; }
.group-qr { width: 128px; height: 128px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.group-qr-empty {
  display: flex; align-items: center; justify-content: center; width: 128px; height: 128px;
  border-radius: 10px; background: var(--bg); color: #94a3b8; font-size: 13px; text-align: center;
}
.group-info { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.group-name { font-size: 16.5px; }
.group-info .biz-intro { margin: 0; }
.group-info .biz-contact { margin-top: auto; padding-top: 10px; }

/* ==================== 页脚（v1.4 配置化重构） ==================== */
.site-footer { background: #1e293b; color: #94a3b8; margin-top: 46px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 34px; padding: 40px 0 30px;
}
.footer-col h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; font-weight: 600; }
.footer-col a {
  display: block; color: #94a3b8; font-size: 13.5px; line-height: 2.1;
}
.footer-col a:hover { color: #60a5fa; }
.footer-line { font-size: 13.5px; line-height: 2.1; color: #94a3b8; }
.footer-brand .footer-line { line-height: 1.9; margin-bottom: 4px; }
.footer-brand h4 { display: flex; align-items: center; gap: 8px; }
.footer-brand h4 .logo-mark { width: 22px; height: 22px; border-radius: 6px; }
.footer-qr { text-align: center; }
.footer-qr-img {
  width: 118px; height: 118px; border-radius: 10px; background: #fff;
  padding: 5px; object-fit: cover; display: block; margin: 0 auto 8px;
}
.footer-qr .footer-line { font-size: 12.5px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center;
  font-size: 12.5px; color: #64748b; text-align: center;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-qr { text-align: left; }
}

/* ==================== v1.5：功能关闭提示条 ==================== */
.pc-notice {
  max-width: 1200px; margin: 0 auto 16px; padding: 12px 18px;
  border-radius: 10px; font-size: 14px; line-height: 1.7;
}
.pc-notice-warn { background: var(--warn-light); border: 1px solid #fcd34d; color: #92400e; }

/* ---------- v1.8 置顶角标（线下收费，仅 PC/H5） ---------- */
.place-badge.top { left: 10px; right: auto; background: rgba(239,68,68,.94); }
.place-badge.reco { left: auto; right: 10px; }
.merchants-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.merchants-grid .place-cover { height: 120px; }
@media (max-width: 900px) { .merchants-grid { grid-template-columns: repeat(2, 1fr); } }
.merchant-vip {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #92400e;
  background: #fef3c7; border: 1px solid #fcd34d; padding: 2px 8px; border-radius: 4px;
}
.biz-card-top { border-color: #fecaca; position: relative; }
.top-flag {
  position: absolute; top: -1px; right: 14px; background: rgba(239,68,68,.94); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 0 0 8px 8px; font-weight: 500; letter-spacing: 1px;
}

/* ---------- v1.9 全站防复制（标准防护）+ 一键拨号/导航 ---------- */
body {
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
  -webkit-touch-callout: none; /* iOS 长按弹出菜单 */
}
input, textarea, select, pre, code, .allow-copy,
.phone-link, .address-link {
  -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text;
}
img { -webkit-user-drag: none; }

/* 电话号码一键拨号 */
.phone-link {
  color: var(--accent-dark); font-weight: 500; text-decoration: none;
  border-bottom: 1px dashed rgba(8,145,178,.45); cursor: pointer;
}
.phone-link:hover { color: var(--accent-darker); border-bottom-style: solid; }

/* 地址点击导航 */
.address-link { color: inherit; text-decoration: none; cursor: pointer; }
a.address-link:hover { color: var(--primary); }

/* 地图区块增强 */
.map-box .map-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.map-box .map-static { width: 100%; max-width: 480px; border-radius: 8px; display: block; margin: 8px auto 2px; }

/* ==========================================================
   v2.0 平板自适应（768–1366px）
   目标：iPad 竖屏 768 / iPad 横屏 1024 / Pro 11" 834 / Pro 12.9" 1366 / 安卓平板
   策略：平板保留主导航与侧栏，网格介于桌面与手机之间；≤767px 才切换手机形态
   ========================================================== */

/* ---- ① 小笔记本 / iPad Pro 12.9" 横屏（≤1366）：容器略窄 + 头部收紧防换行 ---- */
@media (max-width: 1366px) {
  .container { max-width: 1100px; }
  .cat-grid { gap: 12px; }
  .card-grid { gap: 16px; }
  .tool-grid { gap: 16px; }

  /* 容器由 1180 收到 1100 后头部同步收紧，避免导航被迫折行 */
  .header-inner { gap: 13px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 13.5px; }
  .logo { font-size: 20px; }
  .logo-icon { font-size: 24px; }
  .header-search input { width: 124px; }
}

/* ---- ② iPad 横屏 / Pro 11"（834–1024）：保留主导航 + 保留侧栏 ---- */
@media (max-width: 1024px) and (min-width: 768px) {
  .container { max-width: 100%; padding: 0 22px; }

  /* 主导航保留（平板完全放得下）；头部各件收紧并禁止折行 */
  .header-inner { gap: 10px; height: 62px; flex-wrap: nowrap; }
  .main-nav { display: flex; gap: 11px; flex-wrap: nowrap; white-space: nowrap; }
  .main-nav a { font-size: 13px; }
  .logo { font-size: 19px; }
  .logo-icon { font-size: 23px; }
  .header-search input { width: 96px; padding: 9px 12px; }
  .header-search button { padding: 9px 13px; }
  .city-cur, .species-cur { max-width: 56px; }

  /* 网格：比桌面少一档，比手机多一档 */
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .merchants-grid { grid-template-columns: repeat(3, 1fr); }
  .card-list { grid-template-columns: repeat(2, 1fr); }

  /* 详情页：保留侧栏但收窄 */
  .with-side { grid-template-columns: 1fr 260px; gap: 20px; }
  .detail-card { padding: 26px; }

  /* 首屏 */
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 32px; }
}

/* ---- ③ iPad 竖屏 / 小平板（768–900，含 Pro 11" 竖屏 834）：更紧凑但仍保留导航 ---- */
@media (max-width: 900px) and (min-width: 768px) {
  .container { padding: 0 18px; }
  .header-inner { height: 58px; gap: 9px; flex-wrap: nowrap; }

  /* 导航仍在，只是更紧凑；禁止折行 */
  .main-nav { display: flex; gap: 9px; flex-wrap: nowrap; white-space: nowrap; }
  .main-nav a { font-size: 12.5px; }
  .logo { font-size: 17px; }
  .logo-text { font-size: 17px; }
  .logo-icon { font-size: 21px; }
  .header-search input { width: 78px; padding: 8px 11px; }
  .header-search button { padding: 8px 11px; font-size: 12.5px; }
  .city-cur, .species-cur { max-width: 48px; }

  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .merchants-grid { grid-template-columns: repeat(2, 1fr); }
  .with-side { grid-template-columns: 1fr; }   /* 侧栏下移，正文占满 */

  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14.5px; }
  .hero-stats { gap: 24px; margin-top: 26px; }
  .detail-card { padding: 22px; }
  .detail-title { font-size: 23px; }
}

/* ---- ④ 手机形态（≤767）：沿用原手机行为，导航隐藏 ---- */
@media (max-width: 767px) {
  .main-nav { display: none; }

  /* 筛选栏：下拉与选项在窄屏堆叠，防止横向溢出 */
  .filter-row { flex-direction: column; gap: 8px; }
  .filter-label { width: auto; padding-top: 0; }
  .filter-opts { width: 100%; max-width: 100%; min-width: 0; }
  .filter-opts form,
  .filter-opts input,
  .filter-opts .btn { width: 100%; max-width: 100%; box-sizing: border-box; }
  .filter-opts input.form-control { width: 100% !important; }
  .filter-opts input[style] { width: 100% !important; }
}

/* ---- ⑤ 触屏优化（平板/手机无 hover）：加大点击区、去掉 hover 残留动效 ---- */
@media (hover: none) and (pointer: coarse) {
  .main-nav a { padding: 8px 0; }
  .btn { padding: 12px 30px; }
  .btn-sm { padding: 9px 16px; }
  .pager-nav a { padding: 9px 13px; }
  .place-card, .biz-card, .adopt-card, .card-grid > * { transition: none; }
  .place-card:hover, .biz-card:hover, .adopt-card:hover { transform: none; box-shadow: var(--shadow); }
}

/* ==========================================================
   v2.1 广告位（首页中部 / 列表内嵌 / 详情底部）
   ========================================================== */
.ad-banner-row { display: flex; flex-direction: column; gap: 14px; }
.ad-banner {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; line-height: 0; box-shadow: var(--shadow);
}
.ad-banner img { width: 100%; display: block; border-radius: var(--radius); }
.ad-tag {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 11px; line-height: 1; padding: 4px 8px;
  border-radius: 9px; letter-spacing: .5px;
}
.ad-inline { margin: 18px 0; }
.ad-inline .ad-banner { box-shadow: none; border: 1px solid var(--border); }
.ad-detail-bottom { margin-top: 22px; }

/* 平板档：内嵌广告不占满，留出呼吸感 */
@media (max-width: 1024px) and (min-width: 768px) {
  .ad-banner-row { gap: 12px; }
}

/* ===== v2.2 商务合作弹层（平台自营推广服务 · 线下付款引导） ===== */
.bizcoop-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, .58);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.bizcoop-mask[hidden] { display: none; }
.bizcoop-box {
  position: relative;
  background: #fff; border-radius: 14px;
  max-width: 560px; width: 100%;
  max-height: 86vh; overflow: auto;
  padding: 30px 32px 24px;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}
.bizcoop-close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f1f5f9; color: var(--text-light); font-size: 22px; line-height: 1;
  cursor: pointer;
}
.bizcoop-close:hover { background: #e2e8f0; color: #334155; }
.bizcoop-title { margin: 0 0 6px; font-size: 22px; color: #1e293b; }
.bizcoop-sub { margin: 0 0 18px; font-size: 13px; color: var(--text-light); }
.bizcoop-body { display: flex; gap: 22px; align-items: flex-start; }
.bizcoop-qrwrap { flex-shrink: 0; text-align: center; }
.bizcoop-qr {
  display: block; width: 148px; height: 148px; object-fit: contain;
  border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 6px;
}
.bizcoop-qrtip { margin: 8px 0 0; font-size: 12px; color: var(--text-lighter); }
.bizcoop-info { flex: 1; min-width: 0; }
.bizcoop-guide { margin: 0 0 12px; font-size: 14px; color: #475569; line-height: 1.7; }
.bizcoop-wx { margin: 0; font-size: 14px; color: var(--accent-darker); word-break: break-all; }
.bizcoop-copy {
  margin-left: 8px; border: 1px solid var(--accent-darker); background: #fff; color: var(--accent-darker);
  border-radius: 6px; font-size: 12px; padding: 3px 10px; cursor: pointer;
}
.bizcoop-copy:hover { background: var(--accent-darker); color: #fff; }
.bizcoop-note {
  margin: 20px 0 0; padding-top: 14px; border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--text-lighter); line-height: 1.8;
}
/* 平板 / 窄屏自适应 */
@media (max-width: 720px) {
  .bizcoop-box { padding: 24px 20px 18px; }
  .bizcoop-body { flex-direction: column; align-items: center; text-align: center; }
  .bizcoop-qr { width: 130px; height: 130px; }
}

/* ==================== v2.3 地图页 ==================== */
.map-hero { margin-bottom: 20px; }
.map-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.map-hero p { font-size: 14px; color: var(--text-light); }
.map-layout { display: grid; grid-template-columns: 330px 1fr; gap: 16px; margin-bottom: 26px; align-items: stretch; }
.map-side {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; max-height: 560px; overflow: hidden;
}
.map-side-head { padding: 12px 16px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.map-side-list { overflow-y: auto; flex: 1; }
.map-side-item { display: block; padding: 11px 16px; border-bottom: 1px dashed var(--border); transition: background .15s; }
.map-side-item:hover, .map-side-item.on { background: var(--primary-lighter); }
.msi-title { font-size: 14px; font-weight: 600; color: var(--text); }
.msi-meta { font-size: 12px; color: var(--text-light); margin-top: 3px; }
.msi-policy { font-size: 12px; color: var(--accent-dark); margin-top: 4px; }
.map-canvas-wrap { position: relative; min-height: 560px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
#mapCanvas { position: absolute; inset: 0; }
.map-tip {
  position: absolute; left: 12px; bottom: 12px; z-index: 5; max-width: 440px;
  background: rgba(255,255,255,.94); border-radius: 8px; padding: 8px 12px;
  font-size: 12px; color: #475569; box-shadow: var(--shadow);
}
.map-actions { position: absolute; right: 12px; top: 12px; z-index: 5; }
.near-result {
  position: absolute; right: 12px; top: 58px; z-index: 5; width: 300px; max-height: 320px; overflow-y: auto;
  background: rgba(255,255,255,.97); border-radius: 10px; padding: 14px 16px;
  font-size: 13px; box-shadow: var(--shadow-hover);
}
.near-result ol { margin: 8px 0 0; padding-left: 18px; }
.near-result li { margin-bottom: 6px; }
.tmap-win { font-size: 13px; line-height: 1.7; }
.tmap-win a { color: var(--primary); font-weight: 600; }
.map-fallback-note { background: var(--primary-lighter); color: var(--primary-dark); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.map-fallback-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
@media (max-width: 1000px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-side { max-height: 300px; }
  .map-canvas-wrap { min-height: 420px; }
  .map-fallback-groups { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== v2.3 同城活动 ==================== */
.event-hero { margin-bottom: 20px; }
.event-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.event-hero p { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.event-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: all .25s; display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.event-card.is-ended { opacity: .62; }
.event-cover {
  height: 140px; background: linear-gradient(135deg,#dbeafe,#bfdbfe);
  display: flex; align-items: center; justify-content: center; font-size: 40px; position: relative;
}
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-st {
  position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 10px; background: rgba(255,255,255,.94); color: var(--accent-dark);
}
.event-st-upcoming { background: var(--primary); color: #fff; }
.event-st-ongoing { background: var(--accent-dark); color: #fff; }
.event-st-ended { background: rgba(100,116,139,.85); color: #fff; }
.event-body { padding: 13px 15px 15px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.event-title { font-size: 15px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-meta { font-size: 12px; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 10px; }
.event-cover-main { border-radius: 10px; overflow: hidden; margin-bottom: 18px; max-height: 380px; }
.event-cover-main img { width: 100%; object-fit: cover; display: block; }
.event-join-note {
  background: var(--accent-lighter); border-left: 4px solid var(--accent-dark); border-radius: 8px;
  padding: 14px 18px; font-size: 14px; line-height: 1.9; margin-bottom: 14px;
}
.event-contact {
  background: #fffbeb; border-left: 4px solid var(--warn); border-radius: 8px;
  padding: 12px 18px; font-size: 14px; line-height: 1.8; margin-bottom: 6px;
}
.event-legal {
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px;
  padding: 12px 16px; font-size: 12.5px; color: var(--text-light); line-height: 1.9; margin-bottom: 26px;
}
.event-disclaimer {
  margin-top: 26px; background: #f8fafc; border-radius: 8px;
  padding: 14px 18px; font-size: 12.5px; color: var(--text-light); line-height: 1.9;
}
.event-disclaimer b { display: block; margin-bottom: 4px; color: #475569; }
@media (max-width: 1000px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==================== v2.3 品种百科 ==================== */
.breed-hero { margin-bottom: 20px; }
.breed-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.breed-hero p { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.breed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 26px; }
.breed-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: all .25s; display: flex; flex-direction: column;
}
.breed-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.breed-cover {
  height: 150px; background: linear-gradient(135deg,#dbeafe,#bfdbfe);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.breed-cover img { width: 100%; height: 100%; object-fit: cover; }
.breed-letter { font-size: 44px; font-weight: 700; color: rgba(37,99,235,.35); }
.breed-body { padding: 13px 15px 15px; flex: 1; }
.breed-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.breed-alias { font-size: 12px; color: var(--text-light); margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breed-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.breed-facts span { font-size: 11px; color: #475569; background: var(--bg); padding: 2px 8px; border-radius: 4px; }
.breed-chr { font-size: 12px; color: var(--text-light); line-height: 1.6; }
.breed-detail-head { display: flex; gap: 26px; align-items: flex-start; }
.breed-detail-cover {
  width: 240px; height: 200px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg,#dbeafe,#bfdbfe);
  display: flex; align-items: center; justify-content: center;
}
.breed-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.breed-detail-cover span { font-size: 64px; font-weight: 700; color: rgba(37,99,235,.35); }
.breed-detail-info { flex: 1; min-width: 0; }
.breed-fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
.breed-fact { display: flex; gap: 10px; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
.breed-fact .bf-k { color: var(--text-lighter); flex-shrink: 0; }
.breed-fact .bf-v { color: var(--text); font-weight: 500; }
.breed-suit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.breed-suit { border-radius: 10px; padding: 14px 18px; font-size: 13.5px; line-height: 1.8; }
.breed-suit.ok { background: var(--accent-lighter); border-left: 4px solid var(--accent-dark); }
.breed-suit.no { background: #fffbeb; border-left: 4px solid var(--warn); }
.breed-suit p { margin-top: 6px; color: #475569; }
.breed-price {
  display: inline-block; background: var(--primary-lighter); color: var(--primary-dark); border-radius: 8px;
  padding: 8px 18px; font-size: 16px; font-weight: 600;
}
.breed-disclaimer {
  margin-top: 26px; background: #f8fafc; border-radius: 8px;
  padding: 14px 18px; font-size: 12.5px; color: var(--text-light); line-height: 1.9;
}
.breed-disclaimer b { color: #475569; }
.breed-disclaimer p { margin-top: 3px; }
@media (max-width: 1000px) {
  .breed-grid { grid-template-columns: repeat(2, 1fr); }
  .breed-detail-head { flex-direction: column; }
  .breed-suit-wrap { grid-template-columns: 1fr; }
}
.visit-label { color: var(--accent-dark); font-weight: 600; }

/* ==================== v2.3 城市落地页 ==================== */
.city-landing-hero {
  background: linear-gradient(135deg,#eff6ff,#dbeafe); border-radius: 14px;
  padding: 34px 36px; margin-bottom: 26px;
}
.city-landing-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.city-landing-hero p { font-size: 14px; color: #475569; line-height: 1.9; }
.city-landing-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.city-landing-side { min-width: 0; }
@media (max-width: 720px) { .city-landing-hero { padding: 24px 20px; } }

/* ==================== 宠物友好指数（v2.6） ==================== */
.friendly-box {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 18px 20px; margin-bottom: 22px;
}
.friendly-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.friendly-head b { font-size: 15px; color: #1e293b; }
.friendly-meta { font-size: 12.5px; color: #64748b; }
.friendly-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.friendly-item { display: flex; align-items: center; gap: 10px; }
.friendly-name {
  flex: 0 0 118px; font-size: 13.5px; color: #334155;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.friendly-bar { flex: 1; height: 7px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.friendly-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #06b6d4, #2563eb); }
.friendly-pct { flex: 0 0 42px; text-align: right; font-size: 13px; font-weight: 600; color: #2563eb; }
.friendly-tip { margin-top: 12px; font-size: 12px; color: #94a3b8; }
@media (max-width: 720px) {
  .friendly-list { grid-template-columns: 1fr; }
}

/* ---------- 同城动态（v2.7 第四批） ---------- */
.feed-list { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feed-item { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: #f8fafc; }
.feed-icon { font-size: 22px; width: 40px; height: 40px; line-height: 40px; text-align: center; background: #f1f5f9; border-radius: 10px; flex-shrink: 0; }
.feed-body { flex: 1; min-width: 0; }
.feed-title { font-size: 15px; color: var(--text); font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feed-desc { margin-top: 3px; font-size: 13px; color: var(--text-light); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.feed-time { font-size: 13px; color: #94a3b8; flex-shrink: 0; }
.feed-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 20px; margin-right: 8px; vertical-align: 1px; }
.feed-tag-place { background: #eff6ff; color: #2563eb; }
.feed-tag-event { background: #fef3c7; color: #b45309; }
.feed-tag-adopt { background: #f0fdf4; color: #15803d; }

/* ==================== v2.7 品牌资源页 ==================== */
.brand-group { margin-bottom: 26px; }
.brand-group-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--primary-light);
  border-radius: 12px 12px 0 0; border: 1px solid var(--border); border-bottom: none;
}
.brand-group-icon { font-size: 22px; }
.brand-group-title { font-weight: 700; font-size: 15px; color: var(--text); }
.brand-group-desc { font-size: 12.5px; color: var(--text-light); margin-top: 2px; }
.brand-list { border: 1px solid var(--border); border-radius: 0 0 12px 12px; overflow: hidden; background: #fff; }
.brand-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; text-decoration: none; color: inherit;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.brand-item:last-child { border-bottom: none; }
.brand-item:hover { background: #f8fafc; }
.brand-item-icon { font-size: 18px; }
.brand-item-body { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-item-title { font-weight: 600; font-size: 14px; color: var(--text); }
.brand-item-meta { font-size: 12px; color: var(--text-light); }
.brand-item-arrow { color: var(--primary); font-weight: 600; }

/* ===== v2.9 补：养宠问答 PC 长尾页（/faq、/faq/detail） ===== */
.faq-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 70%);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 28px; margin-bottom: 18px;
}
.faq-hero-main { flex: 1; min-width: 260px; }
.faq-hero-main h1 { font-size: 26px; margin: 0 0 10px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.faq-hero-count { font-size: 13px; font-weight: 500; color: var(--primary); background: var(--white); border: 1px solid var(--primary-100); border-radius: 20px; padding: 3px 12px; }
.faq-hero-main p { margin: 0; font-size: 14px; color: var(--text-light); line-height: 1.8; }
.faq-hero-main p b { color: #b45309; }

.faq-search { display: flex; align-items: center; gap: 8px; }
.faq-search input {
  width: 260px; height: 40px; padding: 0 14px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 20px; background: var(--white); outline: none;
}
.faq-search input:focus { border-color: var(--primary); }
.faq-search button {
  height: 40px; padding: 0 22px; border: none; border-radius: 20px; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 14px;
}
.faq-search button:hover { background: var(--primary-dark); }
.faq-search-clear { font-size: 13px; color: var(--text-light); text-decoration: none; }
.faq-search-clear:hover { color: var(--primary); }

.faq-filter { margin-bottom: 16px; }
.faq-filter .filter-opts a small { color: #94a3b8; margin-left: 3px; }

.faq-anchor {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 18px; margin-bottom: 20px;
  background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius);
}
.faq-anchor-label { font-size: 13px; color: var(--text-light); font-weight: 600; }
.faq-anchor a {
  font-size: 13px; color: var(--text); text-decoration: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 5px 14px;
}
.faq-anchor a:hover { border-color: var(--primary); color: var(--primary); }
.faq-anchor a small { color: #94a3b8; margin-left: 4px; }

.faq-sec { margin-bottom: 26px; }
.faq-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.faq-sec-head h2 { font-size: 18px; margin: 0; color: var(--text); }
.faq-sec-count { font-size: 12px; color: var(--text-light); background: var(--bg); border-radius: 12px; padding: 2px 10px; }

.faq-list { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 15px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 15px; font-weight: 600; color: var(--text); transition: background .15s;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: #f8fafc; }
.faq-q-text { flex: 1; min-width: 0; }
.faq-q-icon { flex: none; width: 18px; height: 18px; position: relative; }
.faq-q-icon::before, .faq-q-icon::after {
  content: ''; position: absolute; background: #94a3b8; border-radius: 2px;
  transition: transform .2s;
}
.faq-q-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-q-icon::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] > summary .faq-q-icon::after { transform: scaleY(0); }
.faq-item[open] > summary { color: var(--primary); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; font-size: 14px; line-height: 1.9; color: #475569; }
.faq-a-more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--primary); text-decoration: none; }
.faq-a-more:hover { text-decoration: underline; }

.faq-empty { text-align: center; padding: 60px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-empty-emoji { font-size: 40px; margin-bottom: 12px; }
.faq-empty p { margin: 6px 0; color: var(--text); font-size: 15px; }
.faq-empty-sub { color: var(--text-light) !important; font-size: 13px !important; }
.faq-empty-sub a { color: var(--primary); text-decoration: none; }

.faq-disclaimer {
  margin-top: 8px; padding: 14px 18px; font-size: 13px; line-height: 1.8;
  color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius);
}
.faq-disclaimer b { color: #b45309; }

.faq-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 20px; padding: 18px 22px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
}
.faq-cta-text { flex: 1; min-width: 240px; font-size: 14px; color: var(--text-light); }
.faq-cta-text b { display: block; color: var(--text); margin-bottom: 4px; }
.faq-cta-btn {
  flex: none; padding: 10px 22px; border-radius: 22px; text-decoration: none;
  background: var(--primary); color: #fff; font-size: 14px;
}
.faq-cta-btn:hover { background: var(--primary-dark); }

/* 详情页 */
.faq-detail-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 32px; margin-bottom: 24px;
}
.faq-detail-tag {
  display: inline-block; font-size: 12px; color: var(--primary);
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: 14px; padding: 3px 12px; margin-bottom: 14px;
}
.faq-detail-title { font-size: 24px; line-height: 1.5; margin: 0 0 18px; color: var(--text); }
.faq-detail-answer p { margin: 0 0 12px; font-size: 15px; line-height: 1.95; color: #334155; }
.faq-detail-answer p:last-child { margin-bottom: 0; }
.faq-disclaimer-inline { margin-top: 20px; }
.faq-detail-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border);
  font-size: 13px; color: var(--text-light);
}
.faq-detail-foot a { color: var(--primary); text-decoration: none; }

.faq-related { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-related-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border); font-size: 14px; transition: background .15s;
}
.faq-related-item:last-child { border-bottom: none; }
.faq-related-item:hover { background: #f8fafc; }
.faq-related-q { flex: 1; min-width: 0; }
.faq-related-go { color: var(--primary); font-weight: 600; }

@media (max-width: 768px) {
  .faq-hero { padding: 20px; }
  .faq-search { width: 100%; }
  .faq-search input { flex: 1; width: auto; }
  .faq-detail-card { padding: 20px; }
  .faq-detail-title { font-size: 20px; }
}
