:root {
  color-scheme: light;
  --phone-width: min(100vw, 430px);
  --phone-height: 100vh;
  --wechat-green: #07c160;
  --wechat-bg: #ededed;
  --huafa-blue: #006fd6;
  --huafa-soft: #eaf7ff;
  --ink: #111318;
  --muted: #6f7580;
}

@supports (height: 100svh) {
  :root {
    --phone-height: 100svh;
  }
}

@supports (height: 100dvh) {
  :root {
    --phone-height: 100dvh;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #0d0f14;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: var(--phone-width);
  min-height: var(--phone-height);
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.screen {
  min-height: var(--phone-height);
  position: relative;
  overflow: hidden;
}

.screen-scroll {
  min-height: var(--phone-height);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(34px, env(safe-area-inset-top)) 28px max(28px, env(safe-area-inset-bottom));
  background:
    linear-gradient(160deg, rgba(7, 193, 96, 0.16), rgba(255, 255, 255, 0) 42%),
    #f7f8fa;
}

.login-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 760;
}

.login-subtitle {
  margin: 0 0 34px;
  color: #5d6470;
  font-size: 15px;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-label {
  color: #343943;
  font-size: 14px;
  font-weight: 650;
}

.login-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  background: #fff;
  outline: none;
  color: #111318;
  font-size: 18px;
}

.login-input:focus {
  border-color: var(--wechat-green);
  box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.13);
}

.primary-button {
  height: 52px;
  border-radius: 8px;
  background: var(--wechat-green);
  color: #fff;
  font-weight: 720;
}

.primary-button:disabled {
  opacity: 0.55;
}

.ghost-button {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
}

.inline-button {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f0f2f5;
  color: #2f3540;
  font-size: 13px;
}

.login-error {
  min-height: 22px;
  color: #d93025;
  font-size: 14px;
  line-height: 1.45;
}

.wechat-home {
  background-color: var(--wechat-bg);
  background-image: var(--wechat-home-image);
  background-position: center;
  background-size: 100% 100%;
  touch-action: none;
  overscroll-behavior: none;
  transition: transform 180ms ease;
  will-change: transform;
}

.wechat-image-home {
  width: 100%;
  height: var(--phone-height);
  object-fit: fill;
  display: block;
}

.recent-screen {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    radial-gradient(circle at 50% 3%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #0b0b0f 0%, #2f2f31 100%);
  padding: max(24px, env(safe-area-inset-top)) 22px calc(112px + env(safe-area-inset-bottom));
  touch-action: none;
  overscroll-behavior: none;
  transition: transform 180ms ease;
  will-change: transform;
}

.recent-title {
  margin: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

.recent-search {
  height: 56px;
  margin: 26px 0 28px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 16px;
  font-weight: 400;
}

.recent-search-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.58);
  flex: 0 0 auto;
}

.recent-search-icon svg {
  width: 100%;
  height: 100%;
}

.recent-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.2;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 14px;
}

.mini-card {
  min-width: 0;
  color: #fff;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.mini-icon {
  width: clamp(56px, 15vw, 69px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f6f6f6;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mini-icon-text {
  color: #0f4e89;
  font-size: 13px;
  font-weight: 800;
}

.mini-label {
  width: 100%;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.recent-bottom-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(88px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-radius: 20px 20px 0 0;
  background: rgba(145, 142, 154, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.recent-bottom-title {
  color: rgba(244, 242, 248, 0.84);
  font-size: 18px;
  font-weight: 500;
}

.recent-bottom-actions {
  position: absolute;
  right: 28px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 18px;
  transform: translateY(-50%);
}

.recent-bottom-action {
  display: grid;
  place-items: center;
  color: rgba(244, 242, 248, 0.8);
}

.recent-bottom-search svg {
  width: 20px;
  height: 20px;
}

.recent-bottom-plus {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(244, 242, 248, 0.78);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.huafa-screen {
  background: #fff;
}

.huafa-home-stage {
  position: relative;
  width: 100%;
  min-height: var(--phone-height);
  background: #fff;
  overflow: hidden;
}

.huafa-reference {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 1;
}

.huafa-topbar {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  height: 44px;
  display: grid;
  grid-template-columns: 50px 1fr 88px;
  align-items: center;
  padding: 0 12px;
  z-index: 5;
}

.huafa-topbar h1 {
  margin: 0;
  text-align: center;
  color: #111;
  font-size: 17px;
  font-weight: 700;
}

.huafa-capsule {
  height: 31px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  color: #111;
}

.huafa-carousel {
  position: absolute;
  left: 3.5%;
  top: 16.2%;
  width: 93%;
  aspect-ratio: 1060 / 662;
  overflow: hidden;
  z-index: 2;
  background: #e8eef4;
}

.huafa-carousel-track {
  height: 100%;
  display: flex;
  transform: translateX(calc(var(--slide-index, 0) * -100%));
  transition: transform 360ms ease;
}

.huafa-slide {
  min-width: 100%;
  height: 100%;
}

.huafa-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.huafa-indicator-strip {
  position: absolute;
  top: calc(16.2% + (93vw * 662 / 1060) + 0.3svh);
  left: 30.5%;
  width: 39%;
  height: 3.6svh;
  background: #abe0fb;
  z-index: 1;
}

.huafa-dots {
  position: absolute;
  top: calc(16.2% + (93vw * 662 / 1060) + 1.1svh);
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.huafa-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(28, 109, 195, 0.26);
}

.huafa-dot.active {
  width: 18px;
  border-radius: 999px;
  background: #1685dc;
}

.huafa-hot-actions {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50.5%;
  height: 10.5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 4;
}

.huafa-transparent-tap {
  background: transparent;
}

.huafa-online-ticket {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 72.2%;
  height: 6.8%;
  background: transparent;
  z-index: 4;
}

.huafa-home-back-hit,
.huafa-home-capsule-hit {
  position: absolute;
  background: rgba(0, 102, 217, 0.01);
  color: transparent;
  overflow: hidden;
  z-index: 6;
}

.huafa-home-back-hit {
  left: 2%;
  top: 3.7%;
  width: 13%;
  height: 5.4%;
}

.huafa-home-capsule-hit {
  left: 76%;
  top: 4.5%;
  width: 22%;
  height: 4.5%;
}

.huafa-tabs {
  position: fixed;
  left: calc((100vw - var(--phone-width)) / 2);
  right: calc((100vw - var(--phone-width)) / 2);
  bottom: 0;
  height: calc(78px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
  z-index: 20;
}

.huafa-tab {
  color: #7c828c;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  font-size: 13px;
  line-height: 1.1;
}

.huafa-tab.active {
  color: var(--huafa-blue);
  font-weight: 720;
}

.huafa-screen .huafa-home-stage {
  height: var(--phone-height);
}

.huafa-screen .huafa-topbar,
.huafa-screen .huafa-carousel,
.huafa-screen .huafa-indicator-strip,
.huafa-screen .huafa-dots {
  display: none;
}

.huafa-screen .huafa-reference {
  object-fit: fill;
}

.huafa-screen .huafa-tabs {
  background: transparent;
  box-shadow: none;
}

.huafa-screen .huafa-tab {
  color: transparent;
  background: transparent;
}

.huafa-screen .huafa-tab > * {
  opacity: 0;
}

.huafa-member-page .huafa-tabs,
.huafa-mine-page .huafa-tabs {
  background: transparent;
  box-shadow: none;
}

.huafa-member-page .huafa-tab,
.huafa-mine-page .huafa-tab {
  color: transparent;
}

.huafa-member-page .huafa-tab > *,
.huafa-mine-page .huafa-tab > * {
  opacity: 0;
}

.huafa-page {
  min-height: var(--phone-height);
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  background: #e8f7ff;
}

.simple-header {
  height: calc(112px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  display: grid;
  grid-template-columns: 48px 1fr 92px;
  align-items: center;
  background: #c9ecff;
}

.simple-header h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}

.simple-back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  font-size: 32px;
  color: #2a2f37;
}

.orders-tabs,
.stage-tabs {
  display: flex;
  gap: 34px;
  padding: 10px 18px 0;
  background: #e8f7ff;
}

.orders-tab,
.stage-tab {
  background: transparent;
  color: #5b636c;
  font-size: 16px;
  padding: 8px 0 12px;
}

.orders-tab.active,
.stage-tab.active {
  color: #0758a8;
  border-bottom: 3px solid #0758a8;
  font-weight: 760;
}

.stage-tabs {
  gap: 30px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 18px 14px;
  scrollbar-width: none;
}

.stage-tabs::-webkit-scrollbar {
  display: none;
}

.orders-list {
  padding: 14px 14px 8px;
  display: grid;
  gap: 14px;
}

.order-card {
  border-radius: 8px;
  background: #fff;
  padding: 18px 16px 14px;
  box-shadow: 0 3px 12px rgba(31, 66, 93, 0.08);
  overflow: hidden;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #555b64;
  font-size: 14px;
}

.order-title {
  margin: 18px 0 14px;
  color: #111318;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 760;
}

.order-meta {
  display: grid;
  gap: 8px;
  color: #777f88;
  font-size: 14px;
}

.order-bottom {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-price {
  color: #12151b;
  font-size: 24px;
  font-weight: 760;
}

.order-action {
  min-width: 96px;
  height: 42px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #cfd3d8;
  color: #171a20;
  font-size: 16px;
  font-weight: 700;
}

.orders-empty {
  min-height: 210px;
  display: grid;
  place-items: center;
  color: #8a929b;
  font-size: 15px;
}

.order-list-page .huafa-tabs {
  background: #f7f8fa url("./assets/huafa_orders_reference.png") center bottom / 100% auto no-repeat;
  box-shadow: none;
}

.order-list-page .huafa-tab {
  color: transparent;
}

.order-list-page .huafa-tab > * {
  opacity: 0;
}

.image-page {
  width: 100%;
  min-height: var(--phone-height);
  background: #fff;
}

.image-page img {
  width: 100%;
  height: auto;
  min-height: var(--phone-height);
  object-fit: contain;
  display: block;
}

.image-hotspot-wrap,
.member-image-wrap,
.mine-image-wrap,
.huafa-full-image-wrap,
.yss-page-wrap {
  position: relative;
  width: 100%;
}

.yss-main-home {
  aspect-ratio: 1080 / 6280;
}

.yss-main-services {
  aspect-ratio: 1080 / 4578;
}

.yss-main-life {
  aspect-ratio: 1080 / 2590;
}

.yss-main-mine {
  aspect-ratio: 1080 / 3612;
}

.yss-view-codeMasked,
.yss-view-codeShown,
.yss-view-medicalCode {
  aspect-ratio: 1152 / 5637;
}

.yss-view-login,
.yss-view-identity,
.yss-view-signature,
.yss-view-face,
.yss-view-qrLarge,
.yss-view-barcodeLarge {
  aspect-ratio: 1170 / 2532;
}

.yss-view-login {
  aspect-ratio: 1080 / 2337.23;
}

.image-hotspot-wrap > img,
.member-image-wrap > img,
.mine-image-wrap > img,
.huafa-full-image-wrap > img,
.yss-page-image {
  width: 100%;
  height: auto;
  display: block;
}

.yss-page-image {
  height: 100%;
  object-fit: fill;
}

.capsule-home {
  width: 86px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #222;
  font-weight: 800;
  position: relative;
  display: block;
}

.capsule-home::before {
  content: "...";
  position: absolute;
  left: 16px;
  top: 4px;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 2px;
}

.capsule-home::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 7px;
  width: 20px;
  height: 20px;
  border: 3px solid #1b1f26;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #fff;
}

.member-detail-hit,
.member-rule-hit,
.mine-hit,
.huafa-image-capsule-hit,
.huafa-full-back-hit,
.huafa-full-capsule-hit,
.order-detail-back-hit,
.order-detail-capsule-hit,
.order-detail-qr-hit,
.settings-profile-hit,
.yss-code-hit,
.yss-back,
.yss-capsule,
.yss-login-choice,
.yss-login-agreement,
.yss-login-next,
.yss-identity-agreement,
.yss-identity-next,
.yss-signature-agreement,
.yss-signature-next,
.yss-face-complete,
.yss-code-back,
.yss-code-toggle,
.yss-code-barcode,
.yss-code-qr,
.yss-large-back {
  position: absolute;
  background: rgba(0, 102, 217, 0.01);
  color: transparent;
  overflow: hidden;
}

.order-detail-stage,
.order-detail-image-wrap {
  position: relative;
  width: 100%;
  background: #fff;
}

.order-detail-image {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: fill;
  display: block;
}

.order-detail-back-hit {
  left: 0;
  top: 3.4%;
  width: 14%;
  height: 5%;
}

.order-detail-capsule-hit {
  left: 76%;
  top: 3.4%;
  width: 22%;
  height: 5%;
}

.order-detail-local .order-detail-back-hit,
.order-detail-local .order-detail-capsule-hit {
  top: 1.7%;
  height: 2.7%;
}

.order-detail-remote .order-detail-qr-hit {
  left: 80%;
  top: 67.2%;
  width: 18%;
  height: 5%;
}

.order-detail-local .order-detail-qr-hit {
  left: 80%;
  top: 33.6%;
  width: 18%;
  height: 2.7%;
}

.member-detail-hit {
  left: 63%;
  top: 39%;
  width: 13%;
  height: 5%;
}

.member-rule-hit {
  left: 79%;
  top: 39%;
  width: 13%;
  height: 5%;
}

.member-level-tabs {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 12%;
  display: grid;
  grid-template-columns: 0.91fr 0.91fr 0.91fr 0.91fr 0.91fr 0.91fr 0.91fr;
  gap: 2.3%;
}

.member-level-tab {
  height: 6.5svh;
  min-height: 42px;
  max-height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.01);
  color: transparent;
  font-size: 0;
}

.member-level-tab.active {
  background: rgba(255, 255, 255, 0.01);
  color: transparent;
}

.mine-profile-hit {
  left: 4%;
  width: 36%;
  top: 11%;
  height: 12%;
}

.mine-coupon-hit {
  left: 47%;
  width: 46%;
  top: 29%;
  height: 10%;
}

.mine-settings-hit {
  left: 4%;
  width: 90%;
  top: 64%;
  height: 7%;
}

.mine-service-hit {
  left: 4%;
  width: 90%;
  top: 73%;
  height: 7%;
}

.huafa-image-capsule-hit {
  left: 76%;
  top: 4.5%;
  width: 22%;
  height: 4.5%;
}

.huafa-full-back-hit {
  left: 2%;
  top: 3%;
  width: 12%;
  height: 7%;
}

.huafa-full-capsule-hit {
  left: 74%;
  top: 6.3%;
  width: 24%;
  height: 4.5%;
}

.settings-profile-hit {
  left: 3%;
  width: 92%;
}

.settings-profile-hit-primary {
  top: 12%;
  height: 11%;
}

.settings-profile-hit-secondary {
  top: 27%;
  height: 9%;
}

.coupon-switch {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 36px;
}

.coupon-switch button {
  height: 44px;
  background: transparent;
  color: #4f5a67;
}

.coupon-switch button.active {
  color: #0066d9;
  font-weight: 760;
}

.yss-screen {
  background: #fff;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.yss-tabs {
  position: fixed;
  left: calc((100vw - var(--phone-width)) / 2);
  right: calc((100vw - var(--phone-width)) / 2);
  bottom: 0;
  height: calc(62px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 30;
}

.yss-tab {
  background: #fff;
  color: #777f8a;
  font-size: 12px;
}

.yss-tab.active {
  color: #1677ff;
  font-weight: 760;
}

.yss-code-hit {
  left: 1.4%;
  top: 1.8%;
  width: 20.8%;
  height: 6.4%;
}

.yss-capsule {
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  width: 72px;
  height: 36px;
}

.yss-back {
  top: max(12px, env(safe-area-inset-top));
  left: 10px;
  width: 48px;
  height: 42px;
}

.yss-login-gd {
  left: 4.44%;
  top: 18.91%;
  width: 7.04%;
  height: 3.25%;
}

.yss-login-face {
  left: 4.44%;
  top: 31.23%;
  width: 7.04%;
  height: 3.25%;
}

.yss-login-weijing {
  left: 4.44%;
  top: 43.47%;
  width: 7.04%;
  height: 3.25%;
}

.yss-login-agreement {
  left: 4.44%;
  top: 57.33%;
  width: 6.67%;
  height: 3.08%;
}

.yss-login-next {
  left: 5.19%;
  top: 67.52%;
  width: 89.63%;
  height: 5.82%;
}

.yss-login-choice.selected,
.yss-login-agreement.checked,
.yss-identity-agreement.checked,
.yss-signature-agreement.checked {
  background: transparent;
}

.yss-login-choice.selected::after {
  content: "";
  position: absolute;
  left: 49%;
  top: 50%;
  width: 46%;
  height: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--huafa-blue);
  box-shadow: 0 0 0 1px rgba(42, 129, 247, 0.08);
}

.yss-login-agreement.checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68%;
  height: 68%;
  transform: translate(-50%, -50%);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.1 4.1L19 7.5' fill='none' stroke='%232A81F7' stroke-width='2.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.yss-identity-agreement {
  left: 4.87%;
  top: 70.85%;
  width: 4.79%;
  height: 2.21%;
}

.yss-identity-next {
  left: 5.81%;
  top: 78.63%;
  width: 88.29%;
  height: 5.37%;
}

.yss-signature-agreement {
  left: 8.46%;
  top: 66.63%;
  width: 5.13%;
  height: 2.37%;
}

.yss-signature-next {
  left: 26.41%;
  top: 76.42%;
  width: 47.09%;
  height: 5.69%;
}

.yss-face-complete {
  left: 4.65%;
  top: 40.19%;
  width: 90.7%;
  height: 7.31%;
}

.yss-face-camera-panel {
  position: absolute;
  left: 50%;
  top: 13.6%;
  width: 52%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: hidden;
  background: #101820;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.yss-face-camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
  background: #101820;
}

.yss-face-camera-message {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  min-width: 74%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.yss-face-camera-panel[data-camera-status="active"] .yss-face-camera-message {
  background: rgba(18, 128, 74, 0.72);
}

.yss-face-camera-panel[data-camera-status="error"] .yss-face-camera-message,
.yss-face-camera-panel[data-camera-status="unsupported"] .yss-face-camera-message {
  background: rgba(172, 48, 48, 0.78);
}

.yss-code-back {
  left: 0;
  top: 2.57%;
  width: 10.42%;
  height: 2.22%;
}

.yss-code-toggle {
  left: 19.53%;
  top: 26.26%;
  width: 61.81%;
  height: 3.05%;
}

.yss-code-toggle-shown {
  left: 20.75%;
  width: 58.33%;
}

.yss-code-barcode {
  left: 9.11%;
  top: 10.13%;
  width: 81.94%;
  height: 4.35%;
}

.yss-code-qr {
  left: 29.6%;
  top: 16.14%;
  width: 40.89%;
  height: 8.32%;
}

.yss-large-back {
  left: 0;
  right: 0;
  top: 0;
  height: 12%;
}

.yss-dialog-backdrop,
.order-qr-backdrop {
  position: fixed;
  inset: 0;
  left: calc((100vw - var(--phone-width)) / 2);
  right: calc((100vw - var(--phone-width)) / 2);
  background: rgba(0, 0, 0, 0.5);
  z-index: 80;
  display: grid;
  place-items: center;
}

.yss-auth-dialog,
.yss-mini-dialog,
.order-qr-dialog-reference {
  position: relative;
  width: min(86%, 360px);
}

.yss-auth-dialog img,
.yss-mini-dialog img,
.order-qr-dialog-reference img {
  width: 100%;
  display: block;
}

.yss-dialog-cancel,
.yss-dialog-confirm,
.yss-mini-cancel,
.yss-mini-confirm {
  position: absolute;
  bottom: 0;
  width: 50%;
  height: 27%;
  background: rgba(255, 255, 255, 0.01);
  color: transparent;
}

.yss-dialog-cancel,
.yss-mini-cancel {
  left: 0;
}

.yss-dialog-confirm,
.yss-mini-confirm {
  right: 0;
}

.order-qr-close-hit,
.order-qr-confirm-hit {
  position: absolute;
  background: rgba(255, 255, 255, 0.01);
  color: transparent;
  overflow: hidden;
}

.order-qr-close-hit {
  right: 0;
  top: 0;
  width: 22%;
  height: 15%;
}

.order-qr-confirm-hit {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 18%;
}

.yss-medical-dialog {
  width: min(86%, 360px);
  border-radius: 8px;
  background: #fff;
  padding: 22px 18px 14px;
  color: #20242b;
}

.yss-medical-dialog h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.yss-medical-dialog p {
  margin: 0 0 18px;
  color: #5f6874;
  line-height: 1.6;
}

.yss-medical-dialog div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.yss-medical-dialog button {
  height: 42px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #333;
}

.yss-medical-dialog button:last-child {
  background: #1677ff;
  color: #fff;
}

.placeholder-panel {
  margin: 18px 16px;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  color: #4c5563;
  line-height: 1.6;
  box-shadow: 0 4px 16px rgba(27, 56, 91, 0.08);
}

.loading {
  min-height: var(--phone-height);
  display: grid;
  place-items: center;
  background: #f7f8fa;
  color: #56606c;
}

.toast {
  position: fixed;
  left: calc((100vw - var(--phone-width)) / 2 + 18px);
  right: calc((100vw - var(--phone-width)) / 2 + 18px);
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 50;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.84);
  color: #fff;
  text-align: center;
  font-size: 14px;
  backdrop-filter: blur(14px);
}

@media (min-width: 431px) {
  .app-shell {
    min-height: min(var(--phone-height), 932px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.35);
  }

  .huafa-indicator-strip {
    top: calc(16.2% + (min(100vw, 430px) * 0.93 * 662 / 1060) + 0.3svh);
  }

  .huafa-dots {
    top: calc(16.2% + (min(100vw, 430px) * 0.93 * 662 / 1060) + 1.1svh);
  }
}
