/* Figma 落地页 A（默认）/ B（先做好，不从 A 链入）。坐标按 375×812 与 1920×1080 原稿。 */
.fit-375 {
  width: min(100vw, calc(100vh * 375 / 812));
  height: min(100vh, calc(100vw * 812 / 375));
  position: relative;
  overflow: hidden;
}
.frame-375 {
  position: absolute; left: 0; top: 0;
  width: 375px; height: 812px;
  overflow: hidden;
  transform-origin: top left;
  transform: scale(calc(min(100vw, 100vh * 375 / 812) / 375px));
}
.fit-1920 {
  width: min(100vw, calc(100vh * 1920 / 1080));
  height: min(100vh, calc(100vw * 1080 / 1920));
  position: relative;
  overflow: hidden;
}
.frame-1920 {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  overflow: hidden;
  transform-origin: top left;
  transform: scale(calc(min(100vw, 100vh * 1920 / 1080) / 1920px));
}
.frame-375 .h5-bg, .frame-375 .b-bg, .frame-1920 .pc-bg, .frame-1920 .pc-b-bg {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  pointer-events: none;
}
.pc-bottom-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 16, 12, 0) 0%, #070300 100%);
}
.frame-375 .b-bg { height: 100%; object-position: center top; }

.land-head {
  position: absolute; top: 18px; left: 10px; right: 6px;
  display: flex; align-items: flex-start; justify-content: space-between;
  z-index: 3;
}
.landing-b .land-head { top: 52px; }
.land-brand, .pc-brand, .pc-foot p { display: flex; align-items: center; }
.land-brand { gap: 8px; }
.pc-brand { gap: 12px; }
.pc-foot p { gap: 8px; }
.land-logo, .pc-foot-logo {
  width: 23px; height: 23px; border-radius: 3.3px; overflow: hidden; position: relative; flex: none;
}
.pc-logo { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; position: relative; flex: none; }
.pc-foot-logo { width: 32px; height: 32px; border-radius: 13px; }
.land-logo img, .pc-logo img, .pc-foot-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; max-width: none;
}
.land-brand-tx, .pc-brand-tx { display: flex; flex-direction: column; }
.land-brand-tx strong { font-size: 12px; font-weight: 500; letter-spacing: 1.08px; }
.land-brand-tx small { font-size: 8px; letter-spacing: 0.72px; }
.land-links, .pc-links { display: flex; align-items: center; gap: 9px; }
.land-link, .pc-link {
  display: inline-flex; align-items: center; gap: 3px;
  color: #fff; text-decoration: none; font-size: 8px; letter-spacing: 0.72px;
}
.land-link.is-off, .pc-link.is-off, .land-pill.is-off { cursor: default; opacity: 0.45; pointer-events: none; }
.pc-link { font-size: 16px; letter-spacing: 1.44px; gap: 6px; }
.pc-links { gap: 16px; }

/* A 版 H5：安装教程 = 下划线文字，放在「特殊行业」说明下方居中（不再用圆形金徽章） */
.land-foot {
  position: absolute; left: 50%; top: 749px; transform: translateX(-50%);
  width: 292px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.land-guide {
  display: inline-block;
  margin: 0; padding: 0;
  border: 0; background: none; box-shadow: none;
  width: auto; height: auto; border-radius: 0;
  color: #ffe9b8;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: static;
}
/* 测服 HTML 若仍是圆徽章结构：藏图标，只留文字 */
.h5-shell .land-guide:not(.is-b) img { display: none !important; }
.h5-shell .land-guide:not(.is-b) span {
  font-size: 12px; font-weight: 600; line-height: 1.4;
  text-shadow: none; color: inherit;
}
/* 测服旧 DOM：guide 还在 pills 上方时，挪到说明文字下方 */
.h5-shell .frame-375 > .land-guide:not(.is-b) {
  position: absolute; left: 50%; top: 785px; transform: translateX(-50%);
  z-index: 4;
}

/* B 版仍用圆形金徽章 */
.land-guide.is-b {
  position: absolute; left: auto; right: 11px; top: 517px; z-index: 4;
  width: 89px; height: 89px; border-radius: 61px;
  border: 2px solid #ffeeb8;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: #5a3901;
  background: radial-gradient(circle at 50% 32%, #fbdd87 0%, #f1c967 50%, #e7b446 100%);
  box-shadow: 0 4px 36px #000, inset 0 -3px 6px #ad7b00;
  transform: none;
}
.land-guide.is-b span { font-size: 14px; font-weight: 800; line-height: 1.5; text-shadow: 0 0 2px #fff; color: inherit; }
.land-guide.is-b img { display: block; }

.land-pills {
  position: absolute; left: 50%; top: 687px; transform: translateX(-50%);
  display: flex; gap: 16px; z-index: 4;
}
.land-pills.is-b { top: 638px; gap: 16px; }
.land-foot.is-b { top: 702px; }
/* A 版底部双按钮：紫玻璃切图；文字+箭头作为一组绝对居中（含光学微调） */
.land-pills:not(.is-b) .land-pill {
  position: relative;
  width: 164px; height: 48px; border-radius: 999px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent url("/static/assets/figma-a/btn-pill.webp?v=3") center / 100% 100% no-repeat;
  box-shadow: none;
  display: block;
  line-height: 0;
  text-decoration: none;
  overflow: visible;
  box-sizing: border-box;
}
.land-pills:not(.is-b) .land-pill::before,
.land-pills:not(.is-b) .land-pill::after { display: none !important; content: none !important; }
.land-pills:not(.is-b) .land-pill img {
  display: none !important;
}
.land-pills:not(.is-b) .land-pill span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  color: #fff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  text-shadow: 0 1px 2px rgba(40, 10, 90, 0.35);
}
.land-pills:not(.is-b) .land-pill span::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin-top: 0;
  border: solid #fff;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  flex: none;
  box-sizing: border-box;
}
/* B 版 H5：用户提供的紫光胶囊切图 */
.land-pills.is-b { overflow: visible; }
.land-pills.is-b .land-pill {
  position: relative;
  width: 168px; height: 56px; border-radius: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent url("/static/assets/figma-b/btn-pill.webp") center / 100% 100% no-repeat;
  box-shadow: none;
  display: block;
  line-height: 0;
  text-decoration: none;
  overflow: visible;
  box-sizing: border-box;
}
.land-pills.is-b .land-pill::before,
.land-pills.is-b .land-pill::after { display: none !important; content: none !important; }
.land-pills.is-b .land-pill img { display: none !important; }
.land-pills.is-b .land-pill span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 1px 2px rgba(40, 10, 90, 0.35);
}
.land-pills.is-b .land-pill span::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border: solid #fff;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  flex: none;
  box-sizing: border-box;
}
.land-note {
  width: 100%; margin: 0;
  font-size: 11px; line-height: 1.5; text-align: center; cursor: pointer;
  color: inherit;
}
/* 测服旧 DOM：note 仍是绝对定位单节点 */
.h5-shell .frame-375 > .land-note {
  position: absolute; left: 50%; top: 749px; transform: translateX(-50%);
  width: 292px; z-index: 4;
}
.land-note.is-b { top: 717px; }

.b-word {
  position: absolute;
  left: 50%;
  top: 86px;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  font-family: Palatino, "Palatino Linotype", "Times New Roman", serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, #F2EADC 34%, #F9D170 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 8px #000);
}
.b-host, .b-slogan, .b-laurels { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; z-index: 2; white-space: nowrap; }
.b-host {
  top: 148px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #E9BFFE;
  background: none;
  -webkit-text-fill-color: #E9BFFE;
}
.b-slogan {
  top: 182px;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #AE9ADA;
}
.b-laurels { top: 214px; display: flex; align-items: center; gap: 4px; }
.b-laurels span {
  font-size: 24px;
  font-weight: 500;
  background: linear-gradient(180deg, #F5D8FF 0%, #E9ACFD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.b-laurel {
  width: 24px;
  height: 24px;
  flex: none;
  background: linear-gradient(180deg, #F5D8FF 0%, #E9ACFD 100%);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.b-laurel.is-l {
  -webkit-mask-image: url('/static/assets/figma-a/laurel-l.svg');
  mask-image: url('/static/assets/figma-a/laurel-l.svg');
}
.b-laurel.is-r {
  -webkit-mask-image: url('/static/assets/figma-a/laurel-r.svg');
  mask-image: url('/static/assets/figma-a/laurel-r.svg');
}

.pc-head {
  position: absolute; top: 48px; left: 134px; right: 90px;
  display: flex; align-items: flex-start; justify-content: space-between; z-index: 3;
}
.pc-brand-tx strong { font-size: 29px; font-weight: 500; letter-spacing: 2.61px; }
.pc-brand-tx small { font-size: 14px; letter-spacing: 1.26px; }
/* 背景图已含桂冠口号 + 四特性，HTML 叠字会重复 → 隐藏（模板亦已删除，供测服未发版时兜底） */
.pc-laurels,
.pc-feats {
  display: none !important;
}
.pc-card {
  position: absolute; left: 123px; top: 592px; z-index: 3;
  display: flex; align-items: center; gap: 22px;
  padding: 21px 22px; border-radius: 26px;
  border: 2px solid #373e46; background: #061222;
}
.pc-card .pc-qr, .pcb-card .pc-qr {
  position: relative;
  top: auto;
  left: auto;
  flex: none;
  width: 225px;
  height: 225px;
  aspect-ratio: auto;
  padding: 0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  z-index: 1;
}
.pcb-qr {
  position: relative;
  top: auto;
  left: auto;
  flex: none;
  width: 300px;
  height: 300px;
  max-width: 100%;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.pcb-qr canvas, .pcb-qr img { width: 100% !important; height: 100% !important; display: block; }
.pc-qr canvas, .pc-qr img { width: 100% !important; height: 100% !important; display: block; }
.pc-card-tx strong { display: block; font-size: 37px; }
.pc-card-tx p, .pcb-sub { margin: 4px 0 0; font-size: 20px; color: #a8a8a8; }
.pc-card-tx em, .pcb-sub em {
  font-style: normal; font-size: 26px;
  background: linear-gradient(180deg, #f6e7cc, #ee9d17);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pc-note {
  position: absolute; left: 152px; top: 905px; z-index: 3;
  width: 1615px; margin: 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 20px 40px; border-radius: 26px;
  border: 2px solid #373e46; background: #061222; cursor: pointer;
}
.pc-note span {
  font-size: 26px; font-weight: 500;
  background: linear-gradient(180deg, #f6e7cc, #ee9d17);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pc-note.is-b {
  left: 120px; top: 918px; width: 1680px; height: auto; min-height: 56px;
  padding: 14px 28px;
  border: 0;
  border-radius: 18px;
  background: rgba(8, 4, 28, 0.72);
}
.pc-note.is-b img { display: none; }
.pc-note.is-b span {
  background: none;
  color: #efe8ff;
  -webkit-text-fill-color: #efe8ff;
  font-size: 22px;
  font-weight: 400;
}
.pc-foot {
  position: absolute; left: 50%; top: 991px; transform: translateX(-50%);
  z-index: 3; text-align: center;
}
.pc-foot.is-b { top: 1000px; }
.pc-foot.is-b small,
.pc-foot.is-b .pc-copy { color: #c4b6e4; }
.pc-foot p { margin: 0; justify-content: center; }
.pc-foot strong { font-size: 18px; font-weight: 500; letter-spacing: 1.62px; }
.pc-foot small { color: #888785; font-size: 14px; letter-spacing: 1.26px; }
.pc-copy { margin-top: 6px !important; color: #888785; font-size: 16px; letter-spacing: 1.44px; display: flex; align-items: center; gap: 2px; }

.pcb-card {
  position: absolute; left: 1280px; top: 148px; z-index: 3;
  width: 516px; box-sizing: border-box;
  padding: 36px 40px 40px;
  border: 1px solid rgba(210, 180, 255, 0.4);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(78, 42, 150, 0.52) 0%, rgba(28, 12, 72, 0.7) 100%);
  box-shadow: 0 16px 48px rgba(20, 6, 60, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  overflow: hidden;
}
.pcb-kicker { margin: 0; display: flex; align-items: center; gap: 12px; }
.pcb-kicker > img { display: none; }
.pcb-kicker span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 500;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}
.pcb-kicker span img {
  filter: brightness(0) invert(1);
}
.pcb-card > strong {
  font-size: 40px; font-weight: 600;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}
.pcb-sub { color: #d5c6f0; }
.pcb-sub em {
  background: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 22px;
}
.pcb-qr { width: 280px; height: 280px; border-radius: 16px; }
.pcb-url { margin: 8px 0 0; color: #ddd4f2; font-size: 20px; letter-spacing: 1px; }
.pcb-url em { font-style: normal; color: #fff; }

.pc-b-shell { display: none; position: absolute; inset: 0; }
.landing[data-layout="pc"] .pc-shell,
.landing[data-layout="pc-b"] .pc-b-shell {
  display: flex; align-items: center; justify-content: center;
  background: #16082e;
}
.landing[data-layout="h5"] .h5-shell,
.landing[data-layout="b"] .b-shell {
  display: flex; align-items: center; justify-content: center;
}
/*
 * H5 留白色（不改等比布局）：
 * - iPhone SE 等：左右留白
 * - Galaxy Z Fold 等：上下留白
 * 纵向渐变贴海报上紫下蓝暗部，四面同一套底，避免纯黑条
 */
.landing[data-layout="h5"] .h5-shell {
  background: linear-gradient(180deg, #2a1860 0%, #271c58 42%, #271c58 58%, #1a3068 100%);
}
.landing[data-layout="b"] .b-shell { background: #16082e; }
.landing[data-layout="pc-b"] .b-shell,
.landing[data-layout="b"] .pc-b-shell { display: none; }
.landing.landing-b { position: fixed; inset: 0; max-width: none; margin: 0; width: auto; }
body.b-version { overflow: hidden; }
