/* ============================================================
 * PDA / 手机 H5 · 退货质检页样式
 * 还原规格：豆包(28).png —— 390px 移动端，企业绿主题
 * ============================================================ */
:root {
  --green: #07C160;
  --green-dark: #06AD56;
  --green-light: #E9F9F0;
  --green-border: #B8EBCC;
  --red: #F54A45;
  --red-light: #FEF0EF;
  --orange: #FF8F1F;
  --orange-light: #FFF5E8;
  --text-1: #1F2329;
  --text-2: #646A73;
  --text-3: #8F959E;
  --border: #E5E7EB;
  --border-light: #EEF0F3;
  --bg-page: #F5F6F8;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px; color: var(--text-1); background: #E9EBEF; min-height: 100vh;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text-1); }
svg { display: block; }

/* 手机外壳（桌面预览时呈现设备感，真机全屏） */
.phone {
  max-width: 420px; margin: 0 auto; min-height: 100vh; background: var(--bg-page);
  display: flex; flex-direction: column; position: relative;
}
@media (min-width: 520px) {
  body { padding: 24px 0; }
  .phone { min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; box-shadow: 0 20px 60px rgba(31,35,41,0.18); }
}

/* ---------- 状态栏 ---------- */
.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 4px; font-size: 13px; font-weight: 600; background: #fff;
}
.statusbar .sb-right { display: flex; align-items: center; gap: 6px; }
.sb-bars { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.sb-bars i { width: 3px; background: var(--text-1); border-radius: 1px; }
.sb-bars i:nth-child(1) { height: 4px; } .sb-bars i:nth-child(2) { height: 6px; }
.sb-bars i:nth-child(3) { height: 8px; } .sb-bars i:nth-child(4) { height: 11px; }
.sb-battery { width: 20px; height: 11px; border: 1.4px solid var(--text-1); border-radius: 3px; position: relative; }
.sb-battery::after { content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 11px; background: var(--text-1); border-radius: 1px; }
.sb-battery::before { content: ""; position: absolute; right: -3.5px; top: 3px; width: 2px; height: 4px; background: var(--text-1); border-radius: 0 1px 1px 0; }

/* ---------- 导航栏 ---------- */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px 12px; background: #fff; border-bottom: 1px solid var(--border-light);
}
.navbar .nv-btn { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-1); }
.navbar .nv-btn:active { background: var(--bg-page); }
.navbar .nv-title { font-size: 16.5px; font-weight: 600; }
.navbar .nv-right { display: flex; gap: 6px; }

/* ---------- 内容区 ---------- */
.content { flex: 1; padding: 14px 14px 24px; overflow-y: auto; }

.scan-banner {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--green); color: #fff; font-size: 14.5px; font-weight: 500;
  border-radius: 999px; padding: 11px 0; margin: 4px 0 14px;
  box-shadow: 0 4px 14px rgba(7,193,96,0.32);
}
.scan-banner .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }

.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(31,35,41,0.04); }

.search-row { display: flex; gap: 10px; }
.search-row .s-input {
  flex: 1; height: 40px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 12px; background: #fff; min-width: 0;
}
.search-row .s-input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(7,193,96,0.12); }
.search-row .s-btn { height: 40px; padding: 0 16px; border-radius: 8px; background: var(--green); color: #fff; font-size: 14px; font-weight: 500; flex: none; }
.search-row .s-btn:active { background: var(--green-dark); }
.search-hint { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.search-hint b { color: var(--orange); font-weight: 500; }

/* 订单卡片 */
.order-card { display: flex; align-items: center; gap: 12px; }
.order-logo { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; flex: none; }
.order-info { flex: 1; min-width: 0; }
.order-info .o-no { font-size: 14.5px; font-weight: 600; }
.order-info .o-buyer { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.order-info .o-status { font-size: 12px; margin-top: 5px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 5px; }
.o-status.wait { background: var(--orange-light); color: #D97400; }
.order-arrow { color: #C0C4CC; flex: none; }

/* 商品卡片 */
.product-card { display: flex; gap: 12px; }
.p-img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border-light); background: #fff; flex: none; }
.p-mid { flex: 1; min-width: 0; }
.p-name { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.p-meta { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.8; }
.p-photo { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 92px; }
.p-photo .pp-label { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.photo-thumb {
  width: 60px; height: 60px; border-radius: 8px; border: 1px dashed #D6D9DD; background: #FAFBFC;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: 10px; overflow: hidden; position: relative;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb:active { border-color: var(--green); }

/* 开关 */
.switch { position: relative; width: 38px; height: 21px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; border-radius: 11px; background: #D6D9DD; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(17px); }

/* 表单 */
.f-label { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.f-label::before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.r-chip {
  height: 34px; padding: 0 15px; border-radius: 8px; font-size: 13.5px;
  background: #fff; border: 1px solid var(--border); color: var(--text-1);
  display: inline-flex; align-items: center; gap: 5px; transition: all 0.15s;
}
.r-chip:active { transform: scale(0.97); }
.r-chip.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 500; }
.f-select {
  width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 8px;
  padding: 0 32px 0 12px; appearance: none; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%238F959E' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.f-select:focus { border-color: var(--green); outline: none; }
.f-textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
  resize: none; line-height: 1.6; font-size: 13.5px; background: #fff;
}
.f-textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(7,193,96,0.12); }

.submit-btn {
  width: 100%; height: 48px; border-radius: 24px; background: var(--green); color: #fff;
  font-size: 16px; font-weight: 600; margin-top: 6px;
  box-shadow: 0 6px 16px rgba(7,193,96,0.32); transition: transform 0.15s, background 0.15s;
}
.submit-btn:active { transform: scale(0.98); background: var(--green-dark); }

/* 空 / 提示 */
.empty-tip { text-align: center; padding: 36px 16px; color: var(--text-3); }
.empty-tip .et-icon { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; background: #EFF1F3; display: flex; align-items: center; justify-content: center; color: #B4B8BF; }
.empty-tip .et-title { font-size: 13.5px; color: var(--text-2); margin-bottom: 5px; }
.empty-tip .et-desc { font-size: 12px; line-height: 1.7; }
.notfound { background: var(--orange-light); border: 1px solid #FFE3B8; color: #D97400; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.7; margin-bottom: 12px; display: none; }
.notfound.show { display: block; animation: fadeUp 0.25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 成功浮层 */
.success-mask {
  position: absolute; inset: 0; z-index: 50; background: rgba(31,35,41,0.5);
  display: none; align-items: center; justify-content: center; padding: 32px;
}
.success-mask.show { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.success-box {
  background: #fff; border-radius: 16px; padding: 28px 22px 22px; width: 100%; max-width: 300px; text-align: center;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.success-box .ok-ico {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-light);
  color: var(--green); display: flex; align-items: center; justify-content: center;
}
.success-box .ok-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.success-box .ok-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }
.success-box .ok-btns { display: flex; gap: 10px; }
.success-box .ok-btns button { flex: 1; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.ok-btn-primary { background: var(--green); color: #fff; }
.ok-btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text-1); }

/* Toast */
.toast {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%);
  background: rgba(31,35,41,0.85); color: #fff; font-size: 13px; padding: 9px 16px;
  border-radius: 8px; z-index: 60; white-space: nowrap; display: none;
}
.toast.show { display: block; animation: fadeUp 0.2s ease; }
