/* ==================================================================
   人脉撮合 · 前台样式（V3.6.0）
   ------------------------------------------------------------------
   前缀 pn-（people network），避免与 biz / venue / member 冲突。
   主色 #FF6A2B（人脉橙），圆角统一 --r=8px 与全站一致。
   ================================================================== */

.pn-page { background: #F5F6FA; min-height: 100vh; padding-bottom: 84px; --gn: #FF6A2B; }

/* ---------------- 顶部 ---------------- */
.pn-head { background: #fff; padding: 10px 12px 12px; }
.pn-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pn-title h1 { font-size: 19px; font-weight: 700; color: #1B2033; margin: 0; letter-spacing: .2px; }
.pn-title .pn-city { font-size: 12px; color: #8A90A6; display: flex; align-items: center; gap: 3px; }
.pn-search { display: flex; align-items: center; gap: 8px; background: #F3F4F8; border-radius: 999px; padding: 9px 14px; }
.pn-search input { flex: 1; border: 0; background: transparent; font-size: 13px; color: #1B2033; outline: none; }
.pn-search input::placeholder { color: #A9AEBE; }

/* ---------------- 我要找人（主入口） ---------------- */
.pn-hero {
  margin: 12px; border-radius: 12px; padding: 16px 16px 14px;
  background: linear-gradient(135deg, #FF7A3D 0%, #FF5A1F 100%);
  color: #fff; position: relative; overflow: hidden;
}
.pn-hero::after {
  content: ''; position: absolute; right: -34px; top: -34px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.13);
}
.pn-hero-t { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.pn-hero-s { font-size: 12px; opacity: .92; margin-bottom: 12px; line-height: 1.5; }
.pn-hero-btns { display: flex; gap: 10px; }
.pn-hero-btn {
  flex: 1; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pn-hero-btn.main { background: #fff; color: #FF5A1F; }
.pn-hero-btn.ghost { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5); }

/* ---------------- 统计 ---------------- */
.pn-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 12px 12px; background: #fff; border-radius: 10px; padding: 12px 4px; }
.pn-stat { text-align: center; }
.pn-stat b { display: block; font-size: 16px; font-weight: 700; color: #1B2033; line-height: 1.2; }
.pn-stat span { font-size: 11px; color: #8A90A6; }

/* ---------------- 区块 ---------------- */
.pn-sec { margin: 0 12px 12px; }
.pn-sec-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 8px; }
.pn-sec-h h2 { font-size: 15px; font-weight: 700; color: #1B2033; margin: 0; display: flex; align-items: center; gap: 6px; }
.pn-sec-h a { font-size: 12px; color: #8A90A6; text-decoration: none; display: flex; align-items: center; gap: 2px; }

/* ---------------- 需求卡 ---------------- */
.pn-need {
  background: #fff; border-radius: 10px; padding: 13px 13px 11px; margin-bottom: 10px;
  display: block; text-decoration: none; color: inherit; position: relative;
}
.pn-need:active { background: #FAFAFC; }
.pn-need-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pn-type { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.pn-need-dist { font-size: 12px; color: #8A90A6; display: inline-flex; align-items: center; gap: 2px; }
.pn-need-t { font-size: 15px; font-weight: 700; color: #1B2033; line-height: 1.4; margin-bottom: 6px; }
.pn-need-d { font-size: 12px; color: #6B7080; line-height: 1.55; margin-bottom: 9px; }
.pn-need-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pn-need-budget { font-size: 12px; color: #FF5A1F; font-weight: 700; }
.pn-need-budget em { font-style: normal; font-size: 11px; color: #A9AEBE; font-weight: 400; }
.pn-bounty {
  height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: #FFF1E8; color: #E5520C; display: inline-flex; align-items: center; gap: 3px;
}
.pn-bounty-done { background: #EAF6EF; color: #14895A; }
.pn-need-meta { font-size: 11px; color: #A9AEBE; display: flex; align-items: center; gap: 10px; }
.pn-need-status { font-size: 11px; padding: 2px 7px; border-radius: 4px; background: #F3F4F8; color: #6B7080; }
.pn-need-status.s1 { background: #FFF1E8; color: #E5520C; }
.pn-need-status.s3 { background: #EAF6EF; color: #14895A; }
.pn-need-status.s2 { background: #F3F4F8; color: #8A90A6; }

/* ---------------- 名片卡 ---------------- */
.pn-card { background: #fff; border-radius: 10px; padding: 13px; margin-bottom: 10px; display: block; text-decoration: none; color: inherit; }
.pn-card-top { display: flex; align-items: flex-start; gap: 11px; }
.pn-av { width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px; object-fit: cover; background: #EEF0F5; }
.pn-id { flex: 1; min-width: 0; }
.pn-name { font-size: 15px; font-weight: 700; color: #1B2033; display: flex; align-items: center; gap: 6px; }
.pn-verify { font-size: 10px; font-weight: 600; color: #22B573; background: #E9F9F1; border-radius: 4px; padding: 1px 5px; margin-left: 4px; white-space: nowrap; }
.pn-company { font-size: 12px; color: #6B7080; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pn-tag { font-size: 11px; color: #6B7080; background: #F3F4F8; border-radius: 4px; padding: 3px 7px; }
.pn-loc { font-size: 11px; color: #8A90A6; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.pn-card-f { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid #F1F2F6; }
.pn-card-nums { display: flex; gap: 12px; font-size: 11px; color: #A9AEBE; }
.pn-card-nums b { color: #1B2033; font-weight: 700; }
.pn-lockmini { font-size: 11px; color: #FF5A1F; background: #FFF1E8; border-radius: 4px; padding: 3px 7px; display: inline-flex; align-items: center; gap: 3px; }
.pn-openmini { font-size: 11px; color: #14895A; background: #EAF6EF; border-radius: 4px; padding: 3px 7px; }

/* ---------------- 筛选条 ---------------- */
.pn-filter { display: flex; gap: 8px; padding: 10px 12px; background: #fff; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pn-filter::-webkit-scrollbar { display: none; }
.pn-fbtn {
  flex: 0 0 auto; height: 30px; padding: 0 12px; border-radius: 999px; border: 0;
  background: #F3F4F8; color: #4A5064; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.pn-fbtn.on { background: #FFF1E8; color: #E5520C; font-weight: 700; }
.pn-fbtn .pn-caret { font-size: 9px; opacity: .7; }

/* ---------------- 分类宫格（需求类型） ---------------- */
.pn-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 6px; background: #fff; border-radius: 10px; padding: 14px 8px; margin-bottom: 12px; }
.pn-typei { text-align: center; text-decoration: none; color: inherit; cursor: pointer; }
.pn-typei .pn-ti-ic { width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 5px; display: flex; align-items: center; justify-content: center; }
.pn-typei span { font-size: 11px; color: #4A5064; }

/* ---------------- 联系方式区 ---------------- */
.pn-contact { background: #fff; border-radius: 10px; padding: 14px; margin: 0 12px 12px; }
.pn-contact.locked { background: #FFFBF8; border: 1px dashed #FFD3BC; }
.pn-contact-h { font-size: 13px; font-weight: 700; color: #1B2033; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pn-contact-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #F5F6FA; }
.pn-contact-row:last-child { border-bottom: 0; }
.pn-contact-k { font-size: 13px; color: #6B7080; }
.pn-contact-v { font-size: 14px; font-weight: 700; color: #1B2033; letter-spacing: .3px; }
.pn-contact-tip { font-size: 11px; color: #A9AEBE; line-height: 1.6; margin-top: 8px; }
.pn-contact-acts { display: flex; gap: 10px; margin-top: 12px; }
.pn-btn {
  flex: 1; height: 42px; border-radius: 999px; border: 0; font-size: 14px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.pn-btn.main { background: #FF5A1F; color: #fff; }
.pn-btn.ghost { background: #FFF1E8; color: #E5520C; }
.pn-btn.plain { background: #F3F4F8; color: #4A5064; font-weight: 400; }
.pn-btn:disabled { opacity: .5; }
.pn-price { font-size: 15px; font-weight: 700; color: #FF5A1F; }

/* ---------------- 底部固定栏 ---------------- */
.pn-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); display: flex; gap: 10px;
  box-shadow: 0 -2px 12px rgba(20, 24, 40, .06);
}
.pn-bar .pn-btn { height: 44px; }

/* ---------------- 详情通用 ---------------- */
.pn-hero2 { background: #fff; padding: 16px 14px 14px; }
.pn-hero2-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pn-hero2 h1 { font-size: 19px; font-weight: 700; color: #1B2033; line-height: 1.35; margin: 0 0 8px; }
.pn-kv { background: #fff; border-radius: 10px; padding: 4px 14px; margin: 0 12px 12px; }
.pn-kv-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid #F5F6FA; }
.pn-kv-row:last-child { border-bottom: 0; }
.pn-kv-row span { font-size: 13px; color: #8A90A6; flex: 0 0 auto; }
.pn-kv-row b { font-size: 13px; color: #1B2033; font-weight: 500; text-align: right; line-height: 1.5; word-break: break-all; }
.pn-body { background: #fff; border-radius: 10px; padding: 14px; margin: 0 12px 12px; }
.pn-body p { font-size: 13px; color: #4A5064; line-height: 1.75; margin: 0 0 10px; white-space: pre-wrap; }
.pn-body p:last-child { margin-bottom: 0; }

/* ---------------- 表单 ---------------- */
.pn-field { margin-bottom: 14px; }
/* 「详细说明」标题行：左边标签 + 右边 AI 起草按钮（按钮样式复用 biz.css 的 .pt-ai） */
.pn-lb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pn-lb-row > label, .pn-lb-row > .pn-lb { margin-bottom: 0; }
.pn-lb-row .pt-ai { margin-top: 0; }
.pn-hint .pn-ai-tip { color: #5a4bf0; }
.pn-field > label { display: block; font-size: 13px; color: #4A5064; margin-bottom: 6px; font-weight: 500; }
.pn-field > label em { color: #F2595B; font-style: normal; }
.pn-in, .pn-sel, .pn-ta {
  width: 100%; box-sizing: border-box; border: 1px solid #E6E8EF; border-radius: 8px;
  padding: 11px 12px; font-size: 14px; color: #1B2033; background: #fff; outline: none;
  font-family: inherit; -webkit-appearance: none;
}
.pn-ta { min-height: 96px; resize: vertical; line-height: 1.6; }
.pn-in:focus, .pn-sel:focus, .pn-ta:focus { border-color: #FF9A6A; }
.pn-row2 { display: flex; gap: 10px; }
.pn-row2 > * { flex: 1; min-width: 0; }
.pn-hint { font-size: 11px; color: #A9AEBE; margin-top: 6px; line-height: 1.5; }
.pn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-chip {
  padding: 8px 13px; border-radius: 999px; border: 1px solid #E6E8EF; background: #fff;
  font-size: 13px; color: #4A5064; cursor: pointer;
}
.pn-chip.on { background: #FFF1E8; border-color: #FF9A6A; color: #E5520C; font-weight: 700; }
.pn-bounty-in { display: flex; align-items: center; gap: 8px; }
.pn-bounty-in .pn-in { text-align: left; }

/* ---------------- 三栏 / 空态 ---------------- */
.pn-tabs { display: flex; background: #fff; padding: 0 12px; gap: 20px; position: sticky; top: 0; z-index: 10; }
.pn-tab { padding: 12px 0; font-size: 14px; color: #6B7080; border-bottom: 2px solid transparent; cursor: pointer; position: relative; }
.pn-tab.on { color: #FF5A1F; font-weight: 700; border-bottom-color: #FF5A1F; }
.pn-tab i { font-style: normal; font-size: 10px; background: #F2595B; color: #fff; border-radius: 999px; padding: 1px 5px; margin-left: 3px; vertical-align: 1px; }
.pn-empty { text-align: center; padding: 48px 24px; }
.pn-empty p { font-size: 13px; color: #A9AEBE; margin: 10px 0 16px; line-height: 1.6; }
/* 空状态按钮：在 flex 容器里不能被 flex:1 压扁，必须自己的宽高 */
.pn-empty .pn-btn {
  display: inline-flex; flex: none; width: auto; min-width: 172px; max-width: 220px;
  padding: 0 20px; margin: 0 auto; height: 42px; white-space: nowrap;
}
.pn-loading { text-align: center; padding: 40px; font-size: 13px; color: #A9AEBE; }

/* ---------------- 引荐卡 ---------------- */
.pn-ref { background: #fff; border-radius: 10px; padding: 13px; margin-bottom: 10px; }
.pn-ref-h { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.pn-ref-h .pn-av { width: 40px; height: 40px; flex: 0 0 40px; }
.pn-ref-name { font-size: 14px; font-weight: 700; color: #1B2033; }
.pn-ref-sub { font-size: 11px; color: #8A90A6; margin-top: 2px; }
.pn-ref-st { margin-left: auto; font-size: 11px; padding: 3px 8px; border-radius: 4px; background: #F3F4F8; color: #6B7080; }
.pn-ref-st.s0 { background: #FFF7E6; color: #B2760B; }
.pn-ref-st.s1 { background: #EEF3FF; color: #3D6BFF; }
.pn-ref-st.s3 { background: #EAF6EF; color: #14895A; }
.pn-ref-st.s2, .pn-ref-st.s4 { background: #F3F4F8; color: #8A90A6; }
.pn-ref-msg { font-size: 12px; color: #6B7080; background: #F7F8FB; border-radius: 8px; padding: 9px 11px; line-height: 1.6; margin-bottom: 9px; }
.pn-ref-need { font-size: 12px; color: #6B7080; margin-bottom: 9px; }
.pn-ref-need b { color: #1B2033; }
.pn-ref-acts { display: flex; gap: 8px; }
.pn-ref-acts .pn-btn { height: 36px; font-size: 13px; }
.pn-ref-phone { font-size: 13px; color: #14895A; background: #EAF6EF; border-radius: 6px; padding: 7px 10px; margin-bottom: 9px; font-weight: 700; }

/* ---------------- 弹层 ---------------- */
.pn-mask { position: fixed; inset: 0; background: rgba(16, 20, 32, .45); z-index: 100; display: flex; align-items: flex-end; }
.pn-sheet { width: 100%; background: #fff; border-radius: 16px 16px 0 0; max-height: 82vh; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.pn-sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pn-sheet-h b { font-size: 16px; color: #1B2033; }
.pn-sheet-x { font-size: 18px; color: #A9AEBE; cursor: pointer; padding: 0 4px; }
.pn-opts { max-height: 50vh; overflow-y: auto; }
.pn-opt { padding: 13px 4px; font-size: 14px; color: #1B2033; border-bottom: 1px solid #F5F6FA; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.pn-opt.on { color: #FF5A1F; font-weight: 700; }
.pn-opt:last-child { border-bottom: 0; }

/* ---------------- 我的名片 ---------------- */
.pn-mycard { margin: 12px; background: #fff; border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.pn-mycard .pn-av { width: 46px; height: 46px; flex: 0 0 46px; }
.pn-mycard b { font-size: 14px; color: #1B2033; display: block; }
.pn-mycard small { font-size: 11px; color: #8A90A6; }
.pn-mycard .pn-arrow { margin-left: auto; color: #C6CAD8; }

/* ---------------- 悬赏说明条 ---------------- */
.pn-tipbar { margin: 0 12px 12px; background: #FFF7E6; border-radius: 8px; padding: 10px 12px; font-size: 11px; color: #8A6110; line-height: 1.6; display: flex; gap: 7px; }
.pn-tipbar.green { background: #EAF6EF; color: #14895A; }

/* 引荐悬赏低于下限（V3.23.2）：输入框描红 + 提示文字换色
   红而不是橙，是因为这里代表「填错了，提交不了」，和必填项未填的提示同色系 */
.pn-in.bad { border-color: #F2595B; background: #FFF7F7; }
.pn-bounty-warn { color: #E04B4E; }
