/* 民珍同城 —— 58同城高仿风格 · 诚信版 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 14px/1.6 "Microsoft YaHei", system-ui, sans-serif; color: #333; background: #f5f5f5; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 12px; }
.main { min-height: 60vh; padding: 14px 12px 30px; }

/* 城市条 */
.citybar { background: #fff; border-bottom: 1px solid #eee; font-size: 13px; }
.citybar .wrap { display: flex; gap: 12px; padding: 6px 12px; align-items: center; flex-wrap: wrap; }
.city-cur { color: #ff552e; font-weight: bold; }
.city-list { display: flex; gap: 4px 10px; flex-wrap: wrap; }
.city-list a { color: #666; padding: 0 3px; }
.city-list a.on, .city-list a:hover { color: #ff552e; }

/* header */
.hd { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.hd-in { display: flex; align-items: center; gap: 18px; padding: 14px 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-badge { background: #ff552e; color: #fff; font-size: 22px; font-weight: bold; padding: 4px 10px; border-radius: 6px; letter-spacing: 2px; }
.logo-txt { font-size: 24px; font-weight: bold; color: #222; }
.logo-txt b { display: block; font-size: 11px; color: #ff552e; font-weight: normal; letter-spacing: 1px; }
.search { display: flex; flex: 1; min-width: 260px; max-width: 560px; border: 2px solid #ff552e; border-radius: 4px; overflow: hidden; }
.search input[name=q] { flex: 1; border: none; outline: none; padding: 9px 12px; font-size: 14px; }
.search button { background: #ff552e; color: #fff; border: none; padding: 0 26px; font-size: 15px; cursor: pointer; }
.hd-ops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.诚信-strip { background: #fff7ee; color: #b26a00; border: 1px solid #ffd9a0; padding: 6px 12px; border-radius: 4px; font-size: 13px; }
.btn-post { background: #ff552e; color: #fff; padding: 9px 20px; border-radius: 4px; font-size: 15px; font-weight: bold; display: inline-block; }
.btn-login { color: #ff552e; padding: 9px 12px; font-size: 15px; font-weight: bold; display: inline-block; }
.btn-master { border: 1px solid #ff552e; color: #ff552e; padding: 8px 16px; border-radius: 4px; display: inline-block; }
.btn-post.big { display: block; width: 100%; text-align: center; padding: 12px; font-size: 16px; margin-top: 8px; cursor: pointer; border: none; }

/* nav */
.nav { background: #ff552e; }
.nav .wrap { display: flex; gap: 2px; overflow-x: auto; }
.nav a { color: #fff; padding: 10px 18px; font-size: 15px; white-space: nowrap; }
.nav a.on, .nav a:hover { background: #e6431f; }

/* 诚信横幅 */
.trust-banner { background: linear-gradient(90deg, #fff8ef, #fff); border: 1px solid #ffe2b8; color: #9a5b00; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.trust-banner a { color: #ff552e; font-weight: bold; }

/* 类目宫格 */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; background: #fff; border-radius: 8px; padding: 18px 10px; margin-bottom: 16px; }
.cat-cell { text-align: center; padding: 10px 4px; border-radius: 8px; transition: .15s; }
.cat-cell:hover { background: #fff3ee; }
.cat-ico { font-size: 30px; }
.cat-name { font-weight: bold; margin: 6px 0 4px; font-size: 15px; }
.cat-subs { display: flex; flex-direction: column; gap: 2px; }
.cat-subs a { color: #888; font-size: 12px; }
.cat-subs a:hover { color: #ff552e; }

/* 区块 */
.sec { margin-bottom: 18px; }
.sec-t { font-size: 18px; border-left: 4px solid #ff552e; padding-left: 10px; margin-bottom: 10px; background: #fff; padding: 10px 10px 10px 14px; border-radius: 6px; }
.sec-t small { color: #999; font-size: 12px; margin-left: 8px; }

/* 信息列表 */
.li-list { background: #fff; border-radius: 8px; overflow: hidden; }
.li-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid #f2f2f2; }
.li-row:hover { background: #fffaf8; }
.li-title { font-size: 16px; color: #222; font-weight: 500; }
.li-row:hover .li-title { color: #ff552e; }
.li-meta { color: #999; font-size: 12px; margin-top: 3px; }
.li-badges { margin-top: 4px; }
.bg { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 3px; margin-right: 6px; }
.bg.self { background: #ff552e; color: #fff; }
.bg.dep { background: #e8f4ff; color: #1677ff; border: 1px solid #b8dcff; }
.bg.top { background: #fff1d6; color: #b26a00; }
.li-price { color: #ff552e; font-size: 18px; font-weight: bold; white-space: nowrap; margin-left: 12px; }
.empty { padding: 40px; text-align: center; color: #999; background: #fff; border-radius: 8px; }
.empty a { color: #ff552e; }

/* 列表页布局 */
.crumb { padding: 8px 2px; color: #888; font-size: 13px; }
.crumb a { color: #1677ff; }
.list-layout { display: flex; gap: 14px; }
.side { width: 210px; flex-shrink: 0; background: #fff; border-radius: 8px; padding: 14px; }
.side h3 { font-size: 15px; margin-bottom: 10px; }
.side a { display: block; padding: 6px 8px; border-radius: 4px; color: #555; font-size: 13px; }
.side a.on, .side a:hover { background: #fff3ee; color: #ff552e; }
.side-tip { margin-top: 14px; padding: 10px; background: #fff8ef; border-radius: 6px; font-size: 12px; color: #b26a00; }
.main-list { flex: 1; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 16px 0; }
.pager a { background: #fff; padding: 6px 12px; border-radius: 4px; border: 1px solid #ddd; }
.pager a.on { background: #ff552e; color: #fff; border-color: #ff552e; }

/* 详情 */
.detail { background: #fff; border-radius: 8px; padding: 22px; }
.d-title { font-size: 22px; }
.d-meta { color: #999; font-size: 13px; margin: 8px 0; }
.d-badges { margin: 8px 0; }
.d-price { color: #ff552e; font-size: 26px; font-weight: bold; margin: 10px 0; }
.d-content { font-size: 15px; line-height: 1.9; padding: 14px 0; border-top: 1px dashed #eee; border-bottom: 1px dashed #eee; margin: 8px 0; }
.d-contact { font-size: 16px; background: #fffaf8; padding: 12px 14px; border-radius: 6px; }
.d-contact b { color: #ff552e; font-size: 20px; }
.d-report { margin-top: 12px; font-size: 13px; color: #999; }
.d-report a { color: #1677ff; }
.d-safe { background: #fff; border-radius: 8px; padding: 16px 22px; margin-top: 14px; }
.d-safe h3 { margin-bottom: 8px; }
.d-safe p { color: #666; font-size: 13px; }

/* 发布/入驻/关于 */
.post-box, .master-hero, .pay-box { background: #fff; border-radius: 8px; padding: 24px; max-width: 660px; margin: 0 auto 14px; }
.post-box h2 { margin-bottom: 14px; }
.post-box label { display: block; margin: 12px 0 4px; font-weight: bold; color: #444; }
.post-box input, .post-box select, .post-box textarea { width: 100%; padding: 9px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; }
.post-box input:focus, .post-box textarea:focus { border-color: #ff552e; }
.form-tip { background: #f2f9ff; border: 1px solid #cfe8ff; padding: 10px 12px; border-radius: 6px; color: #1c6bb0; font-size: 13px; margin-bottom: 8px; }
.form-error { color: #e33; font-size: 13px; min-height: 18px; margin-top: 6px; }
.post-tip { max-width: 660px; margin: 0 auto; color: #b26a00; font-size: 13px; background: #fff8ef; padding: 10px 14px; border-radius: 6px; }

/* 入驻 */
.master-hero { text-align: center; background: linear-gradient(180deg, #fff, #fff8f5); }
.master-hero h1 { font-size: 26px; color: #ff552e; }
.mh-slogan { color: #999; margin: 6px 0 18px; }
.mh-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mh-p { background: #fff; border: 1px solid #ffe0d5; border-radius: 8px; padding: 14px 8px; }
.mh-p b { display: block; font-size: 15px; margin-bottom: 4px; }
.mh-p span { font-size: 12px; color: #888; }

/* 支付页 */
.pay-box { text-align: center; }
.pay-order { color: #999; font-size: 13px; margin-bottom: 16px; }
.pay-ch { display: inline-block; margin: 10px 20px; }
.pay-ch h3 { color: #07c160; margin-bottom: 8px; }
.pay-ch p { color: #999; font-size: 12px; }
.pay-status { margin-top: 14px; color: #666; }

/* 试运营横幅 */
.beta-banner { background: #eef6ff; border: 1px solid #bcdcff; color: #0b5cad; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.ft-beian { display: flex; gap: 16px; justify-content: center; margin-bottom: 8px; }
.ft-beian a { color: #999; font-size: 12px; }
.ft-beian a:hover { color: #fff; }

/* footer */
.ft { background: #2f2f2f; color: #aaa; margin-top: 30px; padding: 22px 0 26px; text-align: center; }
.ft-slogan { color: #ffd9a0; font-size: 15px; margin-bottom: 12px; }
.ft-links { display: flex; gap: 8px 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.ft-links a { color: #ccc; font-size: 13px; }
.ft-links a:hover { color: #fff; }
.ft-tip { font-size: 12px; color: #888; max-width: 760px; margin: 0 auto 10px; }
.ft-tip b { color: #ffb27a; }
.ft-copy { font-size: 12px; color: #666; }

/* 登录弹窗 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 99; }
.modal { background: #fff; border-radius: 10px; padding: 24px; width: 340px; max-width: 92vw; }
.modal h3 { margin-bottom: 12px; }
.modal input { width: 100%; padding: 9px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 10px; }
.modal .row { display: flex; gap: 8px; }
.modal button { flex: 1; padding: 10px; border: none; border-radius: 4px; cursor: pointer; }
.m-login { background: #ff552e; color: #fff; }
.m-reg { background: #fff; color: #ff552e; border: 1px solid #ff552e !important; }
.btn-wx { width: 100%; padding: 11px; background: #07c160; color: #fff; border: none; border-radius: 5px; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn-wx:hover { background: #06ad56; }
#wxlogin-section { text-align: center; }
#wxlogin-section img { width: 220px; height: 220px; border-radius: 6px; margin-top: 8px; border: 1px solid #e5e5e5; }

@media (max-width: 800px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .list-layout { flex-direction: column; }
  .side { width: 100%; }
  .mh-points { grid-template-columns: repeat(2, 1fr); }
  .search { order: 3; max-width: 100%; }
}
