/* 客户分享页 */
.share-body {
  background:
    radial-gradient(1000px 500px at 50% -10%, #E8EEF7 0%, rgba(232, 238, 247, 0) 70%),
    #F3F5F9;
  min-height: 100vh;
}
.share-top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.share-brand { display: flex; align-items: center; gap: 8px; }
.share-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.share-brand div { display: flex; flex-direction: column; line-height: 1.15; }
.share-brand b { font-size: 14px; letter-spacing: 1.5px; }
.share-brand i { font-style: normal; font-size: 7.5px; letter-spacing: 2px; color: var(--muted-2); margin-top: 2px; }

.share-main { max-width: 880px; margin: 0 auto; padding: 14px 14px 40px; }
.share-hero {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: radial-gradient(120% 160% at 100% 0%, #1B4A75, #0B2545 60%, #081C36);
  color: #fff; border-radius: 16px; padding: 20px;
  box-shadow: 0 16px 36px -22px rgba(11, 37, 69, .8);
}
.share-hero h1 { margin: 3px 0 5px; font-size: 21px; letter-spacing: .5px; font-weight: 700; }
.share-hero p { margin: 0; font-size: 11px; color: rgba(255, 255, 255, .55); }
.share-hero p b { color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .3px; }
.share-hero-actions { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.share-edit-tip {
  display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 9px 12px;
  background: #FFF7EB; border: 1px solid #FDE3BD; color: #92400E; border-radius: 10px; font-size: 11.5px;
  flex-wrap: wrap;
}
.share-edit-tip.readonly { background: #EEF3FA; border-color: #DDE7F3; color: #475569; }
.share-edit-tip button {
  margin-left: auto; border: 1px solid #F5D3A3; background: #fff; color: #92400E; border-radius: 7px;
  padding: 3px 8px; font-size: 11px;
}
.share-edit-tip button b { font-weight: 600; }
.share-conflict {
  display: flex; align-items: center; gap: 8px; background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
  border-radius: 10px; padding: 9px 12px; font-size: 11.5px; margin-top: 10px;
}
.share-conflict button { margin-left: auto; background: #B91C1C; color: #fff; border: 0; border-radius: 7px; padding: 4px 9px; font-size: 11px; }

/* 客户同意报价卡片 */
.share-confirm {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 12px; padding: 15px 18px; border-radius: 14px;
  background: #fff; border: 1px solid #FDE3BD; box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.sqc-text { display: flex; flex-direction: column; gap: 2px; }
.sqc-text b { font-size: 14px; color: var(--text); }
.sqc-text span { font-size: 11.5px; color: var(--muted); }
.share-confirm.done { border-color: #A7F3D0; background: #F0FDF6; }
.share-confirm.done .sqc-text b { color: #059669; }
.share-agreed {
  display: flex; align-items: center; gap: 6px; margin-top: 12px; padding: 10px 14px;
  border-radius: 12px; background: #F0FDF6; border: 1px solid #A7F3D0;
  color: #059669; font-size: 12.5px; font-weight: 600;
}
.share-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.share-sheet { padding: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.share-row { display: contents; }
.share-field {
  width: calc(var(--w) - 8px); min-width: 140px; background: #FBFCFE; border: 1px solid #EDF1F6;
  border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px;
}
.sf-label { color: var(--red); font-size: 10.5px; font-weight: 600; letter-spacing: .2px; }
.sf-value { position: relative; }
.sf-input {
  width: 100%; border: 0; border-bottom: 1px dashed #D6DEE9; background: transparent; outline: 0;
  font-size: 13.5px; color: #111; padding: 3px 0 4px; font-family: inherit;
}
.sf-input:focus { border-bottom-color: var(--orange); }
.sf-input.area { resize: none; overflow: hidden; line-height: 1.5; }
.sf-text { font-size: 13.5px; color: #111; padding: 3px 0 2px; word-break: break-word; white-space: pre-wrap; line-height: 1.45; }
.sf-text.empty { color: #C2CBD8; }
.sf-note { display: block; color: var(--red); font-size: 9.5px; margin-top: 2px; line-height: 1.3; }
.share-footer { padding: 0 16px 16px; }
.share-footer p { margin: 0 0 4px; font-size: 10px; color: var(--red); line-height: 1.6; }

.share-block { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; padding: 14px 16px; }
.share-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.share-block-head h3 { margin: 0; font-size: 13px; }
.share-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.sg-item { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #F1F4F8; }
.sg-item img { width: 100%; height: 100%; object-fit: cover; }
.sg-file { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); }
.sg-file i { font-style: normal; font-size: 8px; text-align: center; padding: 0 4px; word-break: break-all; }
.sg-kind { position: absolute; left: 4px; bottom: 4px; background: rgba(11, 37, 69, .7); color: #fff; font-size: 8.5px; border-radius: 4px; padding: 1px 4px; }
.sg-empty { font-size: 11px; color: var(--muted-2); padding: 12px 0 4px; text-align: center; }

.share-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sc-item { display: flex; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.sc-item svg { color: #94A3B8; margin-top: 1px; flex: none; }
.sc-item span { display: block; font-size: 9.5px; color: var(--muted-2); }
.sc-item b { display: block; font-size: 12px; font-weight: 600; margin-top: 2px; line-height: 1.45; word-break: break-word; }

.share-savebar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; margin-top: 12px; border-radius: 12px; background: #ECFDF5; border: 1px solid #BBF7D0;
  color: #047857; font-size: 11.5px;
}
.share-savebar.saving { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.share-savebar.error { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
.share-savebar.saving .dot { background: #F59E0B; }
.share-savebar.error .dot { background: #EF4444; }
.share-savebar .save-state { color: inherit; }
.share-savebar .save-state b { color: inherit; }
.share-saved-at { font-size: 10px; opacity: .8; }
.share-foot { text-align: center; padding: 22px 10px 10px; color: var(--muted-2); font-size: 10px; line-height: 1.7; }
.share-foot p { margin: 0; }
.share-foot b { color: var(--muted); }

@media (max-width: 700px) {
  .share-main { padding: 10px 10px 30px; }
  .share-hero { padding: 16px; border-radius: 14px; }
  .share-hero h1 { font-size: 18px; }
  .share-hero p { font-size: 10px; }
  .share-hero .eyebrow { font-size: 8.5px; letter-spacing: 2px; }
  .share-hero { flex-wrap: wrap; }
  .share-hero-actions { width: 100%; margin-top: 10px; justify-content: stretch; }
  .share-hero-actions .btn { font-size: 11px; height: 32px; flex: 1; justify-content: center; }
  .share-edit-tip { font-size: 10.5px; }
  .share-field { width: 100%; min-width: 0; }
  .share-sheet { padding: 12px; gap: 6px; }
  .share-field { padding: 8px 10px; }
  .share-gallery { grid-template-columns: repeat(3, 1fr); }
  .share-contact { grid-template-columns: 1fr; }
  .share-savebar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; margin-top: 0; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .25); }
  .share-foot { padding-bottom: 60px; }
  .share-block { padding: 12px; }
  .share-body { padding-bottom: 70px; }
}

/* 客户页：资料已提交、报价处理中 */
.share-confirm.waiting { background: #EFF6FF; border-color: #BFDBFE; }
.share-confirm.waiting .sqc-text b { color: #1D4ED8; }

/* 卡车经纪人询价页 */
.broker-info-tip { line-height: 1.6; }
.broker-quote {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  margin-top: 12px; padding: 18px; box-shadow: var(--shadow-sm);
}
.bq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bq-head > div { display: flex; flex-direction: column; gap: 3px; }
.bq-head b { font-size: 15px; color: var(--text); }
.bq-head span { font-size: 11.5px; color: var(--muted); }
.bq-tag { flex: none; font-size: 10px; font-weight: 600; color: #92400E; background: #FFF4E3; border: 1px solid #FDE3BD; border-radius: 6px; padding: 3px 7px; }
.bq-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.bq-field { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--muted); }
.bq-money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: #FBFCFE; }
.bq-money i { font-style: normal; color: var(--orange-2); font-weight: 700; margin-right: 6px; }
.bq-money input { border: 0; outline: 0; background: transparent; width: 100%; padding: 10px 0; font-size: 16px; font-weight: 600; font-family: var(--mono); }
.bq-field .input { padding: 10px; font-size: 13px; }
.bq-note { margin: 10px 0 0; font-size: 11px; color: var(--muted-2); text-align: center; }
@media (max-width: 520px) { .bq-form { grid-template-columns: 1fr; } }
