/* H5 游客版 —— 移动端优先，主题与小程序一致 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --brand: #2E7CF6;
  --brand-dark: #1B62D6;
  --orange: #FF8A2B;
  --green: #12A150;
  --text: #1f1f1f;
  --muted: #9aa7ba;
  --line: #eef1f6;
  --tabbar-h: 56px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(180deg, #e8f0ff 0%, #f4f7fd 30%, #f4f7fd 100%);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 14px calc(var(--tabbar-h) + 26px);
}

/* ===== 品牌 ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 4px 16px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0052d9, #0594fa);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.brand__name {
  font-size: 18px;
  font-weight: 600;
}

.notice {
  background: #fff7ec;
  color: #a65509;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

/* ===== 卡片 ===== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 15px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(30, 60, 120, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.card:active {
  transform: scale(0.985);
}

.card--static {
  cursor: default;
}

.card--static:active {
  transform: none;
}

.addr__badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
  background: rgba(46, 124, 246, 0.06);
}

#card-receiver .addr__badge {
  background: rgba(18, 161, 80, 0.06);
}

.addr__body {
  flex: 1;
  min-width: 0;
}

.addr__name {
  font-size: 15px;
  font-weight: 600;
}

.addr__name i {
  font-style: normal;
  font-weight: 400;
  color: #666;
  margin-left: 8px;
  font-size: 13px;
}

.addr__detail {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.addr__arrow {
  color: #c2cbd8;
  font-size: 20px;
}

.addr__book {
  flex-shrink: 0;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  color: var(--brand);
  text-align: center;
  cursor: pointer;
}

.save-book {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 2px 2px;
  font-size: 13px;
  color: #555;
}
.save-book input {
  accent-color: var(--brand);
}
.save-book label {
  cursor: pointer;
}

.addr-tip {
  font-size: 11px;
  color: #b0b0b0;
  margin: -4px 2px 12px;
}

.pick__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 124, 246, 0.1);
}

.pick__icon svg {
  display: block;
}

.pick__icon--blue {
  background: rgba(46, 124, 246, 0.1);
}

.parse-box { margin-bottom: 6px; }
.parse-box textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  background: #f7f8fa; outline: none; resize: none;
  font-size: 13px; font-family: inherit; padding: 10px; color: var(--text);
  min-height: 96px;
}
.parse-box textarea:focus { border-color: var(--brand); background: #fff; }
.parse-box__ops { display: flex; gap: 8px; justify-content: flex-end; padding: 8px 0 2px; }
.parse-box__ops button {
  padding: 6px 16px; font-size: 12px; border-radius: 999px; cursor: pointer;
}
.parse-box__ops #f-parse-clear { background: #fff; border: 1px solid #dcdfe6; color: #666; }
.parse-box__ops #f-parse-go { background: var(--brand); border: none; color: #fff; font-weight: 600; }
.parse-box__ops button:disabled { opacity: 0.6; }

.required {
  color: #d54941;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  margin-left: 3px;
  white-space: nowrap;
}

.pick__icon--orange {
  background: rgba(255, 138, 43, 0.12);
}

.pick__icon--green {
  background: rgba(18, 161, 80, 0.12);
}

.pick__body {
  flex: 1;
  min-width: 0;
}

.pick__title {
  font-size: 14px;
  font-weight: 600;
}

.pick__sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick__arrow {
  color: #c2cbd8;
  font-size: 20px;
}

.tip-line {
  font-size: 11px;
  color: #b0b0b0;
  text-align: center;
  padding: 4px 0 12px;
}

/* ===== 按钮 ===== */
.bar {
  position: sticky;
  bottom: calc(var(--tabbar-h) + 12px);
}

.btn {
  width: 100%;
  padding: 13px 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(46, 124, 246, 0.3);
}

.btn:disabled {
  background: #b9c7dc;
  box-shadow: none;
}

.btn--ghost {
  background: #fff;
  color: #666;
  border: 1px solid #dcdfe6;
  box-shadow: none;
}

.mini-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== 底部导航 ===== */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  max-width: 640px;
  margin: 0 auto;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: #9aa7ba;
  cursor: pointer;
}

.tabbar__item.on {
  color: var(--brand);
}

/* ===== 底部弹层 ===== */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 30;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 31;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  animation: slideup 0.22s ease;
}

@keyframes slideup {
  from {
    transform: translateY(40px);
    opacity: 0.4;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
}

.sheet__title {
  font-size: 15px;
  font-weight: 600;
}

.sheet__close {
  font-size: 22px;
  color: #999;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

.sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 12px;
  -webkit-overflow-scrolling: touch;
}

.sheet__foot {
  padding: 10px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

/* ===== 表单 ===== */
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.field__label {
  width: 78px;
  flex-shrink: 0;
  font-size: 13px;
  color: #666;
}

.field__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  padding: 4px 0;
  color: var(--text);
  width: 100%;
  min-width: 0;
}

.field select {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  padding: 4px 0;
  color: var(--text);
  max-width: 32%;
}

textarea.detail-box__input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 14px;
  resize: none;
  background: #f7f8fa;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  margin-top: 10px;
}

.required {
  color: #d54941;
  font-size: 11px;
  margin-left: 4px;
  font-style: normal;
}

.form-hint {
  font-size: 11px;
  color: #b0b0b0;
  padding: 6px 0;
}

/* 物品类型 */
.goods-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
}

.goods-type {
  padding: 6px 14px;
  font-size: 13px;
  background: #f4f6fa;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.goods-type.on {
  color: var(--brand);
  background: rgba(46, 124, 246, 0.08);
  border-color: var(--brand);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 2px;
}

.stepper button {
  width: 30px;
  height: 30px;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  color: #444;
}

.stepper input {
  width: 54px;
  height: 30px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.dimensions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
}

.dimensions input {
  width: 56px;
  padding: 7px 6px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  outline: none;
}

/* 日期时段 */
.time-dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
}

.time-dates .time-option {
  flex-shrink: 0;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  padding: 4px 0 10px;
}

.time-option {
  padding: 10px 8px;
  font-size: 13px;
  text-align: center;
  background: #f4f6fa;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}

.time-option.on {
  color: var(--brand);
  background: rgba(46, 124, 246, 0.08);
  border-color: var(--brand);
}

.time-option.disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

.time-option b {
  display: block;
  font-weight: 600;
}

.time-option span {
  font-size: 11px;
  color: inherit;
  opacity: 0.75;
}

.field--last {
  border-bottom: none;
  padding-top: 4px;
}

/* 结算方式 */
.pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.pay-option.on {
  border-color: var(--brand);
  background: rgba(46, 124, 246, 0.04);
}

.radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #c0c4cc;
  flex-shrink: 0;
}

.radio.on {
  border: 5px solid var(--brand);
}

/* 渠道报价 */
.quote-timer {
  font-size: 12px;
  color: var(--orange);
  text-align: center;
  padding: 6px 0 10px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.channel.on {
  border-color: var(--brand);
  background: rgba(46, 124, 246, 0.04);
}

.channel__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
  font-size: 18px;
}

.channel__icon img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.channel__body {
  flex: 1;
  min-width: 0;
}

.channel__head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel__name {
  font-size: 14px;
  font-weight: 600;
}

.channel__tag {
  font-size: 10px;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 4px;
  padding: 0 4px;
}

.channel__desc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel__up {
  font-size: 11px;
  color: #c0c4cc;
  margin-top: 2px;
}

.channel__pricebox {
  text-align: right;
  flex-shrink: 0;
}

.channel__price {
  font-size: 17px;
  font-weight: 700;
  color: #d54941;
}

.channel__origin {
  font-size: 11px;
  color: #c0c4cc;
  text-decoration: line-through;
}

.agree {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
  padding: 4px 0 10px;
}

.agree input {
  accent-color: var(--brand);
}

.agree a {
  color: var(--brand);
  text-decoration: none;
}

/* 成功页 */
.success {
  text-align: center;
  padding: 50px 10px 0;
}

.success__badge {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2ba471;
  color: #fff;
  font-size: 32px;
}

.success h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.success__tip {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.success__info {
  background: #fff;
  border-radius: 12px;
  padding: 6px 18px;
  margin-bottom: 24px;
  text-align: left;
}

.srow {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.srow:last-child {
  border-bottom: none;
}

.srow span {
  color: var(--muted);
}

.srow b {
  font-weight: 600;
  max-width: 65%;
  text-align: right;
  word-break: break-all;
}

/* 记录页 */
.olist {
  padding: 4px 0;
}

.search-card {
  display: block;
  padding: 14px;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(30, 60, 120, 0.07);
}

.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 82, 217, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.search-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}

.search-input input::placeholder {
  color: #9aa7ba;
}

.search-card .btn {
  box-shadow: none;
}

.ocard {
  background: #fff;
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 10px;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(30, 60, 120, 0.04);
}

.ocard__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ocard__head b {
  font-weight: 600;
}

.ocard__sub {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  text-align: center;
  color: #b0b0b0;
  font-size: 13px;
  padding: 36px 0;
}

/* 地址簿列表 */
.book-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.book-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f8f9fc;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.book-item:active {
  border-color: var(--brand);
}

.book-item__body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.book-item__body b {
  font-weight: 600;
}

.book-item__body i {
  font-style: normal;
  color: #666;
  margin-left: 8px;
  font-size: 12px;
}

.book-item__addr {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-item__del {
  flex-shrink: 0;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #f0c4c1;
  border-radius: 6px;
  font-size: 12px;
  color: #d54941;
  cursor: pointer;
}

.search-card {
  padding: 16px;
  gap: 10px;
}

.search-card .field__input {
  font-size: 15px;
}

/* 协议文档 */
.doc-body {
  background: #f8f9fc;
  border-radius: 10px;
  padding: 14px;
  max-height: 56vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.doc-content {
  font-size: 13px;
  line-height: 1.9;
  color: #4b5262;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 报价 */
.channel__saving {
  font-size: 11px;
  color: #d54941;
  margin-top: 2px;
}

.muted {
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 40px);
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 99;
  max-width: 80%;
  text-align: center;
}