* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 作者样式里的 display 会盖掉 UA 的 [hidden]{display:none}，这里强制兜底 */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f2f3f5;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- 登录页 ---------- */
.login-container { min-height: 100vh; background: #f2f3f5; }
.login-header-bg {
  background: linear-gradient(160deg, #d7000f 0%, #b0000c 100%);
  padding: 42px 20px 62px;
}
.logo-area { display: flex; justify-content: center; }
.logo-box {
  width: 92px; height: 92px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.logo-text { color: #d7000f; font-weight: 700; font-size: 17px; letter-spacing: 1px; }

.login-card {
  margin: -44px 16px 0; background: #fff; border-radius: 14px;
  padding: 22px 18px 26px; box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 18px; color: #222; }

.input-item { margin-bottom: 14px; }
.input-item input {
  width: 100%; height: 46px; border: 1px solid #e2e2e2; border-radius: 8px;
  padding: 0 12px; font-size: 16px; outline: none; background: #fafafa;
}
.input-item input:focus { border-color: #d7000f; background: #fff; }
.sms-item { display: flex; gap: 10px; }
.sms-item input { flex: 1; }
.sms-btn {
  flex: 0 0 116px; height: 46px; border: none; border-radius: 8px;
  background: #d7000f; color: #fff; font-size: 14px;
}
.sms-btn:disabled { background: #c9a3a5; }

.agreement-box { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 18px; }
.check-icon {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  border: 1px solid #cfcfcf; border-radius: 50%; background: #fff; position: relative;
}
.check-icon.checked { background: #d7000f; border-color: #d7000f; }
.check-icon.checked::after {
  content: ""; position: absolute; left: 5px; top: 3px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.agree-text { font-size: 13px; color: #666; }
.agree-text a { color: #d7000f; text-decoration: none; }

.submit-btn-box { margin-top: 4px; }
.submit-btn, .primary-btn {
  width: 100%; height: 46px; border: none; border-radius: 23px;
  background: #d7000f; color: #fff; font-size: 16px; font-weight: 500;
}
.submit-btn:disabled, .primary-btn:disabled { background: #c9a3a5; }
.login-status { margin-top: 12px; min-height: 20px; font-size: 13px; color: #d7000f; text-align: center; }

/* ---------- 查询页 ---------- */
.query-page { min-height: 100vh; }
.query-header {
  position: sticky; top: 0; z-index: 5; height: 48px; background: #d7000f;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.query-header .logout {
  position: absolute; left: 12px; background: none; border: none; color: #fff; font-size: 14px;
}
.query-header .title { font-size: 17px; font-weight: 600; }
.query-main { padding: 16px 16px 32px; }
.query-status, .query-empty { text-align: center; color: #888; padding: 40px 0; font-size: 14px; }

.result-title { margin: 14px 0 8px; font-size: 14px; color: #666; font-weight: 600; }
.result-card {
  background: #fff; border-radius: 12px; padding: 4px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.result-card .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px;
}
.result-card .row:last-child { border-bottom: none; }
.result-card .label { color: #888; flex: 0 0 96px; }
.result-card .value { color: #222; text-align: right; word-break: break-all; }

.recall-box { margin-top: 18px; }
.recall-text {
  background: #fff5f5; border: 1px solid #ffd9d9; color: #c00;
  border-radius: 10px; padding: 12px; font-size: 14px; margin-bottom: 12px;
}
.ghost-btn {
  width: 100%; height: 44px; margin-bottom: 10px; border-radius: 22px;
  border: 1px solid #d7000f; background: #fff; color: #d7000f; font-size: 15px;
}
.submitted-tip { text-align: center; color: #1a9c46; font-size: 14px; margin-top: 10px; }

/* ---------- 召回状态卡 ---------- */
/* 四种状态用左侧色条 + 角标区分，客户一眼能看出自己的车要不要处理 */
.recall-card {
  margin: 0 0 6px; padding: 16px 16px 18px; border-radius: 14px;
  background: #fff; border-left: 4px solid #d9d9d9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.recall-card__title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: 16px; font-weight: 700; line-height: 1.4;
}
.recall-card__badge { padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; background: #6b7280; }
.recall-card__note { margin: 0; font-size: 13px; line-height: 1.65; color: #555; }
.recall-card__meta { margin: 8px 0 0; font-size: 12px; color: #9aa0a6; }
.recall-card__actions { display: grid; gap: 9px; margin-top: 15px; }
.recall-card__actions .ghost-btn { margin-bottom: 0; }

.recall-card.is-affected { border-left-color: #d7000f; background: linear-gradient(180deg, #fff6f6, #fff); }
.recall-card.is-affected .recall-card__badge { background: #d7000f; }
.recall-card.is-affected .recall-card__title { color: #b3000c; }

.recall-card.is-safe { border-left-color: #16a34a; background: linear-gradient(180deg, #f3fdf6, #fff); }
.recall-card.is-safe .recall-card__badge { background: #16a34a; }
.recall-card.is-safe .recall-card__title { color: #11753a; }

.recall-card.is-done { border-left-color: #2563eb; background: linear-gradient(180deg, #f4f8ff, #fff); }
.recall-card.is-done .recall-card__badge { background: #2563eb; }
.recall-card.is-done .recall-card__title { color: #1d4ed8; }

.recall-card.is-unknown { border-left-color: #9ca3af; background: #fafafa; }
.recall-card.is-unknown .recall-card__badge { background: #6b7280; }
.recall-card.is-unknown .recall-card__title { color: #4b5563; }

/* ---------- 协议弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center; z-index: 20; padding: 20px;
}
.modal-box { background: #fff; border-radius: 12px; width: 100%; max-width: 420px; max-height: 74vh; display: flex; flex-direction: column; }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #eee; font-size: 16px; font-weight: 600;
}
.modal-close { background: none; border: none; font-size: 22px; line-height: 1; color: #999; }
.modal-body { padding: 14px 16px 18px; overflow: auto; font-size: 14px; color: #444; }
.modal-body p { margin: 0 0 10px; }

/* 查询页车辆卡：只露三项（登记车牌 / 召回状态 / 车辆编号），与会员中心一致 */
.vehicle-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.vehicle-card__row { display: grid; gap: 6px; text-align: center; min-width: 0; }
.vehicle-card__row + .vehicle-card__row { border-left: 1px solid #f0f0f0; }
.vehicle-card__row strong {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  word-break: break-all;
}
.vehicle-card__row span { font-size: 12px; color: #888; }
.vehicle-card__row strong.is-affected { color: #d4380d; }
.vehicle-card__row strong.is-safe { color: #1a7f37; }
.vehicle-card__row strong.is-done { color: #1d4ed8; }
.vehicle-card__row strong.is-unknown { color: #888; }
