/* 阿里人脸 — 1024×720 设计稿 */

/* 覆盖 common.css：本页禁止出现整页滚动条 */
.app > .view.view-face-aliyun:not([hidden]) {
  overflow: hidden;
}

/* 居中提示（与语音识别 .speech-save-tip 一致） */
.fal-toast-tip {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 30;
  margin: 0;
  padding: 14px 28px;
  box-sizing: border-box;
  max-width: 560px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 10px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

.fal-toast-tip[hidden] {
  display: none !important;
}

.view-face-aliyun {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: 1024px;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  box-sizing: border-box;
  /* 底图由 .app 统一铺底，避免切换页时闪白 */
  background: transparent;
  color: #ffffff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
}

.view-face-aliyun .fal-shell {
  width: 100%;
  height: 100%;
  max-width: 1024px;
  max-height: 720px;
  box-sizing: border-box;
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

/* 第一行：高 76px，距第二行 26px */
.view-face-aliyun .fal-row1 {
  position: relative;
  width: 100%;
  height: 76px;
  flex: 0 0 76px;
  margin: 0 0 26px;
  overflow: hidden;
}

.view-face-aliyun .fal-tabs-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 380px;
  height: 76px;
  flex-shrink: 0;
}

.view-face-aliyun .fal-tab-bg,
.view-face-aliyun .fal-tab-indicator-img {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.view-face-aliyun .fal-tab-bg {
  width: 380px;
  height: 76px;
  z-index: 0;
}

.view-face-aliyun .fal-tab-indicator-img {
  top: 3px;
  left: 3px;
  width: 187px;
  height: 70px;
  z-index: 1;
  transition: left 0.2s ease;
}

.view-face-aliyun .fal-tabs-wrap[data-active-tab="rec"] .fal-tab-indicator-img {
  left: 190px;
}

.view-face-aliyun .fal-tab {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 190px;
  height: 76px;
  margin: 0;
  padding: 0 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "PingFang SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 30px;
  color: #ffffff;
  text-align: center;
  font-style: normal;
  text-transform: none;
  line-height: 76px;
  box-sizing: border-box;
}

.view-face-aliyun #fal-tab-enroll {
  left: 0;
}

.view-face-aliyun #fal-tab-rec {
  left: 190px;
}

.view-face-aliyun .fal-tab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 第二行：467+15+467，左右边距 38 / 37 */
.view-face-aliyun .fal-row2.fal-stage {
  position: relative;
  display: grid;
  grid-template-columns: 467px 467px;
  column-gap: 15px;
  justify-content: space-between;
  align-content: start;
  width: 100%;
  flex: 0 0 473px;
  height: 473px;
  min-height: 0;
  padding: 0 37px 0 38px;
  box-sizing: border-box;
  overflow: hidden;
}

.view-face-aliyun .fal-col {
  width: 467px;
  height: 473px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 467px 473px;
}

.view-face-aliyun .fal-col--pad {
  padding: 20px 18px;
}

.view-face-aliyun .fal-col--pick {
  padding: 0;
  overflow: hidden;
}

/* 第三行：重新导入 + 识别步骤底栏 */
.view-face-aliyun .fal-row3 {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 37px 12px 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
}

.view-face-aliyun .fal-global-reenroll {
  flex-shrink: 0;
  align-self: flex-end;
  margin: 0;
  padding: 0;
  width: 152px;
  height: 71px;
  border: none;
  border-radius: 0;
  background: transparent url("../img/face/jiqiai-chongdaoBnt.png") no-repeat center / 152px 71px;
  color: #ffffff;
  font-family: "PingFang SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* font-weight: bold; */
  font-size: 30px;
  font-style: normal;
  text-transform: none;
  text-align: center;
  line-height: 71px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.view-face-aliyun .fal-global-reenroll:hover {
  opacity: 0.92;
}

.view-face-aliyun .fal-global-reenroll[hidden] {
  display: none !important;
}

.view-face-aliyun .fal-col--1 {
  background-image: url("../img/face/jiqiai-centerBg1.png");
}

.view-face-aliyun .fal-col--2 {
  background-image: url("../img/face/jiqiai-centerBg2.png");
}

.view-face-aliyun .fal-col h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #e8f4ff;
}

.view-face-aliyun .fal-btn-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}

.view-face-aliyun .fal-btn {
  padding: 10px 12px;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 10px;
}

.view-face-aliyun .fal-btn:hover {
  background: #eee;
}

/* 录入 idle：左侧切图按钮 */
.view-face-aliyun .fal-enroll-left {
  padding: 32px 0 0 38px;
  box-sizing: border-box;
}

.view-face-aliyun .fal-enroll-luru-tit {
  display: block;
  width: 213px;
  height: 65px;
  margin: 0 0 16px;
}

.view-face-aliyun .fal-enroll-shibie-tit {
  width: 313px;
}

.view-face-aliyun .fal-img-btn {
  display: block;
  margin: 0 0 30px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.view-face-aliyun .fal-img-btn:focus,
.view-face-aliyun .fal-img-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.view-face-aliyun .fal-img-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.view-face-aliyun .fal-img-btn:last-child {
  margin-bottom: 0;
}

.view-face-aliyun .fal-img-btn img {
  display: block;
  width: 391px;
  height: 109px;
  pointer-events: none;
  -webkit-user-drag: none;
}

.view-face-aliyun .fal-img-btn:hover {
  opacity: 0.92;
}

/* 录入 idle：右侧素材选择 3×2 */
.view-face-aliyun .fal-enroll-right {
  padding-top: 29px;
  box-sizing: border-box;
}

.view-face-aliyun .fal-enroll-xuanze-tit {
  display: block;
  width: 424px;
  height: 70px;
  margin: 0 21px 23px 22px;
}

.view-face-aliyun .fal-enroll-samples-grid {
  display: grid;
  grid-template-columns: repeat(3, 98px);
  column-gap: 27px;
  row-gap: 27px;
  padding-left: 60px;
  box-sizing: border-box;
}

.view-face-aliyun .fal-enroll-sample-btn {
  display: block;
  width: 98px;
  height: 134px;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.view-face-aliyun .fal-enroll-sample-btn:hover {
  border-color: rgba(120, 200, 255, 0.85);
}

.view-face-aliyun .fal-enroll-sample-img {
  display: block;
  width: 98px;
  height: 134px;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* 录入：扫描中左侧 loading */
.view-face-aliyun .fal-col--scan-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.view-face-aliyun .fal-enroll-scan-left {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.view-face-aliyun .fal-enroll-scan-loader {
  display: block;
  width: 122px;
  height: 122px;
}

/* 录入：右侧扫描框 + 照片 */
.view-face-aliyun .fal-enroll-photo-stage {
  position: relative;
  width: 467px;
  height: 473px;
  box-sizing: border-box;
  overflow: hidden;
}

.view-face-aliyun .fal-enroll-scan-frame {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 420px;
  height: 424px;
  pointer-events: none;
  z-index: 2;
  -webkit-user-drag: none;
}

.view-face-aliyun .fal-enroll-photo-stage.is-done .fal-enroll-scan-frame {
  display: none;
}

.view-face-aliyun .fal-enroll-photo-wrap {
  position: absolute;
  top: 25px;
  left: 25px;
  right: 22px;
  bottom: 24px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}

.view-face-aliyun .fal-enroll-photo-inner {
  position: relative;
  flex-shrink: 0;
}

.view-face-aliyun .fal-enroll-photo {
  display: block;
  max-width: 389px;
  max-height: 389px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.view-face-aliyun .fal-enroll-photo-stage .fal-landmark-canvas {
  pointer-events: none;
}

/* 录入完成：左侧特征向量 */
.view-face-aliyun .fal-enroll-done-left {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 473px;
  box-sizing: border-box;
  padding: 29px 0 19px;
  overflow: hidden;
}

.view-face-aliyun .fal-enroll-tezheng-tit {
  display: block;
  width: 274px;
  height: 70px;
  flex-shrink: 0;
  margin: 0 auto 9px;
}

/* 特征点方框：左侧科技脸底图 151×469，贴左、贴上下 */
.view-face-aliyun .fal-enroll-kp-box {
  position: relative;
  flex: 1 1 0;
  min-height: 120px;
  height: calc(473px - 29px - 19px - 49px - 9px);
  overflow: hidden;
}

.view-face-aliyun .fal-enroll-kp-keji {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 151px;
  height: 469px;
  max-height: 100%;
  object-fit: fill;
  object-position: left top;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  z-index: 0;
}

.view-face-aliyun .fal-enroll-kp-box .fal-enroll-kp-list {
  position: relative;
  z-index: 1;
  flex: none;
  height: 100%;
}

.view-face-aliyun .fal-enroll-kp-list {
  flex: 1 1 0;
  height: calc(473px - 29px - 19px - 49px - 9px);
  min-height: 120px;
  padding-left: 58px;
  padding-right: 60px;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 164px 164px;
  column-gap: 21px;
  row-gap: 1px;
  align-content: start;
  font-family: "PingFang SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #9cc5ff;
  text-align: left;
  font-style: normal;
  line-height: 1.45;
  scrollbar-width: thin;
  scrollbar-color: rgba(156, 197, 255, 0.65) transparent;
}

.view-face-aliyun .fal-enroll-kp-list::-webkit-scrollbar {
  width: 1px;
}

.view-face-aliyun .fal-enroll-kp-list::-webkit-scrollbar-track {
  background: transparent;
}

.view-face-aliyun .fal-enroll-kp-list::-webkit-scrollbar-thumb {
  background: rgba(156, 197, 255, 0.65);
  border-radius: 1px;
}

.view-face-aliyun .fal-kp-enroll {
  display: block;
  width: 164px;
  /* max-width: 164px; */
  height: 34px;
  font-size: 21px;
  min-width: 0;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-radius: 3px;
  padding: 0 2px;
  margin: 0;
  transition: background 0.12s ease;
}

.view-face-aliyun .fal-kp-enroll:hover {
  background: rgba(156, 197, 255, 0.2);
}

.view-face-aliyun .fal-kp-enroll.is-picked {
  color: #ffffff;
  background: linear-gradient(90deg, #1d5caf 0%, #102a63 100%);
  box-shadow: none;
  border: none;
}

.view-face-aliyun .fal-kp-enroll--static {
  cursor: default;
  pointer-events: none;
}

/* 识别第 4 步：左右比对栏（科技脸底图 + 照片 + 特征向量 + 特征点） */
.view-face-aliyun .fal-rec-cmp-col {
  position: relative;
  height: 100%;
  min-height: 473px;
  box-sizing: border-box;
  overflow: hidden;
}

.view-face-aliyun .fal-rec-cmp-keji {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 151px;
  height: 469px;
  max-height: 100%;
  object-fit: fill;
  object-position: left top;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  z-index: 0;
}

.view-face-aliyun .fal-rec-cmp-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 473px;
  box-sizing: border-box;
  padding: 22px 0 25px;
  overflow: hidden;
}

.view-face-aliyun .fal-rec-cmp-photo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 134px;
  margin: 0 auto;
  width: 100%;
}

.view-face-aliyun .fal-rec-cmp-photo-inner {
  position: relative;
  flex-shrink: 0;
}

.view-face-aliyun .fal-rec-cmp-photo .fal-enroll-photo {
  display: block;
  max-height: 134px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.view-face-aliyun .fal-rec-cmp-tezheng {
  display: block;
  width: 274px;
  height: 70px;
  flex-shrink: 0;
  margin: 17px auto 7px;
}

.view-face-aliyun .fal-rec-cmp-kp-box {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.view-face-aliyun .fal-rec-cmp-kp-box .fal-enroll-kp-list.fal-rec-cmp-kp-list {
  position: relative;
  z-index: 1;
  flex: none;
  height: 100%;
  min-height: 0;
}

.view-face-aliyun .fal-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.view-face-aliyun .fal-sample {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}

.view-face-aliyun .fal-sample:hover {
  border-color: #3498db;
}

.view-face-aliyun .fal-visual {
  position: relative;
  width: 100%;
  min-height: 120px;
}

.view-face-aliyun .fal-preview-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 6px;
}

.view-face-aliyun .fal-col .fal-pre,
.view-face-aliyun .fal-col .fal-visual {
  max-width: 100%;
  box-sizing: border-box;
}

.view-face-aliyun .fal-landmark-canvas {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.view-face-aliyun .fal-pre {
  margin: 8px 0 0;
  padding: 8px;
  background: #f7f7f7;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow: auto;
}

.view-face-aliyun .fal-kp-hint {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
}

.view-face-aliyun .fal-pre.fal-pre-kp .fal-kp {
  cursor: pointer;
  border-radius: 3px;
  padding: 1px 3px;
  margin: 0 1px;
  display: inline;
  transition: background 0.12s ease;
}

.view-face-aliyun .fal-pre.fal-pre-kp .fal-kp:hover {
  background: rgba(44, 90, 160, 0.14);
}

.view-face-aliyun .fal-pre.fal-pre-kp .fal-kp.is-picked {
  color: #ffffff;
  background: linear-gradient(90deg, #1d5caf 0%, #102a63 100%);
  box-shadow: none;
  border: none;
}

.view-face-aliyun .fal-muted,
.view-face-aliyun .fal-kp-hint {
  color: rgba(220, 232, 255, 0.78);
  font-size: 14px;
}

/* 比对结果弹窗 + 全屏遮罩（勿用 inset / 勿只靠 flex：旧版 Android WebView 会缩在左上角） */
.view-face-aliyun .fal-compare-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  z-index: 90;
  display: block;
  background: rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
}

.view-face-aliyun .fal-compare-mask[hidden] {
  display: none !important;
}

.view-face-aliyun .fal-compare-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  width: 467px;
  height: 297px;
  box-sizing: border-box;
  background: transparent url("../img/face/jiqiai-biduiBg.png") no-repeat center / 467px 297px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 29px 0 0;
  text-align: center;
}

.view-face-aliyun .fal-compare-title {
  display: block;
  width: 234px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
  -webkit-user-drag: none;
}

.view-face-aliyun .fal-compare-pct {
  margin: 2px 0 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: bold;
  font-size: 40px;
  line-height: 1.2;
  color: #ffffff;
}

.view-face-aliyun .fal-compare-desc {
  margin: 10px 0 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: #cccccc;
}

.view-face-aliyun .fal-compare-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 22px;
  flex-shrink: 0;
}

.view-face-aliyun .fal-compare-btn {
  width: 187px;
  height: 70px;
  padding: 0;
  border: none;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 187px 70px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 30px;
  line-height: 70px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-sizing: border-box;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.view-face-aliyun .fal-compare-btn:focus,
.view-face-aliyun .fal-compare-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.view-face-aliyun .fal-compare-btn:active {
  transform: scale(0.95);
  opacity: 0.88;
}

.view-face-aliyun .fal-compare-btn--cancel {
  font-weight: 400;
  background-image: url("../img/face/jiqiai-quxiao.png");
}

.view-face-aliyun .fal-compare-btn--restart {
  font-weight: bold;
  background-image: url("../img/face/jqiai-chongkai.png");
}

.view-face-aliyun .fal-compare-btn:hover {
  opacity: 0.92;
}

/* 识别底栏：步骤条左、按钮右，末步与按钮固定间距 57px */
.view-face-aliyun .fal-rec-bottom {
  display: grid;
  grid-template-columns: auto 57px minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
}

.view-face-aliyun .fal-rec-bottom:has(#fal-rec-stepbar:not([hidden])),
.view-face-aliyun .fal-rec-bottom:has(#fal-footer:not([hidden])) {
  min-height: 72px;
}

.view-face-aliyun .fal-rec-bottom:not(:has(#fal-rec-stepbar:not([hidden]))):not(:has(#fal-footer:not([hidden]))) {
  display: none;
}

.view-face-aliyun .fal-footer {
  grid-column: 4;
  width: auto;
  min-height: 0;
  margin: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  overflow: visible;
  box-sizing: border-box;
}

.view-face-aliyun .fal-footer[hidden] {
  display: none !important;
}

/* 人脸识别步骤条（左侧，首步距屏幕左 38px 由 fal-row3 padding-left 保证） */
.view-face-aliyun .fal-rec-stepbar {
  grid-column: 1;
  width: auto;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  box-sizing: border-box;
}

.view-face-aliyun .fal-rec-stepbar[hidden] {
  display: none !important;
}

.view-face-aliyun .fal-rec-stepbar[hidden] ~ .fal-footer {
  grid-column: 1 / -1;
  justify-self: end;
}

/* 识别步骤条：上行球+箭头，下行文案；箭头仅与 50px 球垂直居中 */
.view-face-aliyun .fal-stepper {
  --fal-step-ball-size: 50px;
  --fal-step-arrow-size: 74px;
  --fal-step-arrow-gap: 5px;
  display: inline-grid;
  grid-template-columns:
    var(--fal-step-ball-size)
    calc(var(--fal-step-arrow-size) + var(--fal-step-arrow-gap) * 2)
    var(--fal-step-ball-size)
    calc(var(--fal-step-arrow-size) + var(--fal-step-arrow-gap) * 2)
    var(--fal-step-ball-size)
    calc(var(--fal-step-arrow-size) + var(--fal-step-arrow-gap) * 2)
    var(--fal-step-ball-size);
  grid-template-rows: var(--fal-step-ball-size) auto;
  row-gap: 2px;
  align-items: center;
  justify-items: center;
}

.view-face-aliyun .fal-step-unit {
  display: contents;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.view-face-aliyun .fal-step-unit:focus-visible .fal-step-ball {
  outline: 2px solid #0a59d3;
  outline-offset: 2px;
}

.view-face-aliyun .fal-step-unit .fal-step-ball,
.view-face-aliyun .fal-step-unit .fal-step-label {
  cursor: pointer;
}

.view-face-aliyun .fal-step-unit:hover .fal-step-ball {
  filter: brightness(1.08);
}

.view-face-aliyun .fal-step-unit.is-locked,
.view-face-aliyun .fal-step-unit:disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}

.view-face-aliyun .fal-step-unit.is-locked:hover .fal-step-ball,
.view-face-aliyun .fal-step-unit:disabled:hover .fal-step-ball {
  filter: none;
}

.view-face-aliyun .fal-step-ball {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
}

.view-face-aliyun .fal-step-unit.is-current .fal-step-ball {
  background-color: #0a59d3;
  color: #ffffff;
  border: none;
}

.view-face-aliyun .fal-step-unit.is-done .fal-step-ball {
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.view-face-aliyun .fal-step-unit.is-pending .fal-step-ball {
  background-color: #285699;
  color: #999999;
  border: none;
}

.view-face-aliyun .fal-step-label {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
}

.view-face-aliyun .fal-step-unit.is-pending .fal-step-label {
  color: #999999;
}

.view-face-aliyun .fal-step-arrow {
  display: block;
  width: var(--fal-step-arrow-size);
  height: 11px;
  margin: 0 var(--fal-step-arrow-gap);
  align-self: center;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.view-face-aliyun .fal-footer-actions {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
}

.view-face-aliyun .fal-footer .fal-btn,
.view-face-aliyun .face-camera-actions .fal-btn {
  width: 152px;
  height: 71px;
  min-width: 152px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent url("../img/face/jiqiai-chongdaoBnt.png") no-repeat center / 152px 71px;
  color: #ffffff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  line-height: 71px;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.view-face-aliyun .fal-footer .fal-btn:focus,
.view-face-aliyun .fal-footer .fal-btn:focus-visible,
.view-face-aliyun .face-camera-actions .fal-btn:focus,
.view-face-aliyun .face-camera-actions .fal-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
}

.view-face-aliyun .fal-footer .fal-btn:active:not(:disabled),
.view-face-aliyun .face-camera-actions .fal-btn:active:not(:disabled) {
  transform: scale(0.95);
  opacity: 0.88;
}

.view-face-aliyun .fal-footer-actions .fal-btn:first-child:not(:last-child),
.view-face-aliyun .face-camera-actions .fal-btn:first-child:not(:last-child) {
  background-image: url("../img/face/jiqiai-chongdaoBnt1.png");
}

.view-face-aliyun .fal-footer .fal-btn:hover:not(:disabled),
.view-face-aliyun .face-camera-actions .fal-btn:hover:not(:disabled) {
  opacity: 0.92;
}

.view-face-aliyun .fal-footer .fal-btn:disabled,
.view-face-aliyun .face-camera-actions .fal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 摄像头浮层（与旧 face 页行为一致） */
.view-face-aliyun .face-camera-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  z-index: 80;
  display: none;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.75);
}

.view-face-aliyun .face-camera-overlay.is-open {
  display: block;
}

.view-face-aliyun .face-camera-overlay-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 96%;
  max-width: 920px;
  padding: 24px;
  box-sizing: border-box;
}

.view-face-aliyun .face-camera-overlay video {
  display: block;
  width: 100%;
  max-width: 920px;
  max-height: 396px;
  border-radius: 8px;
  background: #000;
}

.view-face-aliyun .face-camera-actions {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}
