/* 招商入驻通 · 网页版 共用样式 */
:root {
  --brand: #FF6B35;
  --brand-dark: #E5552A;
  --brand-bg: #FFF3ED;
  --blue: #2F80ED;
  --ink: #22262E;
  --ink-2: #5B6472;
  --ink-3: #9AA3B0;
  --line: #EDF0F4;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --ok: #18A058;
  --warn: #F0A020;
  --bad: #D93026;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(20, 30, 50, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ===== 顶栏 ===== */
.hd { background: linear-gradient(180deg, #FFF 0%, #FFF 70%, var(--bg) 100%); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 50; }
.hd-in { max-width: 1080px; margin: 0 auto; padding: 12px 16px 8px; display: flex; align-items: center; gap: 10px; }
.logo { font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: .5px; white-space: nowrap; }
.hd-sub { flex: 1; min-width: 0; color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-pub { background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.btn-pub:active { background: var(--brand-dark); }

.search { max-width: 1080px; margin: 0 auto; padding: 4px 16px 8px; display: flex; gap: 8px; }
.search input { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; outline: none; }
.search input:focus { border-color: var(--brand); }
.search button { border: 0; background: var(--brand); color: #fff; border-radius: 10px; padding: 0 18px; font-weight: 600; }

.tabs { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tab { padding: 9px 2px; font-size: 15px; color: var(--ink-2); border-bottom: 2.5px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tab.on { color: var(--brand); font-weight: 700; border-color: var(--brand); }

.filters { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--brand-bg); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.filters select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 13px; color: var(--ink-2); outline: none; max-width: 42%; }

/* ===== 主体 ===== */
.wrap { max-width: 1080px; margin: 0 auto; padding: 14px 16px 90px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 12px; position: relative; overflow: hidden; display: block; }
.card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--brand); }
.card.zu::before { background: var(--blue); }
.card .t { font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.card .t .time { font-weight: 400; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.card .m { margin-top: 7px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.badge { border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.b-zhao { background: var(--brand-bg); color: var(--brand); }
.b-zu { background: #EAF3FF; color: var(--blue); }
.b-brand { background: #F3EAFE; color: #7B3FE4; }
.b-status-pending { background: #FFF6E5; color: var(--warn); }
.b-status-approved { background: #E8F7EF; color: var(--ok); }
.b-status-rejected { background: #FDECEA; color: var(--bad); }
.card .tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--bg); color: var(--ink-2); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.card .p { margin-top: 10px; color: var(--brand); font-weight: 800; font-size: 18px; }
.card .p small { font-weight: 500; font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.card .thumbs { margin-top: 10px; display: flex; gap: 6px; }
.card .thumbs img { width: 74px; height: 56px; object-fit: cover; border-radius: 8px; }

/* 空态 / 加载 */
.empty { text-align: center; color: var(--ink-3); padding: 60px 0 30px; font-size: 14px; }
.empty .big { font-size: 40px; margin-bottom: 8px; }
.more { text-align: center; margin: 16px auto 0; }
.more button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 9px 28px; cursor: pointer; }
.more button:disabled { color: var(--ink-3); }

/* ===== 详情页 ===== */
.crumbs { max-width: 1080px; margin: 0 auto; padding: 12px 16px 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--brand); }
.detail { max-width: 1080px; margin: 0 auto; padding: 12px 16px 100px; }
.gallery { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gallery .scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery .scroll img { width: 100%; max-width: 560px; height: 280px; object-fit: cover; scroll-snap-align: center; flex: 0 0 auto; }
.gallery .noimg { height: 180px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); background: var(--bg); font-size: 14px; }
.d-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; margin-top: 12px; }
.d-title { font-size: 20px; font-weight: 800; line-height: 1.4; }
.d-price { margin-top: 10px; color: var(--brand); font-size: 26px; font-weight: 800; }
.d-price small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.d-meta { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 13.5px; }
.d-meta .k { color: var(--ink-3); margin-right: 6px; }
.d-desc { margin-top: 16px; white-space: pre-wrap; word-break: break-word; font-size: 15px; color: #333; }
.d-tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.contact { display: flex; align-items: center; gap: 14px; }
.contact .who { flex: 1; min-width: 0; }
.contact .who .n { font-weight: 700; }
.contact .who .p { color: var(--brand); font-size: 19px; font-weight: 800; margin-top: 2px; }
.btn { border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; cursor: pointer; text-align: center; display: inline-block; }
.btn-call { background: var(--brand); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn:active { opacity: .85; }
.d-tip { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; z-index: 60; }
.bar .btn { flex: 1; }
@media (min-width: 720px) { .bar { max-width: 1048px; left: 50%; transform: translateX(-50%); border-radius: 14px 14px 0 0; } }

/* ===== 表单 ===== */
.f-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 16px; margin-top: 12px; }
.f-row { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 10px; }
.f-row:last-child { border-bottom: 0; }
.f-row label { width: 84px; flex: 0 0 84px; color: var(--ink-2); font-size: 14px; padding-top: 9px; }
.f-row label em { color: var(--bad); font-style: normal; margin-right: 2px; }
.f-ctrl { flex: 1; min-width: 0; }
.f-ctrl input[type=text], .f-ctrl input[type=tel], .f-ctrl input[type=number], .f-ctrl select, .f-ctrl textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; background: #fff;
}
.f-ctrl input:focus, .f-ctrl select:focus, .f-ctrl textarea:focus { border-color: var(--brand); }
.f-ctrl textarea { min-height: 110px; resize: vertical; }
.f-ctrl .hint { color: var(--ink-3); font-size: 12px; margin-top: 5px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .chip { padding: 7px 18px; }
.imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.imgs .it { position: relative; width: 86px; height: 86px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.imgs .it img { width: 100%; height: 100%; object-fit: cover; }
.imgs .it .x { position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: rgba(0,0,0,.55); color: #fff; border: 0; border-radius: 0 0 0 8px; font-size: 13px; line-height: 22px; text-align: center; cursor: pointer; }
.imgs .add { width: 86px; height: 86px; border: 1px dashed #C8CFD8; border-radius: 10px; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; background: #FAFBFC; }
.imgs .add b { font-size: 24px; font-weight: 400; }
.submit { display: block; width: 100%; margin-top: 16px; background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 13px; font-size: 16px; font-weight: 700; cursor: pointer; }
.submit:disabled { opacity: .6; }
.quota { background: var(--brand-bg); color: var(--brand-dark); border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-top: 12px; }

/* 结果弹层 */
.toast { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); background: rgba(20,24,32,.88); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 99; max-width: 86vw; text-align: center; }

/* 我的发布 */
.me-top { background: linear-gradient(135deg, var(--brand) 0%, #FF8C5A 100%); border-radius: var(--radius); color: #fff; padding: 20px 18px; box-shadow: var(--shadow); }
.me-top .uid { font-size: 12.5px; opacity: .9; word-break: break-all; }
.me-top .nums { margin-top: 12px; display: flex; gap: 26px; }
.me-top .nums b { font-size: 22px; display: block; }
.me-top .nums span { font-size: 12.5px; opacity: .85; }

/* 页脚 */
.ft { max-width: 1080px; margin: 0 auto; padding: 26px 16px 110px; color: var(--ink-3); font-size: 12.5px; text-align: center; line-height: 1.9; }
.ft a { color: var(--ink-2); }
.fab { position: fixed; right: 18px; bottom: 92px; background: var(--brand); color: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 700; box-shadow: 0 6px 18px rgba(255,107,53,.4); z-index: 55; }
@media (min-width: 720px) { .fab { display: none; } }
