/* =====================================================================
   车拉拉官网 · 平台化新页面增量样式
   货源大厅 /cargo/ · 入驻页 /join/ · 收费标准 pricing · 清分说明 settlement
   依赖 style.css 的设计令牌（--green / --gold 等），不重复定义
   ===================================================================== */

/* ---------- A. 内页通用页头 ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding-top: clamp(132px, 17vh, 176px); padding-bottom: clamp(56px, 7vw, 88px);
  background:
    radial-gradient(900px 520px at 86% -8%, rgba(211,166,89,.20), transparent 62%),
    radial-gradient(700px 600px at 8% 110%, rgba(211,166,89,.10), transparent 60%),
    linear-gradient(155deg, #00604c 0%, var(--green) 36%, var(--green-deep) 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .45; pointer-events: none; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.18; margin-top: 14px; letter-spacing: 1px;
}
.page-hero h1 .hl { color: var(--gold); }
.page-hero__lead { margin-top: 18px; max-width: 640px; font-size: clamp(15px, 1.5vw, 17.5px); color: rgba(229,239,236,.92); line-height: 1.85; }
.page-hero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(207,224,219,.75); margin-bottom: 20px; }
.crumb a { color: rgba(207,224,219,.85); transition: color .2s; }
.crumb a:hover { color: var(--gold-light); }
.crumb .sep { opacity: .5; }
.crumb .now { color: var(--gold-light); }

.page-hero__stats { margin-top: 34px; display: flex; gap: clamp(24px, 4vw, 48px); flex-wrap: wrap; }
.page-hero__stats .ph-stat .n { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--gold); line-height: 1.1; }
.page-hero__stats .ph-stat .l { margin-top: 6px; font-size: 13px; color: rgba(207,224,219,.85); }

/* ---------- B. 货源大厅 ---------- */
.board-section { padding-block: clamp(40px, 5vw, 72px) var(--section-y); background: var(--bg-soft); }

.board-toolbar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--sh-sm);
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; gap: 12px; align-items: end;
}
.bt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bt-field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.bt-field select, .bt-field input {
  height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px;
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.bt-field select:focus, .bt-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,86,69,.10); }
.bt-go { height: 42px; padding: 0 26px; }

.board-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 2px 16px; flex-wrap: wrap; }
.board-meta .bm-count { font-size: 14px; color: var(--muted); }
.board-meta .bm-count b { color: var(--green); font-size: 16px; font-family: var(--font-display); }
.board-meta .bm-note { font-size: 12.5px; color: var(--muted-2); }

.cargo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cargo-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cargo-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(0,86,69,.18); }
.cargo-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--green), var(--gold)); opacity: 0; transition: opacity .3s;
}
.cargo-card:hover::before { opacity: 1; }

.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-tag {
  font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--green-50); color: var(--green);
}
.cc-tag--gold { background: var(--gold-soft); color: var(--gold-deep); }
.cc-time { font-size: 12px; color: var(--muted-2); white-space: nowrap; }

.cc-route { display: flex; align-items: center; gap: 12px; }
.cc-city { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc-city .pin { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cc-city .pin.from { background: var(--green); box-shadow: 0 0 0 3px rgba(0,86,69,.14); }
.cc-city .pin.to { background: var(--gold); box-shadow: 0 0 0 3px rgba(211,166,89,.20); }
.cc-city .name { font-size: 16.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-mid { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 70px; }
.cc-mid .dash { flex: 1; border-top: 2px dashed var(--line); position: relative; }
.cc-mid svg { width: 18px; height: 18px; stroke: var(--muted-2); flex-shrink: 0; }
.cc-mid .km { font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }

.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chip {
  font-size: 12.5px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 10px;
}
.cc-chip b { color: var(--text); font-weight: 600; }

.cc-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-price { display: flex; align-items: baseline; gap: 8px; }
.cc-price .amount { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--green); line-height: 1; }
.cc-price .amount .y { font-size: 14px; margin-right: 1px; }
.cc-price .plabel { font-size: 12px; color: var(--muted-2); }
.cc-price .nego { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--gold-deep); }
.cc-cta {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--green); color: #fff; font-size: 13px; font-weight: 700;
  transition: .25s var(--ease); white-space: nowrap;
}
.cc-cta:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,86,69,.24); }
.cc-cta svg { width: 15px; height: 15px; }

/* 骨架屏 */
.sk-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.sk-line { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--line-2) 25%, #f7faf9 50%, var(--line-2) 75%); background-size: 200% 100%; animation: sk-shimmer 1.4s infinite; }
.sk-line.w40 { width: 40%; } .sk-line.w70 { width: 70%; } .sk-line.w55 { width: 55%; } .sk-line.w30 { width: 30%; }
@keyframes sk-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk-line { animation: none; } }

/* 空态 / 错误态 */
.board-empty {
  grid-column: 1 / -1; text-align: center; padding: clamp(48px, 7vw, 80px) 24px;
  background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.board-empty .be-ic {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 22px;
  background: var(--green-50); display: flex; align-items: center; justify-content: center;
}
.board-empty .be-ic svg { width: 34px; height: 34px; stroke: var(--green); }
.board-empty h3 { font-size: 19px; color: var(--ink); font-weight: 700; }
.board-empty p { margin: 10px auto 22px; max-width: 420px; font-size: 14px; color: var(--muted); }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.pager button {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--text);
  transition: .2s var(--ease);
}
.pager button:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.pager button.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* 扫码浮层 */
.modal-mask {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0, 32, 25, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-mask.is-open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 100%; max-width: 360px; background: #fff; border-radius: var(--r-xl); padding: 30px 28px;
  text-align: center; transform: translateY(16px) scale(.97); transition: transform .25s var(--ease);
  box-shadow: var(--sh-lg);
}
.modal-mask.is-open .modal-card { transform: none; }
.modal-card h3 { font-size: 19px; color: var(--ink); font-weight: 700; }
.modal-card .mc-sub { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.modal-card .qr-mock { width: 168px; height: 168px; margin: 20px auto 6px; }
.modal-card .btn { margin-top: 18px; width: 100%; }

/* ---------- C. 入驻页（司机 / 货主）---------- */
.req-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.req-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.req-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.req-card .rc-ic {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px rgba(0,86,69,.20);
}
.req-card .rc-ic svg { width: 25px; height: 25px; stroke: var(--gold-light); }
.req-card h3 { font-size: 17px; color: var(--ink); font-weight: 700; }
.req-card p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

.steps-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px 24px; transition: .3s var(--ease); }
.step-item:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--green-deep); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(211,166,89,.4);
  font-family: var(--font-display);
}
.step-item h3 { font-size: 16.5px; color: var(--ink); font-weight: 700; margin-top: 6px; }
.step-item p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* 转化横带 */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  padding: clamp(36px, 5vw, 56px);
  background:
    radial-gradient(600px 300px at 88% -10%, rgba(211,166,89,.25), transparent 60%),
    linear-gradient(150deg, var(--green) 0%, var(--green-deep) 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h3 { font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; letter-spacing: .5px; }
.cta-band p { margin-top: 10px; font-size: 14.5px; color: rgba(229,239,236,.88); max-width: 520px; line-height: 1.8; }
.cta-band .cb-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- D. 收费标准页 ---------- */
.fee-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fee-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px;
  position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
}
.fee-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.fee-card--hl { border-color: rgba(211,166,89,.55); box-shadow: 0 14px 36px rgba(211,166,89,.14); }
.fee-card .fc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fee-card h3 { font-size: 18px; color: var(--ink); font-weight: 700; }
.fee-card .fc-status { font-size: 11.5px; font-weight: 700; padding: 3px 12px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green); white-space: nowrap; }
.fee-card .fc-status.is-plan { background: var(--gold-soft); color: var(--gold-deep); }
.fee-card .fc-price { margin-top: 16px; font-family: var(--font-display); }
.fee-card .fc-price .big { font-size: 38px; font-weight: 800; color: var(--green); line-height: 1; }
.fee-card .fc-price .unit { font-size: 14px; color: var(--muted); margin-left: 6px; font-family: var(--font-sans); }
.fee-card .fc-desc { margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.8; flex: 1; }
.fee-card .fc-desc li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.fee-card .fc-desc li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.note-band {
  margin-top: 26px; padding: 18px 22px; border-radius: var(--r-md);
  background: var(--gold-soft); border: 1px solid rgba(211,166,89,.35);
  font-size: 13.5px; color: #6d5426; line-height: 1.8; display: flex; gap: 12px; align-items: flex-start;
}
.note-band svg { width: 18px; height: 18px; stroke: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }

/* ---------- E. 结算清分页 ---------- */
.settle-flow {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--sh-sm); overflow-x: auto;
}
.settle-flow svg { min-width: 760px; width: 100%; height: auto; display: block; }

.settle-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.settle-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; transition: .3s var(--ease); }
.settle-card:hover { box-shadow: var(--sh-md); transform: translateY(-4px); }
.settle-card .sc-no { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--gold-deep); letter-spacing: 1px; }
.settle-card h3 { margin-top: 8px; font-size: 16.5px; color: var(--ink); font-weight: 700; }
.settle-card p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.75; }

/* ---------- F. 首页「实时货源」板块 ---------- */
.live-section { background: var(--bg-soft); }
.live-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.live-head-row .section-head { margin-bottom: 0; }
.live-more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--green); transition: .2s; white-space: nowrap; padding-bottom: 6px; }
.live-more:hover { color: var(--gold-deep); }
.live-more svg { width: 18px; height: 18px; transition: transform .2s; }
.live-more:hover svg { transform: translateX(4px); }
.live-grid-wrap { margin-top: clamp(32px, 4vw, 48px); }
.live-foot { margin-top: 26px; text-align: center; font-size: 13px; color: var(--muted-2); }

/* ---------- G. 响应式 ---------- */
@media (max-width: 1080px) {
  .req-grid, .settle-cards { grid-template-columns: repeat(2, 1fr); }
  .fee-cards { grid-template-columns: 1fr 1fr; }
  .fee-card--hl { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .board-toolbar { grid-template-columns: 1fr 1fr; }
  .bt-go { grid-column: 1 / -1; }
  .steps-line { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
}
@media (max-width: 640px) {
  .cargo-grid { grid-template-columns: 1fr; }
  .board-toolbar { grid-template-columns: 1fr; }
  .fee-cards { grid-template-columns: 1fr; }
  .steps-line { grid-template-columns: 1fr; }
  .req-grid, .settle-cards { grid-template-columns: 1fr; }
  .cc-route { flex-wrap: wrap; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
