/* ============================================================
   H5 来访预约端 - 移动端优先样式
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: #333;
  background: #f5f6f8;
  line-height: 1.5;
  min-height: 100vh;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

/* ---------- 微信内打开提示条 ---------- */
.wechat-tip {
  display: none;
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(135deg, #ff8f00, #f57c00);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.wechat-tip.show {
  display: block;
}

.wechat-tip strong {
  text-decoration: underline;
}

.wechat-tip .tip-close {
  float: right;
  margin-left: 8px;
  opacity: .7;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- 顶部标题栏 ---------- */
.page-header {
  background: linear-gradient(135deg, #1a6fb5, #2196f3);
  color: #fff;
  padding: 20px 16px;
  text-align: center;
}

.page-header h1 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
}

.page-header .sub {
  font-size: 12px;
  opacity: .85;
  margin-top: 4px;
}

/* ---------- 特别提醒横幅 ---------- */
.notice-bar {
  background: #fff8e1;
  border-left: 4px solid #ffb300;
  color: #8a6d00;
  font-size: 13px;
  padding: 11px 14px;
  margin: 12px 12px 0;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.notice-bar .icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* display:flex 会覆盖 hidden 属性，显式隐藏未启用的提醒条 */
.notice-bar[hidden] {
  display: none;
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border-radius: 12px;
  margin: 12px;
  padding: 18px 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
  padding-left: 9px;
  border-left: 3px solid #1a6fb5;
  line-height: 1.2;
}

/* ---------- 表单 ---------- */
.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 14px;
  color: #444;
  font-weight: 500;
  margin-bottom: 7px;
}

.field-label .req {
  color: #e53935;
  margin-left: 3px;
}

.field-label .hint {
  font-weight: 400;
  color: #999;
  font-size: 12px;
  margin-left: 6px;
}

.input,
.select,
.textarea {
  width: 100%;
  height: 44px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  color: #333;
  background: #fff;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color .2s;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: #1a6fb5;
}

.input::placeholder {
  color: #bbb;
}

.select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 32px;
}

.textarea {
  height: auto;
  min-height: 70px;
  padding: 10px 12px;
  resize: vertical;
}

.input.err,
.select.err {
  border-color: #e53935;
}

.field-error {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.field-error.show {
  display: block;
}

/* 两列布局 */
.field-row {
  display: flex;
  gap: 10px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

/* ---------- 来访人员条目 ---------- */
.person-item {
  background: #fafbfc;
  border: 1px solid #eaecef;
  border-radius: 10px;
  padding: 14px 12px 4px;
  margin-bottom: 10px;
  position: relative;
}

.person-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.person-head .name {
  font-size: 13px;
  font-weight: 600;
  color: #1a6fb5;
}

.person-head .del {
  font-size: 12px;
  color: #e53935;
  padding: 2px 8px;
  border: 1px solid #ffcdd2;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.add-person {
  width: 100%;
  height: 42px;
  border: 1px dashed #1a6fb5;
  background: #f4f9fe;
  color: #1a6fb5;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.add-person:active {
  background: #e8f2fc;
}

/* ---------- 按钮 ---------- */
.btn {
  display: block;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 23px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}

.btn:active {
  transform: scale(.985);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #1a6fb5, #2196f3);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 111, 181, .28);
}

.btn-ghost {
  background: #fff;
  color: #1a6fb5;
  border: 1px solid #1a6fb5;
}

.btn-danger {
  background: #fff;
  color: #e53935;
  border: 1px solid #ffcdd2;
}

.btn-sm {
  height: 36px;
  font-size: 14px;
  border-radius: 18px;
}

/* ---------- 验证码行 ---------- */
.code-row {
  display: flex;
  gap: 10px;
}

.code-row .input {
  flex: 1;
  min-width: 0;
}

.code-btn {
  flex-shrink: 0;
  width: 118px;
  height: 44px;
  border: 1px solid #1a6fb5;
  background: #fff;
  color: #1a6fb5;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.code-btn:disabled {
  border-color: #ddd;
  color: #bbb;
  background: #fafafa;
}

/* ---------- 状态标签 ---------- */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.tag-pending {
  background: #e3f2fd;
  color: #1565c0;
}

.tag-arrived {
  background: #e8f5e9;
  color: #2e7d32;
}

.tag-left {
  background: #f0f0f0;
  color: #757575;
}

.tag-cancelled {
  background: #fdecea;
  color: #c62828;
}

/* ---------- 预约记录列表 ---------- */
.order-item {
  background: #fff;
  border-radius: 12px;
  margin: 0 12px 12px;
  padding: 15px 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  cursor: pointer;
}

.order-item:active {
  background: #fafafa;
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f2f3f5;
  margin-bottom: 10px;
}

.order-no {
  font-size: 12px;
  color: #999;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.order-line {
  display: flex;
  font-size: 13px;
  margin-bottom: 6px;
  line-height: 1.5;
}

.order-line:last-child {
  margin-bottom: 0;
}

.order-line .k {
  color: #999;
  width: 68px;
  flex-shrink: 0;
}

.order-line .v {
  color: #333;
  flex: 1;
  word-break: break-all;
}

.order-line .v.car {
  color: #1a6fb5;
  font-weight: 600;
  letter-spacing: .5px;
}

/* ---------- 详情页 ---------- */
.status-hero {
  padding: 26px 16px;
  text-align: center;
  color: #fff;
}

.status-hero.pending { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.status-hero.arrived { background: linear-gradient(135deg, #66bb6a, #43a047); }
.status-hero.left    { background: linear-gradient(135deg, #bdbdbd, #9e9e9e); }
.status-hero.cancelled { background: linear-gradient(135deg, #ef5350, #e53935); }

.status-hero .txt {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.status-hero .no {
  font-size: 12px;
  opacity: .9;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .5px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f5f6f8;
  font-size: 14px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .k {
  color: #999;
  flex-shrink: 0;
}

.detail-row .v {
  color: #333;
  text-align: right;
  word-break: break-all;
}

.detail-row .v.car {
  color: #1a6fb5;
  font-weight: 600;
}

/* ---------- 二维码 ---------- */
.qr-wrap {
  text-align: center;
  padding: 22px 16px 10px;
}

.qr-wrap img {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.qr-wrap .qr-no {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1a6fb5;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 1px;
  word-break: break-all;
}

.qr-hint {
  font-size: 12px;
  color: #999;
  text-align: center;
  padding: 0 24px 8px;
  line-height: 1.6;
}

/* ---------- 空状态 / 加载 ---------- */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: #bbb;
}

.empty .ico {
  font-size: 46px;
  margin-bottom: 12px;
}

.empty .txt {
  font-size: 14px;
  margin-bottom: 16px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #999;
  font-size: 14px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid #e0e0e0;
  border-top-color: #1a6fb5;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 底部安全区 ---------- */
.footer-space {
  height: 24px;
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: #bbb;
  padding: 16px 0 24px;
}

.safe-bottom {
  height: env(safe-area-inset-bottom, 0);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .82);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  max-width: 78%;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}

.toast.show {
  opacity: 1;
}

/* ---------- 首页入口卡片 ---------- */
.entry-list {
  display: grid;
  gap: 12px;
  margin: 12px;
}

.entry {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  cursor: pointer;
}

.entry:active {
  background: #fafafa;
}

.entry .ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.entry .ico.blue { background: #e3f2fd; }
.entry .ico.green { background: #e8f5e9; }
.entry .ico.orange { background: #fff3e0; }

.entry .meta {
  flex: 1;
  min-width: 0;
}

.entry .meta .t {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.entry .meta .d {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.entry .arrow {
  color: #ccc;
  font-size: 18px;
}

/* ---------- 流程说明 ---------- */
.steps {
  counter-reset: step;
}

.steps li {
  list-style: none;
  position: relative;
  padding: 9px 0 9px 34px;
  font-size: 13px;
  color: #555;
  border-bottom: 1px dashed #f0f0f0;
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  background: #1a6fb5;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px 60px;
  background: linear-gradient(170deg, #1a6fb5 0%, #2196f3 36%, #f5f6f8 36%);
}

.login-head {
  text-align: center;
  color: #fff;
  padding: 30px 0 26px;
}

.login-head .logo {
  font-size: 40px;
  margin-bottom: 8px;
  line-height: 1;
}

/* 设置了自定义 logo：把 emoji 换成图片，按 64×64 居中显示 */
.login-head .logo.has-image {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
}

.login-head .logo.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

/* 填单页/首页标题旁的小 logo（只有配置了才显示） */
.page-header .brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  margin: 0 auto 8px;
  display: block;
}

.login-head h1 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 2px;
}

.login-head .sub {
  font-size: 12px;
  opacity: .85;
  margin-top: 4px;
}

.login-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 20px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .1);
}

.login-tip {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 14px;
}

/* 登录页底部入口链接（第一次使用 / 忘记密码 / 返回） */
.login-links {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

.login-links a {
  color: #1a6fb5;
  text-decoration: none;
}

.login-links a:active {
  opacity: .6;
}

/* ---------- 公司选择器（注册页） ---------- */
.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.selected-chips:empty {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 16px;
  background: #e3f2fd;
  color: #1a6fb5;
  font-size: 12px;
  max-width: 100%;
}

.chip .chip-main {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  background: #1a6fb5;
  color: #fff;
}

.chip .chip-x {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.6;
}

.chip .chip-x:active {
  opacity: 1;
}

.company-picker {
  margin-top: 8px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

/* 选好公司后收起列表，避免遮挡下方「手机号」等字段 */
.company-picker.collapsed {
  display: none;
}

.company-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #f2f3f5;
  cursor: pointer;
  font-size: 14px;
}

.company-item:last-child {
  border-bottom: none;
}

.company-item:active {
  background: #f5f6f8;
}

.company-item.active {
  background: #e3f2fd;
  color: #1a6fb5;
}

.company-item .ci-main {
  font-size: 14px;
  font-weight: 500;
}

.company-item .ci-sub {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.company-item.active .ci-sub {
  color: #5b9bd5;
}

.company-item .ci-check {
  font-size: 15px;
  color: #1a6fb5;
  opacity: 0;
  flex-shrink: 0;
}

.company-item.active .ci-check {
  opacity: 1;
}

.company-empty {
  padding: 22px 12px;
  text-align: center;
  font-size: 13px;
  color: #999;
  line-height: 1.8;
}

.field-hint {
  font-size: 12px;
  color: #999;
  line-height: 1.7;
  margin-top: 6px;
}

/* ---------- 车牌点选 ---------- */
.plate-input-wrap {
  position: relative;
}

/* 车牌下方的两个操作按钮（点选 / 拍照识别） */
.plate-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.plate-action-btn {
  flex: 1;
  height: 40px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 14px;
  font-family: inherit;
  line-height: 38px;
}

.plate-action-btn:active {
  background: #f0f2f5;
}

.plate-action-btn[disabled] {
  opacity: .6;
}

.plate-action-primary {
  border-color: #1a6fb5;
  color: #1a6fb5;
  background: #f4f9fe;
  font-weight: 600;
}

.plate-pick-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #1a6fb5;
  border-radius: 6px;
  background: #f4f9fe;
  color: #1a6fb5;
  font-size: 13px;
  font-family: inherit;
  line-height: 30px;
}

.plate-pick-btn:active {
  background: #e3f0fb;
}

.plate-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, .35);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.plate-mask.show {
  display: flex;
}

.plate-panel {
  width: 100%;
  max-width: 640px;
  background: #eef1f5;
  border-radius: 14px 14px 0 0;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  animation: plateUp .18s ease-out;
}

@keyframes plateUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.plate-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 8px;
}

.plate-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.plate-done {
  border: 0;
  background: #1a6fb5;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  padding: 6px 18px;
  border-radius: 6px;
}

.plate-preview {
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.plate-preview-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #1a6fb5;
}

.plate-preview-text.empty {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: #bbb;
}

.plate-keys {
  display: grid;
  gap: 6px;
}

.plate-keys-prov {
  grid-template-columns: repeat(8, 1fr);
}

.plate-keys-char {
  display: block;
}

/* hidden 属性会被 .plate-keys 的 display:grid 覆盖，必须显式声明 */
.plate-keys[hidden],
.plate-digits[hidden],
.plate-letters[hidden] {
  display: none !important;
}

.plate-digits {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}

.plate-letters {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.plate-key {
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 16px;
  font-family: inherit;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.plate-key:active {
  background: #d9e6f5;
  color: #1a6fb5;
}

.plate-key.is-blank {
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.plate-panel-foot {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.plate-foot-btn {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: #dfe4ea;
  color: #444;
  font-size: 14px;
  font-family: inherit;
}

.plate-foot-btn:active {
  background: #cfd6de;
}

/* ---------- 桌面端适配 ---------- */
@media (min-width: 641px) {
  body {
    box-shadow: 0 0 40px rgba(0, 0, 0, .08);
  }
}

/* ---------- 历史填报下拉（点输入框弹出以前填过的内容） ---------- */
.field { position: relative; }

.history-drop {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  max-height: 240px;
  overflow-y: auto;
}

.history-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f2f4f7;
  cursor: pointer;
}

.history-item:last-child { border-bottom: none; }
.history-item:active { background: #f4f9fe; }

.hi-main {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hi-sub {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 分享给访客 ---------- */
.share-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.share-row .btn {
  flex: 1;
  margin-bottom: 0;
  font-size: 14px;
}

.share-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.share-panel {
  width: 100%;
  max-width: 330px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  /* 内容多时只滚内容区，底部按钮永远可见 ——
     以前整个面板滚动，手机上按钮会被挤到屏幕外，要往上拖才点得到 */
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

/* 可滚动的上半部分 */
.share-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 18px 8px;
}

/* 固定在下方的按钮区 */
.share-footer {
  flex-shrink: 0;
  padding: 10px 18px 16px;
  border-top: 1px solid #f0f2f5;
  background: #fff;
}

.share-footer .share-actions {
  margin-top: 0;
}

.share-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

.share-sub {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  line-height: 1.7;
  text-align: left;
}

.share-qr {
  width: 148px;
  height: 148px;
  margin: 12px auto 6px;
  display: block;
  border-radius: 8px;
}

.share-link {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e4ea;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12px;
  color: #555;
  background: #fafbfc;
  margin-top: 4px;
  /* 链接很长，input 会被截成「share.html?」看着像没生成完，
     改成允许换行的文本块，完整显示；用户可长按选中复制 */
  text-align: left;
  line-height: 1.6;
  word-break: break-all;
  user-select: text;
  -webkit-user-select: text;
  word-break: break-all;
  font-family: inherit;
  -webkit-user-select: all;
  user-select: all;
}

.share-warn {
  font-size: 12px;
  color: #c62828;
  background: #fdecec;
  border-radius: 6px;
  padding: 8px 10px;
  margin-top: 10px;
  text-align: left;
  line-height: 1.6;
}

.share-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.share-actions button {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 21px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.share-btn-plain {
  background: #f2f4f7;
  color: #555;
}

.share-btn-primary {
  background: #1a6fb5;
  color: #fff;
  font-weight: 600;
}

/* ---------- 填单页：分享引导文案 ---------- */
/* 目的：让填报人知道「信息不全也能先提交，之后发给访客自己补」，
   减少现场一个个问车牌、问身份证的情况。分享关闭时由 JS 隐藏。 */
.share-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 12px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef6ff;
  border-left: 4px solid #4a9eff;
  color: #1a5490;
  font-size: 12.5px;
  line-height: 1.75;
}

.share-tip .tip-ico {
  flex-shrink: 0;
  line-height: 1.6;
}

/* ⚠️ display:flex 会盖掉浏览器对 [hidden] 的 display:none，
   不写这一条，管理员关闭分享后顶部引导仍然显示（车牌面板踩过同样的坑） */
.share-tip[hidden] {
  display: none;
}

/* 兼容旧写法（带小标题的引导条） */
.share-tip b {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  color: #14507f;
}

.card-hint {
  margin: -2px 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f7fbff;
  font-size: 12px;
  color: #5b7fa6;
  line-height: 1.7;
}

/* ---------- 页面工具条：返回上一页 / 回首页 ---------- */
/* 用 SVG 而不是 emoji：emoji 在部分安卓和低版本微信里会显示成方块 */
.page-tools {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 150;
  display: flex;
  gap: 8px;
}

.pt-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #e0e4ea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.pt-btn:active {
  background: #eef2f6;
}

/* ---------- 引导单预览弹层 ---------- */
.guide-sheet {
  width: 100%;
  max-width: 400px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.sheet-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f4;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.sheet-close {
  border: none;
  background: #f2f4f7;
  color: #555;
  font-size: 13px;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.sheet-body {
  overflow-y: auto;
  padding-bottom: 14px;
}

.sheet-note {
  margin: 10px 16px 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fff8e1;
  color: #8a6d00;
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- 资料页：花名册预填提示 ---------- */
.roster-tip {
  margin: 12px 12px 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #e8f5e9;
  border-left: 4px solid #43a047;
  color: #256b2e;
  font-size: 12.5px;
  line-height: 1.75;
}

.roster-tip b {
  color: #1b5e20;
}

/* display:flex/grid 会盖掉 [hidden]，这里保持块级所以无需额外处理，
   但仍显式声明一次，避免以后改成 flex 时踩坑 */
.roster-tip[hidden] {
  display: none;
}

/* ---------- 详情页：分享弹层的微信转发引导 ---------- */
.share-wx-tip {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f0f9f2;
  border-left: 3px solid #43a047;
  color: #2e7d32;
  font-size: 12.5px;
  line-height: 1.75;
  text-align: left;
}

/* 通栏主按钮：转发微信放在次要按钮下方，拇指最容易够到 */
.share-btn-full {
  width: 100%;
  height: 44px;
  margin-top: 10px;
  border: none;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.share-btn-full:active {
  opacity: .85;
}

/* 二维码下方：微信里最顺的转发方式其实是长按存图发图 */
.share-qr-tip {
  font-size: 11.5px;
  color: #8a94a6;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* ---------------- 资料不完整提醒 ---------------- */
.info-tip-mask {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(15, 23, 42, .42);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.info-tip-mask.show { display: flex; }

.info-tip-panel {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
  animation: infoTipIn .18s ease-out;
}
@keyframes infoTipIn {
  from { transform: translateY(10px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.info-tip-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff4d6;
  color: #d97b00;
  font-size: 22px;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
}
.info-tip-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2d3d;
  text-align: center;
  margin-bottom: 10px;
}
.info-tip-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.info-tip-list li {
  position: relative;
  padding: 7px 10px 7px 28px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: #fff9ed;
  color: #7a5200;
  font-size: 13px;
  line-height: 1.55;
}
.info-tip-list li::before {
  content: "•";
  position: absolute;
  left: 12px;
  color: #e09a1a;
  font-weight: 700;
}
.info-tip-note {
  font-size: 12px;
  line-height: 1.65;
  color: #8a94a6;
  text-align: center;
  margin-bottom: 14px;
}
.info-tip-share {
  padding: 9px 11px;
  margin: -2px 0 14px;
  border-radius: 8px;
  background: #eaf4ff;
  border: 1px solid #cfe6ff;
  color: #1a6fb5;
  font-size: 12px;
  line-height: 1.65;
}
.info-tip-share[hidden] { display: none !important; }
.info-tip-actions {
  display: flex;
  gap: 10px;
}
.info-tip-btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
}
.info-tip-btn.secondary {
  background: #f2f5f9;
  color: #5f6f84;
  border: 1px solid #e1e7ef;
}
.info-tip-btn.primary {
  background: #1a6fb5;
  color: #fff;
}
.info-tip-btn:active { opacity: .85; }
