/* 驾校频道样式：所有选择器以 jx- 开头，不影响公共头尾 */
.jx-wrap { width: 960px; margin: 0 auto; padding: 16px 0 40px; font-size: 14px; color: #333; box-sizing: border-box; }
.jx-wrap a { color: inherit; text-decoration: none; }
.jx-wrap img { border: 0; }

.jx-crumb { font-size: 13px; color: #999; margin-bottom: 14px; }
.jx-crumb a:hover { color: #EC2139; }
.jx-crumb i { font-style: normal; margin: 0 6px; color: #ccc; }

.jx-cols { display: flex; align-items: flex-start; justify-content: space-between; }
.jx-main { width: 690px; flex: none; min-width: 0; }
.jx-side { width: 250px; flex: none; }

.jx-title { margin-bottom: 14px; }
.jx-h1 { margin: 0; font-size: 24px; line-height: 1.4; color: #222; font-weight: bold; }
.jx-sub { margin: 4px 0 0; color: #999; font-size: 13px; }

/* 筛选 */
.jx-filter { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.jx-filter-row { display: flex; align-items: flex-start; padding: 4px 0; }
.jx-filter-label { flex: none; width: 56px; line-height: 28px; color: #999; font-size: 13px; }
.jx-filter-label img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; }
.jx-filter-items { flex: 1; display: flex; flex-wrap: wrap; }
.jx-filter-items a { margin: 0 6px 4px 0; padding: 0 12px; line-height: 26px; border-radius: 13px; color: #666; font-size: 13px; }
.jx-filter-items a:hover { color: #EC2139; background: #FFF4F4; }
.jx-filter-items a.on { background: #EC2139; color: #fff; }

/* 列表 */
.jx-list { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 0 16px; }
.jx-card { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.jx-card:last-child { border-bottom: 0; }
.jx-card-img { flex: none; display: block; width: 180px; height: 120px; }
.jx-card-img img { display: block; width: 180px; height: 120px; border-radius: 6px; object-fit: cover; }
.jx-card-body { flex: 1; min-width: 0; padding: 0 16px; }
.jx-card-name { margin: 0 0 8px; font-size: 18px; line-height: 1.4; color: #222; font-weight: bold; }
.jx-card-name a:hover { color: #EC2139; }
.jx-card-act { flex: none; display: flex; flex-direction: column; }
.jx-card-act .jx-btn { margin-bottom: 10px; }
.jx-card-act .jx-btn:last-child { margin-bottom: 0; }
.jx-empty { text-align: center; padding: 50px 0; color: #999; }
.jx-empty img { width: 80px; height: 80px; }

.jx-badges { margin-bottom: 8px; }
.jx-badges:empty { display: none; }
.jx-badge { display: inline-block; margin: 0 6px 4px 0; padding: 0 8px; line-height: 20px; border-radius: 10px; font-size: 12px; vertical-align: top; }
.jx-badge img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.jx-badge-zs { background: #EC2139; color: #fff; }
.jx-badge-vip { background: #FFF4F4; color: #EC2139; }
.jx-badge-ck { border: 1px solid #EC2139; color: #EC2139; line-height: 18px; }
.jx-badge-year { background: #f5f5f5; color: #999; }

.jx-addr { margin: 0 0 6px; color: #666; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jx-addr img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.jx-meta { margin: 0; color: #999; font-size: 13px; }

/* 按钮 */
.jx-btn { display: inline-block; min-width: 88px; padding: 0 16px; height: 34px; line-height: 34px; border-radius: 18px; background: #EC2139; color: #fff !important; text-align: center; font-size: 14px; border: 1px solid #EC2139; box-sizing: border-box; cursor: pointer; }
.jx-btn:hover { background: #d01a30; border-color: #d01a30; }
.jx-btn-line { background: #fff; color: #EC2139 !important; }
.jx-btn-line:hover { background: #FFF4F4; border-color: #EC2139; }

/* 分页 */
.jx-pager { margin-top: 20px; text-align: center; }
.jx-pager a, .jx-pager span { display: inline-block; min-width: 34px; height: 34px; line-height: 32px; margin: 0 3px; padding: 0 10px; border: 1px solid #f0f0f0; border-radius: 17px; background: #fff; color: #666; box-sizing: border-box; }
.jx-pager a:hover { color: #EC2139; border-color: #FFD6DC; }
.jx-pager .cur { background: #EC2139; border-color: #EC2139; color: #fff; }

/* 侧栏 */
.jx-form-card, .jx-side-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.jx-side-card { padding: 16px; }
.jx-form-banner { height: 110px; padding: 20px 16px 0; box-sizing: border-box; background: #FFF4F4 url(/resources/jiaxiao/img/banner.png) right center / cover no-repeat; }
.jx-form-banner h3 { margin: 0 0 6px; font-size: 20px; color: #EC2139; font-weight: bold; }
.jx-form-banner p { margin: 0; width: 55%; font-size: 12px; color: #666; line-height: 1.5; }
.jx-form { padding: 16px; position: relative; }
.jx-form input[type=text], .jx-form input[type=tel], .jx-form select { display: block; width: 100%; height: 38px; margin: 0 0 10px; padding: 0 10px; border: 1px solid #eee; border-radius: 4px; background: #fff; font-size: 14px; color: #333; box-sizing: border-box; outline: none; }
.jx-form input:focus, .jx-form select:focus { border-color: #EC2139; }
.jx-form .jx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.jx-submit { display: block; width: 100%; height: 40px; border: 0; border-radius: 20px; background: #EC2139; color: #fff; font-size: 15px; cursor: pointer; }
.jx-submit:hover { background: #d01a30; }
.jx-submit:disabled { opacity: .6; cursor: default; }
.jx-form-msg { margin: 8px 0 0; min-height: 18px; font-size: 13px; line-height: 18px; }
.jx-form-msg.is-ok { color: #1a9b4b; }
.jx-form-msg.is-err { color: #EC2139; }
.jx-form-tip { margin: 4px 0 0; font-size: 12px; color: #999; }

.jx-side-title { margin: 0 0 12px; font-size: 16px; color: #222; font-weight: bold; }
.jx-side-title img { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.jx-tags { display: flex; flex-wrap: wrap; }
.jx-tags a { margin: 0 8px 8px 0; padding: 0 10px; line-height: 26px; border-radius: 13px; background: #f7f7f7; color: #666; font-size: 13px; }
.jx-tags a:hover { background: #FFF4F4; color: #EC2139; }
.jx-side-list { margin: 0; padding: 0; list-style: none; }
.jx-side-list li { padding: 7px 0; border-bottom: 1px dashed #f0f0f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jx-side-list li:last-child { border-bottom: 0; }
.jx-side-list a:hover { color: #EC2139; }
.jx-side-more { display: block; margin-top: 10px; color: #EC2139 !important; font-size: 13px; }

/* 详情 */
.jx-head { display: flex; background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.jx-head-img { flex: none; width: 240px; height: 160px; border-radius: 8px; object-fit: cover; }
.jx-head-body { flex: 1; min-width: 0; padding-left: 20px; }
.jx-head-body .jx-h1 { margin-bottom: 10px; font-size: 22px; }
.jx-summary { margin: 0 0 10px; color: #666; font-size: 14px; line-height: 1.8; }
.jx-head-act .jx-btn { margin-right: 10px; }
.jx-head .jx-addr { white-space: normal; }

.jx-feats { display: flex; background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 16px 0; margin-bottom: 16px; }
.jx-feat { flex: 1; text-align: center; font-size: 13px; color: #666; }
.jx-feat img { display: block; width: 40px; height: 40px; margin: 0 auto 6px; }

.jx-anchors { display: flex; background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 0 20px; margin-bottom: 16px; }
.jx-anchors a { margin-right: 32px; line-height: 44px; height: 44px; font-size: 15px; color: #333; box-sizing: border-box; }
.jx-anchors a:hover { color: #EC2139; border-bottom: 2px solid #EC2139; }

.jx-sec { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.jx-sec h2 { margin: 0 0 14px; padding-left: 10px; border-left: 4px solid #EC2139; font-size: 18px; line-height: 20px; color: #222; font-weight: bold; }
.jx-sec h2 img { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.jx-intro { color: #666; font-size: 14px; line-height: 1.8; }
.jx-map { display: block; width: 100%; height: 320px; border: 0; border-radius: 6px; }

@media (max-width: 980px) {
    .jx-wrap { width: auto; padding: 12px; }
    .jx-cols { display: block; }
    .jx-main, .jx-side { width: auto; }
    .jx-card { flex-wrap: wrap; }
    .jx-card-img, .jx-card-img img { width: 120px; height: 80px; }
    .jx-card-body { padding: 0 0 0 12px; width: calc(100% - 120px); flex: none; }
    .jx-card-act { flex-direction: row; width: 100%; margin-top: 10px; }
    .jx-card-act .jx-btn { margin: 0 10px 0 0; }
    .jx-head { display: block; }
    .jx-head-img { width: 100%; height: auto; max-height: 240px; }
    .jx-head-body { padding: 12px 0 0; }
    .jx-feats { flex-wrap: wrap; }
    .jx-feat { flex: none; width: 33.33%; margin-bottom: 8px; }
}
