/* ULD 语音登记系统 - 移动端公共样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f0f4f8; color: #1a2b3c; font-size: 16px;
  max-width: 480px; margin: 0 auto; min-height: 100vh;
}
.header {
  position: sticky; top: 0; z-index: 10;
  background: #185FA5; color: #fff; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.header h1 { font-size: 19px; font-weight: 500; flex: 1; }
.header .sub { font-size: 13px; opacity: 0.85; }
.header a { color: #fff; text-decoration: none; font-size: 24px; padding: 0 6px; }
.content { padding: 14px; }
.card {
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card h2 { font-size: 15px; font-weight: 500; color: #185FA5; margin-bottom: 10px; }
.big-btn {
  display: block; width: 100%; padding: 16px; margin: 8px 0;
  font-size: 18px; font-weight: 500; border: none; border-radius: 12px;
  background: #185FA5; color: #fff; cursor: pointer;
}
.big-btn:active { opacity: 0.8; }
.big-btn.green { background: #1D9E75; }
.big-btn.gray { background: #8892a0; }
.big-btn.orange { background: #D85A30; }
/* 航班卡片 */
.flight-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-decoration: none; color: inherit; cursor: pointer;
}
.flight-card .fno { font-size: 24px; font-weight: 500; color: #185FA5; min-width: 110px; }
.flight-card .finfo { flex: 1; font-size: 13px; color: #5a6b7b; line-height: 1.5; }
.flight-card .fstat { text-align: right; font-size: 14px; }
.flight-card .fstat .done { color: #1D9E75; font-weight: 500; }
.flight-card .fstat .pct { color: #D85A30; }
/* 卡片右上角删除按钮 */
.fc-del {
  position: absolute; top: 4px; right: 10px; font-size: 15px; color: #c3ccd6;
  cursor: pointer; padding: 3px 7px; z-index: 2; line-height: 1;
}
.fc-del:active { color: #A32D2D; }
/* 单号按钮 */
.hawb-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px; margin: 6px 0;
  font-size: 16px; border: 2px solid #dfe6ec; border-radius: 12px;
  background: #fff; cursor: pointer; text-align: left;
}
.hawb-item.selected { border-color: #185FA5; background: #E6F1FB; }
.hawb-item .hno { font-size: 17px; font-weight: 500; min-width: 130px; }
.hawb-item .hmeta { flex: 1; font-size: 13px; color: #5a6b7b; }
.hawb-item .hpieces { font-size: 15px; font-weight: 500; color: #185FA5; }
/* 录入大卡片 */
.field {
  background: #fff; border-radius: 12px; padding: 14px;
  margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.field label { font-size: 14px; color: #5a6b7b; display: block; margin-bottom: 6px; }
.field .big-input {
  width: 100%; font-size: 34px; font-weight: 500; text-align: center;
  border: 2px solid #dfe6ec; border-radius: 12px; padding: 10px;
  outline: none; background: #f8fafc; letter-spacing: 1px;
}
.field .big-input:focus { border-color: #185FA5; background: #fff; }
.voice-row { display: flex; gap: 8px; margin-top: 8px; }
.voice-btn {
  flex: 1; padding: 14px; font-size: 16px; font-weight: 500;
  border: none; border-radius: 12px; background: #E6F1FB; color: #185FA5; cursor: pointer;
}
.voice-btn.listening { background: #FCEBEB; color: #A32D2D; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.6; } }
.voice-btn:disabled { opacity: 0.5; }
/* 板型按钮组(紧凑) */
.board-type-row { display: flex; flex-wrap: wrap; gap: 6px; }
.board-type-btn {
  padding: 7px 13px; font-size: 14px; font-weight: 500;
  border: 1.5px solid #dfe6ec; border-radius: 8px; background: #fff; cursor: pointer;
}
.board-type-btn.selected { border-color: #1D9E75; background: #E1F5EE; color: #0F6E56; }
/* 确认卡片 */
.confirm-card {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,20,30,0.6); display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.confirm-card.show { display: flex; }
.confirm-inner {
  background: #fff; border-radius: 16px; padding: 24px; width: 100%; max-width: 420px;
}
.confirm-inner .c-title { font-size: 15px; color: #5a6b7b; margin-bottom: 12px; text-align: center; }
.confirm-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px; border-bottom: 1px solid #f0f2f5; font-size: 16px;
}
.confirm-item .c-key { color: #5a6b7b; }
.confirm-item .c-val { font-size: 26px; font-weight: 500; color: #1a2b3c; }
.confirm-actions { display: flex; gap: 10px; margin-top: 16px; }
.confirm-actions button { flex: 1; padding: 14px; font-size: 17px; border: none; border-radius: 12px; cursor: pointer; font-weight: 500; }
.btn-cancel { background: #f0f2f5; color: #5a6b7b; }
.btn-save { background: #1D9E75; color: #fff; }
/* 记录列表 */
.rec-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid #f0f2f5; font-size: 14px;
}
.rec-item .uld { font-weight: 500; min-width: 120px; }
.rec-item .bt { color: #D85A30; font-size: 13px; min-width: 50px; }
.rec-item .pcs { color: #185FA5; font-weight: 500; }
.rec-item .del { color: #A32D2D; cursor: pointer; font-size: 20px; padding: 0 4px; }
.rec-item .edit { color: #185FA5; cursor: pointer; font-size: 18px; padding: 0 2px; }
/* 表单(管理页) */
.form-line { margin: 12px 0; }
.form-line label { display: block; font-size: 14px; color: #5a6b7b; margin-bottom: 6px; }
.form-line input, .form-line select {
  width: 100%; padding: 12px; font-size: 16px;
  border: 2px solid #dfe6ec; border-radius: 10px; outline: none;
}
.form-line input:focus { border-color: #185FA5; }
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(26,43,60,0.92); color: #fff; padding: 12px 22px;
  border-radius: 10px; font-size: 15px; z-index: 200; display: none;
  max-width: 90%; text-align: center;
}
.toast.show { display: block; }
.progress-bar { height: 6px; background: #eef2f6; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-bar .fill { height: 100%; background: #1D9E75; border-radius: 3px; transition: width 0.3s; }
.hint { font-size: 13px; color: #8892a0; margin-top: 6px; line-height: 1.5; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.badge.ok { background: #E1F5EE; color: #0F6E56; }
.badge.warn { background: #FAEEDA; color: #854F0B; }
