:root {
  --ink: #222222;
  --muted: #666666;
  --line: #d8c096;
  --line-soft: #eadcc4;
  --wash: #f6f6f4;
  --gold: #c6a66f;
  --danger: #a43a2f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.desktop-page main {
  overflow: hidden;
}

.desktop-hero {
  min-height: 780px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #f4f4f3;
}

.desktop-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 42vw);
  margin-left: 14vw;
  padding: 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-kicker {
  margin: 0 0 26px;
  font-size: 18px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.desktop-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 4vw, 76px);
  font-weight: 400;
}

.desktop-copy h2 {
  margin: 0 0 34px;
  font-size: clamp(32px, 3vw, 56px);
  font-weight: 400;
}

.desktop-copy > p:not(.brand-kicker) {
  margin: 0 0 48px;
  font-size: 26px;
}

.hero-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.qr-shell {
  width: 260px;
  height: 260px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
}

.qr-shell.large {
  width: 340px;
  height: 340px;
  margin: 28px auto 0;
}

.intro-section {
  padding: 86px 24px 112px;
  text-align: center;
}

.intro-section h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 3.2vw, 58px);
  font-weight: 400;
}

.intro-section p {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 38px);
}

.story-section {
  width: min(1480px, calc(100% - 120px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 96px;
  align-items: center;
}

.story-copy {
  text-align: center;
  font-size: clamp(22px, 1.65vw, 34px);
  line-height: 1.65;
}

.story-copy p {
  margin: 0 0 18px;
}

.story-section img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.steps-section {
  width: min(1120px, calc(100% - 80px));
  margin: 118px auto 0;
  padding-bottom: 72px;
}

.steps-section h2 {
  margin: 0 0 56px;
  font-size: clamp(32px, 3vw, 54px);
  font-weight: 400;
  text-align: center;
}

.timeline {
  width: min(760px, 100%);
  margin: 0 auto;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 56px;
  align-items: center;
  min-height: 112px;
}

.step::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.step:first-child::before {
  top: 50%;
}

.step:last-child::before {
  bottom: 50%;
}

.step span {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #ecdcc1, #caaa78);
  font-size: 44px;
  font-weight: 300;
}

.step p {
  margin: 0;
  font-size: 24px;
  line-height: 1.55;
}

.scan-section {
  padding: 76px 24px 120px;
  text-align: center;
}

.scan-section h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 72px);
  font-weight: 400;
}

.scan-section p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.mobile-page {
  background: #ffffff;
}

.mobile-shell {
  min-height: 100vh;
}

.mobile-nav {
  height: 56px;
  display: grid;
  grid-template-columns: 40px 40px 1fr 40px 40px;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.mobile-logo {
  justify-self: center;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: 1px;
}

.mobile-hero-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center right;
}

.mobile-hero {
  padding: 48px 24px 40px;
  text-align: center;
}

.mobile-hero h1 {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
}

.mobile-hero h2 {
  margin: 0 0 20px;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  line-height: 1.35;
  font-weight: 400;
}

.mobile-hero p {
  margin: 0 0 36px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  line-height: 1.45;
}

.outline-cta {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 2px solid var(--gold);
  background: #ffffff;
  color: var(--ink);
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  line-height: 1.45;
  cursor: pointer;
}

.mobile-story {
  border-top: 2px solid var(--line);
  padding: 56px 24px 0;
  text-align: center;
}

.mobile-story p {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  line-height: 1.65;
}

.mobile-story img {
  width: calc(100% + 48px);
  max-width: none;
  margin: 40px -24px 0;
  height: 280px;
  object-fit: cover;
}

.mobile-steps {
  padding: 56px 24px 60px;
}

.mobile-steps h2 {
  margin: 0 0 36px;
  font-size: clamp(1.15rem, 3.5vw, 1.6rem);
  line-height: 1.35;
  text-align: center;
  font-weight: 500;
}

.mobile-steps .step {
  grid-template-columns: 54px 1fr;
  column-gap: 20px;
  min-height: 80px;
}

.mobile-steps .step::before {
  left: 27px;
}

.mobile-steps .step span {
  width: 54px;
  height: 54px;
  font-size: 28px;
}

.mobile-steps .step p {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  line-height: 1.5;
}

.bottom-cta {
  padding: 0 24px 48px;
}

.capture-app {
  display: none;
  min-height: 100vh;
  background: #fbfbfa;
}

.capture-app.active {
  display: block;
}

.capture-header {
  padding: 24px 18px 18px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  border-bottom: 1px solid #ece8df;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 6;
}

.capture-header h1 {
  margin: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.capture-main {
  padding: 22px 18px 40px;
}

.angle-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.angle-tab {
  min-height: 42px;
  border: 1px solid #ddd2be;
  background: #ffffff;
  color: var(--muted);
  font-size: 14px;
}

.angle-tab.active {
  border-color: var(--gold);
  color: var(--ink);
  background: #f7f0e4;
}

.camera-panel {
  overflow: hidden;
  background: #111111;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  position: relative;
}

/* 视频填满面板，前置摄像头镜像翻转 */
.camera-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);           /* 前置摄像头镜像 */
  -webkit-transform: scaleX(-1);
  background: #111111;
}

/* 预览图片同样填满，不镜像（拍照时已从视频流取原始帧） */
.preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;                    /* 默认隐藏，JS 控制显示 */
}
.preview-image.visible {
  display: block;
}

.camera-placeholder {
  padding: 24px;
  color: #ffffff;
  text-align: center;
  line-height: 1.6;
  z-index: 1;
}

.face-guide {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50% / 42%;
  pointer-events: none;
}

.capture-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.primary-btn,
.secondary-btn {
  min-height: 52px;
  border: 1px solid var(--gold);
  cursor: pointer;
}

.primary-btn {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.secondary-btn {
  background: #ffffff;
  color: var(--ink);
}

.hidden-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.thumb {
  min-height: 96px;
  border: 1px solid #ded6c8;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb span {
  color: var(--muted);
  font-size: 13px;
}

.submit-row {
  margin-top: 22px;
}

.submit-row .primary-btn {
  width: 100%;
  min-height: 56px;
  font-size: 17px;
}

.submit-row .primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.status-box {
  display: none;
  margin-top: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5ddcd;
  line-height: 1.6;
  color: var(--muted);
}

.status-box.active {
  display: block;
}

.report-view {
  display: none;
  min-height: 100vh;
  background: #ffffff;
}

.report-view.active {
  display: block;
}

.report-hero {
  padding: 46px 24px 32px;
  text-align: center;
  border-bottom: 1px solid #eee7dc;
}

.score-number {
  margin: 22px auto 12px;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--gold);
  font-size: 46px;
}

.report-grid {
  padding: 24px;
  display: grid;
  gap: 12px;
}

.metric-card {
  padding: 18px;
  border: 1px solid #eadfcb;
}

.metric-card strong {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.bar {
  height: 7px;
  background: #eeeae3;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--gold);
}

.report-text {
  padding: 8px 24px 48px;
  line-height: 1.8;
  font-size: 16px;
}

.report-text h2 {
  margin: 26px 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.report-text p {
  margin: 0 0 14px;
}

.error-text {
  color: var(--danger);
}

@media (max-width: 900px) {
  .desktop-hero {
    min-height: 660px;
  }

  .desktop-copy {
    width: min(520px, calc(100% - 56px));
    margin: 0 auto;
    padding: 72px 28px;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
  }

  .hero-face {
    height: 100%;
    object-position: center right;
  }

  .story-section {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .steps-section {
    width: calc(100% - 48px);
  }

  .step {
    column-gap: 28px;
  }
}

@media (max-width: 520px) {
  .mobile-nav {
    height: 52px;
    grid-template-columns: 36px 36px 1fr 36px 36px;
    padding: 0 8px;
  }

  .mobile-logo {
    font-size: 19px;
  }

  .mobile-hero-img {
    height: 200px;
  }
}

/* =============================================
   登录/注册弹窗
   ============================================= */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-overlay.active {
  display: flex;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: authFadeIn 0.25s ease;
}

@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: #8e8e93;
  cursor: pointer;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #f2f2f7;
}

.auth-tab {
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #8e8e93;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.auth-tab.active {
  color: #222222;
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold, #c6a66f);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.auth-form.active {
  display: flex;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field span {
  font-size: 13px;
  color: #48484a;
  font-weight: 500;
}

.auth-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid #dcdce0;
  border-radius: 10px;
  font-size: 15px;
  color: #1c1c1e;
  background: #fbfbfa;
  outline: none;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  border-color: var(--gold, #c6a66f);
}

.auth-field-code {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.auth-send-code {
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--gold, #c6a66f);
  background: #ffffff;
  color: var(--gold, #c6a66f);
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.auth-send-code:active {
  background: var(--gold, #c6a66f);
  color: #ffffff;
}

.auth-send-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-submit {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #1c1c1e;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}

.auth-submit:active {
  opacity: 0.75;
}

.auth-error {
  font-size: 12px;
  color: #a43a2f;
  min-height: 18px;
  margin: 0;
}

.auth-skip {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #8e8e93;
  cursor: pointer;
  user-select: none;
}

.auth-skip:active {
  color: #48484a;
}

/* =============================================
   Camera Tip Bar — 底部状态提示
   ============================================= */
.camera-tip {
  position: absolute;
  bottom: 60px;
  left: 16px;
  right: 16px;
  z-index: 3;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  transition: opacity 0.3s, transform 0.3s;
}

/* =============================================
   Quality Indicators Bar — 左侧竖排
   ============================================= */
.indicators-bar {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
  transition: opacity 0.3s;
}

.indicator-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 13px;
  color: #999;
  transition: color 0.35s, background 0.35s, box-shadow 0.35s;
  white-space: nowrap;
}

.indicator-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transition: background 0.35s, box-shadow 0.35s;
}

/* Status colors */
.indicator-item.status-gray   { color: #888; }
.indicator-item.status-red    { color: #ff4d4f; box-shadow: 0 0 8px rgba(255,77,79,0.3); }
.indicator-item.status-yellow { color: #f5a623; box-shadow: 0 0 8px rgba(245,166,35,0.3); }
.indicator-item.status-green  { color: #52c41a; box-shadow: 0 0 8px rgba(82,196,26,0.4); }

/* =============================================
   Countdown Overlay — 居中大字
   ============================================= */
.countdown-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.countdown-overlay.active {
  display: flex;
}

.countdown-text {
  font-size: 56px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
  text-align: center;
  line-height: 1;
}

.countdown-text.urgent {
  animation: countPulse 0.45s ease-in-out;
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.8; }
}

/* =============================================
   Face guide — 匹配面部时的状态
   ============================================= */
.face-guide {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50% / 42%;
  pointer-events: none;
  transition: border-color 0.5s, border-width 0.5s, box-shadow 0.5s;
}

.face-guide.good {
  border-color: rgba(255, 255, 255, 0.82);
  border-width: 2.5px;
}

.face-guide.ready {
  border-color: rgba(82, 196, 26, 0.7);
  border-width: 3px;
  box-shadow: 0 0 24px rgba(82, 196, 26, 0.25);
}

/* =============================================
   Status box — 拍摄完成提示
   ============================================= */
.status-box {
  display: none;
  margin-top: 18px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #e5ddcd;
  border-radius: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.status-box.active {
  display: block;
}

/* =============================================
   移除不再使用的旧样式覆盖
   ============================================= */
.angle-tabs,
.capture-actions,
.thumbs,
.submit-row {
  display: none;
}

/* =============================================
   Reference-style auto capture page
   ============================================= */
.capture-app {
  background: #222222;
  color: #ffffff;
  min-height: 100vh;
}

.capture-app .capture-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 96px;
  padding: 26px 18px 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
  color: #ffffff;
}

.capture-app .capture-header .nav-icon {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.capture-app .capture-header h1 {
  color: #ffffff;
  font-size: 25px;
  font-weight: 400;
}

.capture-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.capture-app .capture-main {
  min-height: 100vh;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.capture-notice {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 128px 20px 44px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28)),
    url("/lanjiao-static/picture/b9af8d33-77f7-46d7-a887-b90cc354f8a4.png") center / cover no-repeat;
}

.capture-notice[hidden],
.capture-scene[hidden] {
  display: none;
}

.notice-card {
  width: min(100%, 382px);
  background: #ffffff;
  color: #111111;
  padding: 32px 28px 28px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
}

.notice-card p {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 500;
  color: #161616;
}

.notice-items {
  display: grid;
  gap: 22px;
}

.notice-items div {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
}

.notice-items span {
  color: #222222;
  font-size: 25px;
  line-height: 1;
  text-align: center;
}

.notice-items strong {
  font-size: 18px;
  line-height: 1.42;
  font-weight: 600;
  color: #101010;
}

.notice-start {
  width: 100%;
  min-height: 60px;
  margin-top: 36px;
  border: 0;
  border-radius: 999px;
  background: #09b596;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 4px;
}

.notice-loading {
  margin: 24px 0 0;
  text-align: center;
  font-size: 14px;
  color: #8e8e93;
  animation: loadPulse 1.2s ease-in-out infinite;
}

@keyframes loadPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.capture-scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111111;
}

.quality-row {
  position: fixed;
  left: 14px;
  right: 14px;
  top: 112px;
  z-index: 18;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quality-pill {
  min-height: 58px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: #ffffff;
  font-weight: 600;
}

.quality-pill span {
  font-size: 17px;
  line-height: 1;
}

.quality-pill strong {
  font-size: 18px;
  line-height: 1;
}

.quality-pill.bad {
  background: #d7424a;
}

.quality-pill.ok {
  background: #09b596;
}

.auto-panel {
  flex: 1;
  width: 100%;
  min-height: 100vh;
  aspect-ratio: auto;
  border: 0;
  background: #111111;
}

.auto-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.auto-panel .face-guide {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  width: min(75vw, 330px);
  height: min(96vw, 430px);
  max-height: 58vh;
  transform: translate(-50%, -50%);
  border: 7px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: none;
}

.progress-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: conic-gradient(#09b596 var(--capture-progress), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}

.center-tip {
  position: absolute;
  z-index: 3;
  left: 36px;
  right: 36px;
  top: 52%;
  transform: translateY(-50%);
  color: #ffffff;
  text-align: center;
  font-size: 28px;
  line-height: 1.34;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.capture-footer-note {
  position: fixed;
  z-index: 18;
  left: 18px;
  right: 18px;
  bottom: 28px;
  display: grid;
  place-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.capture-app .status-box {
  position: fixed;
  z-index: 30;
  left: 18px;
  right: 18px;
  bottom: 82px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #333333;
}
