* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #fff;
  background: #170303;
}

button,
a {
  font: inherit;
}

button {
  border-radius: 0;
}

.landing {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(34, 5, 5, 0.85), rgba(11, 1, 1, 0.98)),
    url("./assets/liping-card-preview.jpg") center / cover;
}

.panel {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 232, 190, 0.32);
  background: rgba(20, 3, 3, 0.72);
  backdrop-filter: blur(10px);
}

.cardPreview {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffd47a;
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.copy > p:not(.eyebrow) {
  max-width: 28em;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.singleAction {
  display: block;
}

.actions button,
.actions a,
.replayButton {
  min-height: 44px;
  border: 1px solid rgba(255, 231, 188, 0.5);
  padding: 0 18px;
  color: #230606;
  background: #ffd47a;
  text-decoration: none;
  cursor: pointer;
}

.actions .primaryAction {
  display: inline-grid;
  place-items: center;
  color: #230606;
  background: #ffd47a;
}

.actions a:not(.primaryAction) {
  display: inline-grid;
  place-items: center;
  color: #fff7e6;
  background: rgba(255, 255, 255, 0.08);
}

.actions .secondaryAction,
.secondaryButton {
  display: inline-grid;
  place-items: center;
  color: #fff7e6;
  background: rgba(255, 255, 255, 0.08);
}

.actions button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.landingStatus {
  display: none;
  max-width: 34em;
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #fff6df;
  background: rgba(255, 212, 122, 0.12);
  border-left: 3px solid #ffd47a;
  font-size: 14px;
  line-height: 1.55;
}

.landingStatus.isVisible {
  display: block;
}

.hint {
  max-width: 36em;
  margin: 18px 0 0;
  color: rgba(255, 237, 198, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.status {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 4;
  min-height: 42px;
  padding: 11px 14px;
  color: #fff;
  background: rgba(16, 2, 2, 0.78);
  border-left: 3px solid #ffd47a;
  display: none;
}

.arHelp {
  position: fixed;
  left: 14px;
  right: 14px;
  top: calc(14px + env(safe-area-inset-top));
  z-index: 4;
  display: none;
  max-width: 520px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(16, 2, 2, 0.78);
  border-left: 3px solid #ffd47a;
}

.arHelp strong,
.arHelp span {
  display: block;
}

.arHelp span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.replayButton {
  position: fixed;
  right: 14px;
  top: calc(14px + env(safe-area-inset-top));
  z-index: 5;
  display: none;
}

.arScene {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  visibility: hidden;
  background: #000;
}

.cameraTextureSource {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  background: #000;
}

.cameraScene canvas,
.cameraScene .a-canvas {
  background: transparent !important;
}

.cameraAr {
  position: fixed;
  inset: 0;
  display: none;
  overflow: hidden;
  background: #000;
}

.cameraFeed,
.cameraShade,
.cameraModel {
  position: absolute;
  inset: 0;
}

.cameraFeed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.cameraShade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 28%, transparent 66%, rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 50% 46%, transparent 0 36%, rgba(0, 0, 0, 0.2) 68%);
  pointer-events: none;
}

.cameraModel {
  width: min(92vw, 720px);
  height: auto;
  max-height: 52vh;
  inset: auto auto 23vh 50%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.52));
  pointer-events: none;
}

.cameraControls {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 5;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cameraControls button {
  min-height: 42px;
  border: 1px solid rgba(255, 231, 188, 0.52);
  color: #fff6df;
  background: rgba(16, 2, 2, 0.76);
  cursor: pointer;
}

.cameraControls button.isActive {
  color: #230606;
  background: #ffd47a;
}

body.arActive {
  overflow: hidden;
  background: #000;
}

body.arActive > video,
body.arActive .mindarCameraVideo {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  z-index: 1 !important;
  background: #000 !important;
  opacity: 1 !important;
}

body.arActive .arScene {
  z-index: 2;
  background: transparent !important;
  pointer-events: auto;
}

body.arActive .arScene canvas,
body.arActive canvas.a-canvas {
  background: transparent !important;
}

body.arActive .landing {
  display: none;
}

body.arActive .status,
body.arActive .arScene,
body.arActive .arHelp,
body.arActive .cameraAr {
  display: block;
}

body.arActive .arScene {
  visibility: visible;
}

body.arActive .cameraControls {
  display: grid;
}

body.arActive .replayButton {
  display: inline-block;
}

@media (max-width: 720px) {
  .landing {
    padding: 16px;
    place-items: stretch;
  }

  .panel {
    grid-template-columns: 1fr;
    align-self: center;
    padding: 16px;
  }
}

.stablePage {
  min-height: 100%;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(28, 3, 3, 0.88), rgba(8, 1, 1, 0.98)),
    url("./assets/liping-card-preview.jpg") center / cover;
}

.stableStage {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: stretch;
}

.stableVisual {
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 190, 0.28);
  background: rgba(17, 2, 2, 0.72);
}

.stableVisual img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 36px);
  object-fit: contain;
  display: block;
}

.stablePanel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid rgba(255, 232, 190, 0.32);
  background: rgba(20, 3, 3, 0.78);
}

.stablePanel h1 {
  font-size: clamp(38px, 7vw, 68px);
}

.stablePanel > p:not(.eyebrow):not(.hint) {
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.viewSwitch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.viewSwitch button {
  min-height: 42px;
  border: 1px solid rgba(255, 231, 188, 0.45);
  color: #fff6df;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.viewSwitch button.isActive {
  color: #230606;
  background: #ffd47a;
}

.stableActions {
  margin-top: 2px;
}

.testPage {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(28, 3, 3, 0.9), rgba(8, 1, 1, 0.98)),
    url("./assets/liping-card-preview.jpg") center / cover;
}

.testPanel {
  width: min(760px, 100%);
  padding: 22px;
  border: 1px solid rgba(255, 232, 190, 0.32);
  background: rgba(20, 3, 3, 0.8);
}

.testPanel h1 {
  font-size: clamp(36px, 7vw, 64px);
}

.testPanel > p:not(.eyebrow):not(.landingStatus) {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.cameraFrame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 232, 190, 0.28);
  background: rgba(0, 0, 0, 0.42);
}

.cameraFrame video,
.cameraFrame div {
  position: absolute;
  inset: 0;
}

.cameraFrame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cameraFrame div {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
}

.testActions {
  margin-bottom: 14px;
}

@media (max-width: 820px) {
  .stablePage {
    padding: 12px;
  }

  .stableStage {
    min-height: calc(100vh - 24px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stableVisual {
    min-height: 0;
    height: min(48vh, 390px);
  }

  .stablePanel {
    padding: 16px;
  }

  .testPanel {
    padding: 16px;
  }
}

.systemArPage {
  min-height: 100%;
  overflow: hidden;
  color: #fff8eb;
  background:
    linear-gradient(135deg, rgba(27, 6, 5, 0.92), rgba(8, 10, 12, 0.96)),
    url("./assets/liping-card-preview.jpg") center / cover;
}

.fastEntryPage {
  min-height: 100%;
  color: #fff8eb;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 28, 23, 0.24), transparent 48%),
    linear-gradient(180deg, #210706 0%, #100403 58%, #080303 100%);
}

.fastEntryShell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.fastHero {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 232, 190, 0.18);
  border-radius: 20px;
  background: #160807;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.fastPreview {
  background: #2b0b08;
  overflow: hidden;
}

.fastPreview img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fastCopy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(145deg, rgba(43, 15, 12, 0.96), rgba(18, 8, 7, 0.98));
}

.fastCopy h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.fastCopy .deviceHint {
  max-width: 25em;
  margin: 16px 0 26px;
  color: rgba(255, 248, 235, 0.7);
  font-size: 16px;
  line-height: 1.7;
}

.fastCopy .arPrimaryButton {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.fastCopy .arPrimaryButton:active {
  transform: translateY(1px);
}

.quickLookThumb {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.01;
  pointer-events: none;
}

.fastPrimary {
  width: min(340px, 100%);
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  color: #2a0a07;
  background: #f2c76f;
  box-shadow: none;
  font-size: 17px;
  letter-spacing: 0.03em;
}

.fastCopy .landingStatus {
  max-width: 340px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  color: rgba(255, 248, 235, 0.68);
  background: transparent;
  font-size: 13px;
  line-height: 1.6;
}

.wechatMode .fastPrimary {
  color: #fff8eb;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 232, 190, 0.28);
}

.isOpeningAr .fastHero {
  grid-template-columns: minmax(0, 520px);
  max-width: 520px;
}

.isOpeningAr .fastPreview,
.isOpeningAr .eyebrow {
  display: none;
}

.isOpeningAr .fastCopy {
  min-height: 260px;
}

.isOpeningAr .fastPrimary {
  color: rgba(255, 248, 235, 0.82);
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

.arShell {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: 18px;
  align-items: stretch;
}

.arViewerWrap {
  position: relative;
  min-height: calc(100vh - 36px);
  border: 1px solid rgba(255, 232, 190, 0.28);
  background: rgba(12, 12, 14, 0.62);
}

.arViewerWrap model-viewer {
  width: 100%;
  height: 100%;
  min-height: 560px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 212, 122, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(36, 31, 28, 0.68), rgba(8, 8, 10, 0.94));
  --poster-color: rgba(10, 10, 12, 0.86);
}

.arPrimaryButton {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 2;
  min-width: min(290px, calc(100vw - 42px));
  min-height: 54px;
  border: 1px solid rgba(255, 238, 198, 0.7);
  border-radius: 6px;
  padding: 0 22px;
  color: #230606;
  background: #ffd47a;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
  font-weight: 700;
  cursor: pointer;
}

.arPrimaryButton:active {
  transform: translateX(-50%) translateY(1px);
}

.arInfoPanel {
  min-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(255, 232, 190, 0.32);
  background: rgba(17, 8, 7, 0.78);
}

.arInfoPanel h1 {
  font-size: 48px;
  line-height: 1.06;
}

.deviceHint {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.arInfoPanel .hint {
  margin-top: 16px;
  color: rgba(255, 235, 198, 0.76);
}

.followInlineLink {
  color: #ffd47a;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 212, 122, 0.52);
}

.arInfoPanel .landingStatus {
  display: block;
  margin-top: 18px;
}

.arProgress {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 92px;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.arProgress span {
  display: block;
  width: 42%;
  height: 100%;
  background: #ffd47a;
  animation: arProgressSlide 1.2s ease-in-out infinite;
}

@keyframes arProgressSlide {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

@media (max-width: 820px) {
  .fastEntryShell {
    padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
    place-items: center;
  }

  .fastHero {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .fastCopy {
    padding: 24px 22px 26px;
  }

  .fastCopy h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .fastCopy .arPrimaryButton {
    width: 100%;
  }

  .fastPreview img {
    height: auto;
  }

  .systemArPage {
    overflow: auto;
  }

  .arShell {
    min-height: 100%;
    padding: 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .arViewerWrap {
    min-height: 58vh;
  }

  .arViewerWrap model-viewer {
    min-height: 58vh;
    height: 58vh;
  }

  .arInfoPanel {
    min-height: auto;
    padding: 16px;
  }

  .arInfoPanel h1 {
    font-size: 40px;
  }
}

.followArPage {
  min-height: 100%;
  overflow: hidden;
  color: #fff8eb;
  background: #050505;
}

.followStage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #050505;
}

.followCamera,
.followShade,
.followModel,
.followIntro,
.followReticle,
.followToolbar,
.followStatus {
  position: absolute;
}

.followCamera {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.followShade {
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 28%, transparent 62%, rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at 50% 52%, transparent 0 28%, rgba(0, 0, 0, 0.12) 70%);
}

.followModel {
  left: 50%;
  top: 47%;
  width: min(96vw, 680px);
  height: min(48vh, 420px);
  transform: translate(-50%, -50%);
  background: transparent;
  --poster-color: transparent;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.5));
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.followIntro {
  left: 18px;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 4;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(255, 232, 190, 0.34);
  background: rgba(16, 6, 5, 0.82);
  backdrop-filter: blur(10px);
}

.followIntro h1 {
  font-size: clamp(34px, 10vw, 52px);
}

.followIntro p:not(.eyebrow) {
  margin: 14px 0 18px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.followStartButton {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
}

.followStartButton:active {
  transform: translateY(1px);
}

.followTextLink {
  display: block;
  margin-top: 14px;
  color: #ffe4a4;
  text-align: center;
  text-decoration: none;
}

.followReticle {
  left: 50%;
  top: 62%;
  z-index: 2;
  width: 132px;
  height: 42px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 244, 214, 0.72);
  border-top: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.followReticle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 212, 122, 0.95);
}

.followToolbar {
  left: 12px;
  right: 12px;
  bottom: calc(58px + env(safe-area-inset-bottom));
  z-index: 4;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.followToolbar button,
.followToolbar a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 231, 188, 0.46);
  color: #fff6df;
  background: rgba(16, 2, 2, 0.72);
  text-decoration: none;
}

.followToolbar button.isActive {
  color: #230606;
  background: #ffd47a;
}

.followStatus {
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 4;
  min-height: 40px;
  margin: 0;
  padding: 10px 12px;
  color: #fff6df;
  background: rgba(12, 4, 3, 0.76);
  border-left: 3px solid #ffd47a;
  font-size: 13px;
  line-height: 1.45;
}

.followRunning .followReticle {
  opacity: 1;
}

.followRunning .followModel {
  opacity: 1;
  pointer-events: auto;
}

.followRunning .followToolbar {
  display: grid;
}

@media (min-width: 821px) {
  .followIntro {
    left: 32px;
    right: auto;
    bottom: 32px;
  }

  .followToolbar {
    left: 32px;
    right: auto;
    width: 420px;
  }

  .followStatus {
    left: 32px;
    right: auto;
    width: 520px;
  }
}
