/* 地区落地页(jiaxiao.php:全国 / 省 / 市)专用样式。
   全部使用 style.css 里的 CSS 变量;类名统一 lp- 前缀,不与
   schools.css(.school-card/.jx-*/.jd-*/.sc-*/.flt-*/.ce-*)、admin.css(.adm-*)冲突。 */

/* ===== 面包屑 ===== */
.lp-crumb {
  font-size: 13px; color: var(--text-sub); margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.5;
}
.lp-crumb a { color: var(--text-sub); text-decoration: none; }
.lp-crumb a:hover { color: var(--blue); text-decoration: underline; }
.lp-crumb-sep { color: var(--border); }
.lp-crumb-cur { color: var(--text); font-weight: 600; }

/* ===== 页头 ===== */
.lp-head {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin-bottom: 18px;
}
.lp-head h1 { font-size: 25px; line-height: 1.35; margin-bottom: 6px; }
.lp-desc { color: var(--text-sub); font-size: 14px; line-height: 1.8; }
.lp-desc b { color: var(--orange); font-weight: 700; }

/* 区块小标题 */
.lp-sec {
  font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3;
  margin: 24px 0 12px; padding-left: 9px; border-left: 4px solid var(--blue);
}

/* ===== 地区网格(省 / 市) ===== */
.lp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px;
}
.lp-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; text-decoration: none; color: var(--text);
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  transition: border-color .12s, color .12s, transform .06s, box-shadow .15s;
}
.lp-item:hover {
  border-color: var(--blue); color: var(--blue);
  transform: translateY(-1px); box-shadow: var(--shadow);
}
.lp-item-name { font-size: 15px; font-weight: 600; }
.lp-count { flex: none; font-size: 12.5px; color: var(--orange); font-weight: 700; white-space: nowrap; }
.lp-item.is-zero { color: var(--text-sub); }
.lp-item.is-zero .lp-item-name { font-weight: 400; }
.lp-item.is-zero .lp-count { color: var(--text-sub); font-weight: 400; opacity: .8; }

/* ===== 提示条 ===== */
.lp-note {
  background: var(--blue-light); color: #1e40af; border-radius: 10px;
  padding: 12px 15px; font-size: 13.5px; line-height: 1.7; margin: 18px 0;
}
.lp-note a { color: var(--blue); font-weight: 600; }
.lp-note.is-err { background: var(--red-light); color: #991b1b; border: 1px solid #fecaca; }

/* ===== 空状态(空城市页是常态,必须体面) ===== */
.lp-empty {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 38px 24px; text-align: center;
}
.lp-empty-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.lp-empty p {
  color: var(--text-sub); font-size: 14px; line-height: 1.9;
  max-width: 560px; margin: 0 auto;
}
.lp-empty-acts {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px;
}

/* ===== 驾校列表项 ===== */
.lp-school-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px;
}
.lp-school {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 7px;
  transition: transform .08s, box-shadow .15s;
}
.lp-school:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.lp-s-name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.lp-s-name a { color: var(--text); text-decoration: none; }
.lp-s-name a:hover { color: var(--blue); }
.lp-s-rating { display: flex; align-items: center; gap: 5px; color: var(--orange); font-size: 13px; line-height: 1.4; }
.lp-s-rating b { font-size: 16px; font-weight: 700; }
.lp-s-rv { color: var(--text-sub); font-size: 12px; font-weight: 400; margin-left: 2px; }
.lp-s-addr { font-size: 13px; color: var(--text-sub); line-height: 1.6; }
.lp-s-region { color: var(--blue); }
.lp-s-tags, .lp-s-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-s-tag {
  background: var(--blue-light); color: var(--blue);
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px;
}
.lp-s-cert {
  background: var(--green-light); color: var(--green); border: 1px solid #bbf7d0;
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px;
}
.lp-s-feat {
  background: var(--bg); color: var(--text-sub); border: 1px solid var(--border);
  font-size: 11.5px; padding: 2px 8px; border-radius: 6px;
}
.lp-s-promo {
  background: var(--red-light); color: var(--orange); border-left: 3px solid var(--orange);
  font-size: 12.5px; padding: 5px 10px; border-radius: 0 8px 8px 0; line-height: 1.4;
}
.lp-s-price { color: var(--orange); font-weight: 700; font-size: 16px; margin-top: auto; }

/* ===== 分页(真链接,不是按钮) ===== */
.lp-pager {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; margin: 24px 0 8px;
}
.lp-pager a, .lp-pager .lp-cur {
  border: 1px solid var(--border); background: var(--card); border-radius: 8px;
  padding: 7px 14px; font-size: 14px; line-height: 1.4; color: var(--text); text-decoration: none;
}
.lp-pager a:hover { border-color: var(--blue); color: var(--blue); }
.lp-pager .lp-cur { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.lp-pager .lp-dots { color: var(--text-sub); padding: 0 2px; }

/* ===== 底部出口 ===== */
.lp-more { margin: 22px 0 4px; text-align: center; font-size: 14px; }
.lp-more a { color: var(--blue); text-decoration: none; }
.lp-more a:hover { text-decoration: underline; }

/* ===== 移动端:网格改单列 ===== */
@media (max-width: 560px) {
  .lp-head { padding: 16px 16px; }
  .lp-head h1 { font-size: 21px; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-school-list { grid-template-columns: 1fr; }
  .lp-empty { padding: 30px 16px; }
  .lp-empty-acts .btn { width: 100%; }
  .lp-pager a, .lp-pager .lp-cur { padding: 7px 12px; }
}
