/* 天佑智隧 · 爆破设计开通申请：设计令牌 + 页面样式（移植自 TheBlastSaleApplyScene.vue） */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/inter-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 新界面从这里取。旧变量（--bg-color、--global-primary-color 等）先不动。 */

:root {
  /* 字体。英文/数字 Inter，中文 Noto Sans SC，见 family.css。等宽仅日志用 JetBrains Mono */
  --tk-font-family: var(--app-font);
  --tk-font-mono: 'JetBrains Mono', 'Noto Sans SC', ui-monospace, Consolas, monospace;
  --tk-font-size-xs: 12px;
  --tk-font-size-sm: 13px;
  --tk-font-size-md: 14px;
  --tk-font-size-lg: 16px;
  --tk-font-size-xl: 20px;
  --tk-font-size-2xl: 24px;
  --tk-font-weight-regular: 400;
  --tk-font-weight-medium: 500;
  --tk-font-weight-semibold: 600;
  --tk-line-height-tight: 1.25;
  --tk-line-height-normal: 1.5;

  /* 品牌色阶。500 是主色 */
  --tk-blue-50: #f3f7fb;
  --tk-blue-100: #e2ecf8;
  --tk-blue-200: #bdd7f4;
  --tk-blue-300: #85b8f5;
  --tk-blue-400: #4597f7;
  --tk-blue-500: #0570ee;
  --tk-blue-600: #0454b2;
  --tk-blue-700: #023876;

  /* 背景：页面底、卡片、弱填充、遮罩。灰底色相跟品牌蓝 212°，饱和度 20%，明度 96.5% */
  --tk-bg-page: #f4f6f8;
  --tk-bg-card: #ffffff;
  --tk-bg-muted: var(--tk-blue-50);
  --tk-bg-mask: rgb(2 56 118 / 45%);

  /* 文字：主、次、禁用、反色 */
  --tk-text-primary: #1a2332;
  --tk-text-secondary: #5c6773;
  --tk-text-disabled: #a3abb4;
  --tk-text-inverse: #ffffff;

  /* 边框：默认、强 */
  --tk-border: #e3e8ef;
  --tk-border-strong: #c5d0dc;

  /* 圆角。sm 小标记，md 输入和选择，lg 浮层 */
  --tk-radius-sm: 4px;
  --tk-radius-md: 8px;
  --tk-radius-lg: 12px;

  /* 品牌：主色、主色上的字、文字高亮。高亮以 blue-700 为准 */
  --tk-brand: var(--tk-blue-500);
  --tk-brand-on: var(--tk-text-inverse);
  --tk-brand-text: var(--tk-blue-700);

  /* 弹层比页面高一层。亮色与卡片同色 */
  --tk-bg-popover: var(--tk-bg-card);

  /* 状态：信息蓝、成功绿、警告黄、危险红。实色压暗，浅底是同一色相的淡底 */
  --tk-info: var(--tk-blue-500);
  --tk-info-bg: var(--tk-blue-100);
  --tk-success: #16a34a;
  --tk-success-bg: #e3f4ea;
  --tk-warning: #ea580c;
  --tk-warning-bg: #f8f3e3;
  --tk-danger: #dc2626;
  --tk-danger-bg: #f8e7e8;

  /* 交互：悬停底、选中底。列表和选项的滑块跟正文色走，中性，不铺品牌浅蓝。 */
  --tk-bg-hover: var(--tk-blue-50);
  --tk-bg-selected: var(--tk-blue-100);
  --tk-list-hover: var(--tk-fill-ghost-hover);
}

/* 暗色只覆盖选择器在用的这几个。页面旧变量不动。 */
html[data-theme='dark'] {
  --tk-brand-text: var(--tk-blue-300);
  --tk-text-primary: rgb(255 255 255 / 88%);
  --tk-text-secondary: rgb(255 255 255 / 62%);
  --tk-text-disabled: rgb(255 255 255 / 38%);
  --tk-bg-popover: #34383f;
  --tk-border: rgb(255 255 255 / 10%);
  --tk-bg-hover: rgb(255 255 255 / 6%);
  --tk-bg-selected: rgb(133 184 245 / 16%);
  --tk-danger: #e07076;
  /* 页签和内容区的浅灰，暗色里跟页面底，避免一块浅色 */
  --tk-bg-page: var(--bg-color);
}

/* 质感常数。颜色和圆角仍用上面的 --tk-*，这里只补交互和排版。用法见 ui-craft.mdc。 */
:root {
  /* 时长。弹层进出仍走 Rise，不要拿这些另写一套弹层动画。 */
  --tk-dur-fast: 60ms;
  --tk-dur-snap: 120ms;
  --tk-dur-base: 200ms;
  --tk-dur-sheet: 300ms;
  --tk-dur-slow: 450ms;
  --tk-dur-grow: 250ms;
  --tk-dur-skeleton: 1.6s;
  --tk-dur-pulse: 1.2s;
  --tk-dur-breathe: 2.4s;

  /* 曲线。不要用 ease 或 linear。 */
  --tk-ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --tk-ease-snap: cubic-bezier(0.32, 0.72, 0, 1);
  --tk-ease-overshoot: cubic-bezier(0.34, 1.3, 0.64, 1);

  /* 间距。新界面只取这六档。2px、6px 是图标光学缝，不进档。 */
  --tk-space-2xs: 4px;
  --tk-space-xs: 8px;
  --tk-space-sm: 12px;
  --tk-space-md: 16px;
  --tk-space-lg: 24px;
  --tk-space-xl: 32px;

  /* 带字按钮的高度。只有图标的按钮点按区仍是 24px。 */
  --tk-h-xs: 24px;
  --tk-h-sm: 28px;
  --tk-h-md: 32px;
  --tk-h-lg: 40px;

  /* 发丝粗细。颜色用 --tk-border。高分屏在下面的媒体查询里变细。 */
  --tk-hairline: 1px;

  /* 按下略缩，键盘焦点用品牌色。 */
  --tk-press-scale: 0.98;
  --tk-focus-width: 1.5px;
  --tk-focus-offset: 2px;
  --tk-focus-glow: 0 0 6px 1px color-mix(in srgb, var(--tk-brand) 25%, transparent);

  /* 幽灵按钮和分段轨道。跟正文色走，不另起灰。 */
  --tk-fill-ghost-hover: color-mix(in srgb, var(--tk-text-primary) 5%, transparent);
  --tk-fill-ghost-pressed: color-mix(in srgb, var(--tk-text-primary) 10%, transparent);
  --tk-track: color-mix(in srgb, var(--tk-text-primary) 6%, transparent);

  /* 长文行宽、滚动羽化、拖拽死区、流式跟底。 */
  --tk-measure: 42rem;
  --tk-scroll-fade: 28px;
  --tk-drag-slop: 4px;
  --tk-pin-slack: 40px;
  --tk-pin-cooldown: 150ms;

  /* 行内图标相对文字下沉。小字用 sm。 */
  --tk-icon-nudge: -0.125em;
  --tk-icon-nudge-sm: -0.075em;

  /* 状态点静息透明度，约 2/7。亮起用 --tk-brand。 */
  --tk-dot-rest: 0.2857;

  /* 分段和药丸。不替换 --tk-radius-sm/md/lg。 */
  --tk-radius-pill: 999px;
}

@media (min-resolution: 2dppx) {
  :root {
    --tk-hairline: 0.5px;
  }
}

@media (min-resolution: 3dppx) {
  :root {
    --tk-hairline: calc(1px / 3);
  }
}

:root {
  --app-font: Inter, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #050b16;
  color: #f4f7ff;
  font-family: var(--app-font);
}

button,
input {
  font: inherit;
}


.blast-sale,
.blast-sale * {
  box-sizing: border-box;
}

.blast-sale {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #050b16;
  color: #0f2742;
  font-family: Inter, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

.site-head {
  position: relative;
  flex: none;
  color: #f4f7ff;
}

/* 两端渐隐的分隔线 */
.site-head::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3a4558 15%, #3a4558 85%, transparent);
  pointer-events: none;
}

.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 90px;
  padding: 0 30px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--tk-space-md);
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-brand:focus-visible {
  outline: var(--tk-focus-width) solid var(--tk-brand);
  outline-offset: var(--tk-focus-offset);
}

.site-logo {
  display: block;
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.site-name {
  color: #fff;
  font-size: var(--tk-font-size-2xl);
  font-weight: var(--tk-font-weight-semibold);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.site-slogan {
  align-self: flex-start;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tk-brand);
  color: var(--tk-brand-on);
  font-size: var(--tk-font-size-sm);
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--tk-space-lg);
}

.site-nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color var(--tk-dur-base) var(--tk-ease-out);
}

.site-nav button svg {
  width: 20px;
  height: 20px;
}

.site-nav .site-cta {
  height: 40px;
  padding: 0 18px;
  border-radius: var(--tk-radius-sm);
  background: var(--tk-brand);
  color: var(--tk-brand-on);
  font-size: 16px;
  font-weight: 600;
  transition: background var(--tk-dur-base) var(--tk-ease-out);
}

.site-nav .site-cta:hover {
  background: var(--tk-blue-600);
  color: var(--tk-brand-on);
}

.site-nav .site-cta:active {
  transform: scale(var(--tk-press-scale));
}

.site-nav button:hover {
  color: var(--tk-blue-400);
}

.site-nav button:focus-visible {
  outline: var(--tk-focus-width) solid var(--tk-brand);
  outline-offset: var(--tk-focus-offset);
}

.screens {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.screens::-webkit-scrollbar {
  display: none;
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.screen-stage {
  padding: 40px;
}

.scene {
  position: absolute;
  inset: 40px;
  background: #050b16;
  --scene-fade: 88px;
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 var(--scene-fade),
      #000 calc(100% - var(--scene-fade)),
      transparent
    ),
    linear-gradient(
      to bottom,
      transparent,
      #000 var(--scene-fade),
      #000 calc(100% - var(--scene-fade)),
      transparent
    );
  -webkit-mask-composite: source-in;
  -webkit-mask-repeat: no-repeat;
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 var(--scene-fade),
      #000 calc(100% - var(--scene-fade)),
      transparent
    ),
    linear-gradient(
      to bottom,
      transparent,
      #000 var(--scene-fade),
      #000 calc(100% - var(--scene-fade)),
      transparent
    );
  mask-composite: intersect;
  mask-repeat: no-repeat;
}

/* 首屏左侧文案卡：只保留三行口号，不恢复标题和按钮 */
.hero-panel {
  container-type: inline-size;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 6%;
  width: min(760px, 52vw, calc(100% - 48px));
  padding: 24px;
  transform: translateY(-50%);
}

.hero-copy {
  position: relative;
  width: fit-content;
  margin-inline: auto;
}

.hero-flow {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 380 / 560;
  margin-inline: auto;
}

.hero-flow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero-line {
  fill: none;
  stroke: url(#hero-line-gradient);
  stroke-width: 2;
  stroke-linecap: round;
}

.hero-line-progress {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
}

.hero-spark {
  opacity: 0;
  filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px var(--tk-blue-400));
}

.hero-spark-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #fff 50%, transparent);
}

.hero-node-fill {
  fill: var(--node);
}

.hero-node-sweep {
  fill: url(#hero-node-sweep-gradient);
  opacity: 0;
  pointer-events: none;
}

.hero-node-gloss {
  fill: url(#hero-node-gloss);
  pointer-events: none;
}

.hero-flow-copy {
  position: absolute;
  inset: 0;
}

.hero-flow-row {
  position: absolute;
  top: var(--y);
  left: 50%;
  display: flex;
  align-items: center;
  transform: translate(-50%, -50%);
}

.hero-flow-key {
  color: #fff;
  font-size: 44px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.04em;
  transform-origin: center;
}

.hero-flow-prefix {
  position: absolute;
  top: 50%;
  right: calc(100% + 2px);
  color: #f4f7ff;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateY(-50%);
}

.scene.fallback {
  background: #050b16;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgb(244 247 255 / 0.55);
  cursor: pointer;
  transform: translateX(-50%);
  transition: color var(--tk-dur-base) var(--tk-ease-out);
}

.scroll-cue svg {
  width: 100%;
  height: 100%;
  animation: scroll-cue-bob 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.scroll-cue-top {
  opacity: 0.9;
}

.scroll-cue-bottom {
  opacity: 0.38;
}

.scroll-cue:hover {
  color: rgb(244 247 255 / 0.85);
}

.scroll-cue:focus-visible {
  outline: var(--tk-focus-width) solid var(--tk-brand);
  outline-offset: var(--tk-focus-offset);
}

@keyframes scroll-cue-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg {
    animation: none;
  }
}

.screen-soft {
  display: flex;
  align-items: center;
  background: #050b16;
  color: #e8f1ff;
}

.soft {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.soft-head {
  margin-left: calc(50% + 28px);
}

.soft h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: left;
  text-wrap: balance;
}

.soft-sub {
  max-width: 34em;
  margin: 8px 0 0;
  color: #8da2bf;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  text-wrap: pretty;
}

.soft-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-top: 48px;
}

.soft-two > div:first-child {
  grid-column: 2;
  grid-row: 1;
}

.soft-ft {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid rgb(110 170 255 / 0.22);
}

.soft-ico {
  display: block;
  width: 24px;
  height: 24px;
  margin-top: -2px;
  color: var(--tk-blue-400);
}

.soft-ico svg {
  display: block;
  width: 24px;
  height: 24px;
}

.soft-ft:first-child {
  border-top: 1px solid rgb(110 170 255 / 0.22);
}

.soft-ft h3 {
  margin: 0;
  color: #f4f7ff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

.soft-ft p {
  margin: var(--tk-space-md) 0 0;
  color: #8da2bf;
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

.soft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--tk-space-sm);
}

.soft-tags span {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--tk-blue-400);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.soft-viz {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 520px);
  margin: 0 auto;
}

.soft-viz svg {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
}

.soft-viz-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.soft-contour {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.viz-split {
  stroke: color-mix(in srgb, var(--tk-blue-400) 42%, transparent);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

/* 扫描贴合开挖轮廓：亮线 + 拖尾都裁进断面里，从左往右扫 */
.viz-line {
  fill: color-mix(in srgb, var(--tk-blue-400) 72%, #fff);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--tk-blue-400) 70%, transparent));
}

.viz-sweep {
  animation: viz-scan 8s linear infinite;
  animation-play-state: paused;
}

/* 裁剪窗只做位移：格子底板不跟着走，只有窗口扫过的一段露出来 */
.viz-band {
  animation: viz-band 8s linear infinite;
  animation-play-state: paused;
}

.soft-viz.is-scanning .viz-sweep,
.soft-viz.is-scanning .viz-band {
  animation-play-state: running;
}

@keyframes viz-band {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(400px);
  }
}

/* 位移量 = viewBox 宽度 400（layue-section.ts） */
@keyframes viz-scan {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  96% {
    opacity: 1;
  }

  100% {
    transform: translateX(400px);
    opacity: 0;
  }
}

.soft-hole {
  fill: var(--tk-blue-400);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .soft-hole {
    opacity: 0.95;
  }

  .viz-sweep,
  .viz-band {
    display: none;
  }
}

.screen-scan {
  display: flex;
  align-items: center;
  background: linear-gradient(#050b16, #071324 50%, #050b16);
  color: #e8f1ff;
}

.scan {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.scan h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.scan-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-top: 36px;
}

.scan-points {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.scan-points li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid rgb(110 170 255 / 0.22);
}

.scan-points li:first-child {
  border-top: 1px solid rgb(110 170 255 / 0.22);
}

.scan-ico {
  width: 24px;
  height: 24px;
  margin-top: -2px;
  color: var(--tk-blue-400);
  fill: currentColor;
}

.scan-points h3 {
  margin: 0;
  color: #f4f7ff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
}

.scan-points p {
  margin: var(--tk-space-md) 0 0;
  color: #8da2bf;
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

.scan-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid rgb(110 170 255 / 0.17);
  border-radius: 12px;
  background: rgb(110 170 255 / 0.17);
}

.scan-specs div {
  padding: 16px 14px;
  background: #050b16;
}

.scan-specs b {
  display: block;
  color: var(--tk-blue-400);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.scan-specs span {
  color: #8da2bf;
  font-size: 12.5px;
}

.scan-visual {
  --scan-stage-h: clamp(400px, calc(100dvh - 285px), 637px);
  position: relative;
  width: 100%;
  height: var(--scan-stage-h);
}

/* 三维场景的氛围光放在画布下面，画布保持透明 */
.scan-atm {
  position: absolute;
  inset: -4% -2%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 54% 48% at 52% 46%, rgb(48 118 214 / 0.18), transparent 68%),
    radial-gradient(ellipse 38% 34% at 72% 32%, rgb(120 180 255 / 0.08), transparent 72%);
}

.scan-atm::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(110 170 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(110 170 255 / 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 46%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 46%, #000 8%, transparent 72%);
}

.scan-phone-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 最终截图抬到画布上方，让中央模型落在后面 */
.scan-phone-slot.is-front {
  z-index: 3;
}

.scan-phone {
  position: relative;
  width: min(300px, 80%, calc(var(--scan-stage-h) * 0.471));
  overflow: hidden;
  border: 6px solid #1b2a40;
  border-radius: 36px;
  user-select: none;
  -webkit-user-select: none;
  box-shadow:
    0 30px 80px rgb(0 0 0 / 0.6),
    0 0 60px color-mix(in srgb, var(--tk-blue-400) 22%, transparent);
  will-change: transform, opacity;
}

.scan-phone img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* 空心截图作为底图，完整截图从模型顶部向下逐行揭开 */
.scan-phone img.scan-phone-full {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: fill;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.scan-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scan-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--tk-blue-400) 5%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--tk-blue-400) 5%, transparent) 1px,
      transparent 1px
    );
  background-size: 26px 26px;
  clip-path: inset(0 0 calc(100% - 2px) 0);
  animation: scan-reveal-1 8s linear infinite;
}

.scan-grid-2 {
  animation-name: scan-reveal-2;
}

.scan-grid-3 {
  animation-name: scan-reveal-3;
}

.scan-grid-4 {
  animation-name: scan-reveal-4;
}

.scan-grid-5 {
  animation-name: scan-reveal-5;
}

.scan-sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: scan-down 8s linear infinite;
}

/* 离屏挂起：动画在不可见时锁定当前帧，滚回来继续，避免离屏起跑后停在原地 */
.screen-scan:not(.is-live) .scan-grid,
.screen-scan:not(.is-live) .scan-sweep {
  animation-play-state: paused;
}

.scan-sweep::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: color-mix(in srgb, var(--tk-blue-400) 72%, #fff);
  box-shadow:
    0 0 8px color-mix(in srgb, var(--tk-blue-400) 80%, transparent),
    0 0 24px 2px color-mix(in srgb, var(--tk-blue-400) 32%, transparent);
}

.scan-sweep::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 38%;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--tk-blue-400) 28%, transparent),
    color-mix(in srgb, var(--tk-blue-400) 10%, transparent) 48%,
    transparent
  );
}

@keyframes scan-down {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  96% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes scan-reveal-1 {
  from {
    clip-path: inset(-38% 0 calc(100% - 2px) 0);
  }
  to {
    clip-path: inset(62% 0 -2px 0);
  }
}

@keyframes scan-reveal-2 {
  from {
    clip-path: inset(-30% 0 calc(100% - 2px) 0);
  }
  to {
    clip-path: inset(70% 0 -2px 0);
  }
}

@keyframes scan-reveal-3 {
  from {
    clip-path: inset(-22% 0 calc(100% - 2px) 0);
  }
  to {
    clip-path: inset(78% 0 -2px 0);
  }
}

@keyframes scan-reveal-4 {
  from {
    clip-path: inset(-14% 0 calc(100% - 2px) 0);
  }
  to {
    clip-path: inset(86% 0 -2px 0);
  }
}

@keyframes scan-reveal-5 {
  from {
    clip-path: inset(-6% 0 calc(100% - 2px) 0);
  }
  to {
    clip-path: inset(94% 0 -2px 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-grid {
    animation: none;
  }

  .scan-grid-1 {
    clip-path: inset(10% 0 calc(52% - 2px) 0);
  }

  .scan-grid-2 {
    clip-path: inset(18% 0 calc(52% - 2px) 0);
  }

  .scan-grid-3 {
    clip-path: inset(26% 0 calc(52% - 2px) 0);
  }

  .scan-grid-4 {
    clip-path: inset(34% 0 calc(52% - 2px) 0);
  }

  .scan-grid-5 {
    clip-path: inset(42% 0 calc(52% - 2px) 0);
  }

  .scan-sweep {
    animation: none;
    transform: translateY(48%);
  }
}

.screen-v2 {
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  /* 和扫描仪标题同一条线：那一屏是整块居中，标题大约落在视口这条高度上 */
  padding-top: max(64px, calc((100dvh - 90px - 808px) / 2));
  background: #050b16;
  color: #f4f7ff;
}

.apply-page {
  width: 60%;
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: var(--tk-space-xl);
  row-gap: var(--tk-space-lg);
}

@media (min-width: 1200px) {
  .apply-page {
    grid-template-columns: minmax(0, 1fr) 600px;
  }
}

.apply-side {
  display: contents;
}

.apply-intro {
  position: relative;
  top: -40px;
  grid-column: 2;
  grid-row: 1;
  text-align: left;
}

.apply-intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: left;
  text-wrap: balance;
}

.apply-logo {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  /* 左侧整列都是动态 Logo 区：内容区从 20vw 开始，再向左补到屏幕边缘 */
  width: calc(100% + 20vw);
  margin-left: -20vw;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.apply-logo canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.apply {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  min-width: 0;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
}

.apply-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.apply-head img {
  width: 46px;
  height: 46px;
  flex: none;
  filter: brightness(0) invert(1);
}

.apply-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.apply-head p,
.apply-success p {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgb(244 247 255 / 0.72);
}

.apply-success-title {
  margin: 0;
  font-size: 18px;
  color: #f4f7ff;
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tk-space-lg) var(--tk-space-xl);
}

.apply-extra {
  margin-top: 16px;
}

.apply-grid > div {
  width: auto;
  min-width: 0;
}

.apply-grid > div:nth-child(even) {
  width: auto;
}

.apply label,
.apply-packages > span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: rgb(244 247 255 / 0.86);
}

.apply input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgb(110 170 255 / 0.36);
  border-radius: var(--tk-radius-sm);
  background: rgb(3 9 18 / 0.7);
  color: #e8f1ff;
  font: inherit;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.apply input::placeholder {
  color: #8da2bf;
}

.apply input.is-invalid,
.apply input.is-invalid:focus {
  border-color: var(--tk-danger);
  box-shadow: none;
}

.field-error {
  height: var(--tk-space-md);
  margin: var(--tk-space-2xs) 0;
  overflow: hidden;
  color: var(--tk-danger);
  font-size: 12px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(calc(var(--tk-space-2xs) * -1));
  transition:
    opacity var(--tk-dur-base) var(--tk-ease-out),
    transform var(--tk-dur-base) var(--tk-ease-out);
}

.field-error.is-on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .field-error,
  .package-ring {
    transition: none;
  }
}

.apply input:focus {
  outline: none;
  border-color: var(--tk-blue-600);
  background: rgb(3 9 18 / 0.7);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tk-blue-600) 15%, transparent);
}

.apply input[readonly],
.apply input[readonly]:focus {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgb(232 241 255 / 0.72);
  cursor: default;
}

.code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-right: 6px;
  border: 1px solid rgb(110 170 255 / 0.36);
  border-radius: var(--tk-radius-sm);
  background: rgb(3 9 18 / 0.7);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.code-row:focus-within {
  border-color: var(--tk-blue-600);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tk-blue-600) 15%, transparent);
}

.apply .code-row input,
.apply .code-row input:focus {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.code-row button,
.package-list button,
.company-picker button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.code-row button {
  flex: none;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: transparent;
  color: #3de0ff;
  font-size: 13px;
}

.code-row button:disabled {
  color: #8da2bf;
  cursor: default;
}

.company-cell {
  position: relative;
}

.company-picker {
  position: absolute;
  z-index: 5;
  left: 0;
  top: calc(100% + 6px);
  width: max(100%, 280px);
  max-height: 220px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.22);
  background: rgb(22 24 72 / 0.94);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.28);
}

.company-picker button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
}

.company-picker button:hover {
  background: rgb(255 255 255 / 0.12);
}

.company-meta {
  color: rgb(244 247 255 / 0.62);
  font-size: 12px;
}

.pwd-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: rgb(244 247 255 / 0.5);
}

.pwd-tips .ok {
  color: #d7ffe8;
}

.apply-packages {
  min-inline-size: 0;
  width: 100%;
  margin: var(--tk-space-lg) 0 0;
  padding: 0;
  border: 0;
}

.apply-packages legend {
  padding: 0;
  margin-bottom: var(--tk-space-sm);
  color: #fff;
  font-size: var(--tk-font-size-sm);
}

.package-list {
  --pkg-pad: 8px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tk-space-sm);
  padding: var(--pkg-pad);
}

.package-ring {
  position: absolute;
  z-index: 0;
  /* 4px 描边 + 2px 空隙：环比卡片向外让出 6px */
  top: calc(var(--pkg-pad) - 6px);
  bottom: calc(var(--pkg-pad) - 6px);
  left: calc(var(--pkg-pad) - 6px);
  box-sizing: border-box;
  width: calc((100% - 2 * var(--pkg-pad)) / 3 + 4px);
  border: 4px solid var(--tk-brand);
  border-radius: calc(var(--tk-radius-sm) + 4px);
  pointer-events: none;
  transform: translateX(calc(var(--pkg-i) * (100% + var(--tk-space-sm) - 12px)));
}

.package-list.is-ready .package-ring {
  transition: transform var(--tk-dur-base) var(--tk-ease-out);
}

.package-list button {
  --px: 50%;
  --py: 18%;
  --from-left: 0.5;
  --from-top: 0.5;
  --bg-x: 50%;
  --bg-y: 50%;
  --from-center: 1;
  --rx: 0deg;
  --ry: 0deg;
  --on: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
  min-height: 168px;
  height: 100%;
  padding: 20px var(--tk-space-sm);
  overflow: hidden;
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: #10141c;
  color: #fff;
  text-align: left;
  transform: perspective(600px) rotateY(var(--rx)) rotateX(var(--ry));
}

.pkg-foil,
.pkg-foil-spark,
.pkg-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.pkg-foil {
  z-index: 2;
}

/* 扫光经过时点亮全息箔：独立层，只跟随扫光动画，不读写 hover 变量 */
.pkg-foil-spark {
  z-index: 2;
  background-image: linear-gradient(
    115deg,
    transparent 40%,
    rgb(255 255 255 / 0.85) 50%,
    transparent 60%
  );
  background-size: 220% 220%;
  background-repeat: no-repeat;
  mix-blend-mode: color-dodge;
  opacity: 0;
}

.pkg-glare {
  z-index: 1;
  background: radial-gradient(
    farthest-corner circle at var(--px) var(--py),
    rgb(255 255 255 / 0.72) 0%,
    rgb(255 255 255 / 0.18) 20%,
    transparent 58%
  );
  mix-blend-mode: soft-light;
  opacity: var(--on);
  transition: opacity var(--tk-dur-base) var(--tk-ease-out);
}

.package-list button > :not(.pkg-foil, .pkg-foil-spark, .pkg-glare, .pkg-v, .pkg-sweep) {
  position: relative;
  z-index: 3;
}

.package-list button[data-foil='common'] {
  background: linear-gradient(
    180deg,
    var(--tk-blue-400) 0%,
    var(--tk-brand) 42%,
    var(--tk-blue-700) 100%
  );
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%);
  color: #f4f7ff;
}

.package-list button[data-foil='common'] .pkg-foil,
.package-list button[data-foil='common'] .pkg-glare {
  display: none;
}

.package-list button[data-foil='reverse'] {
  background: linear-gradient(165deg, #f4f7fa 0%, #c9d0d8 46%, #8d98a4 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
  color: #1a2433;
}

.package-list button[data-foil='rare'] {
  background: linear-gradient(165deg, #fdf3d2 0%, #e4c56c 46%, #b68d41 100%);
  box-shadow: inset 0 1px 0 rgb(255 249 232 / 85%);
  color: #2a2110;
}

.package-list button[data-foil='reverse'] .pkg-foil,
.package-list button[data-foil='rare'] .pkg-foil {
  background-image:
    radial-gradient(circle at var(--px) var(--py), #fff 5%, #000 50%, #fff 80%),
    linear-gradient(-45deg, #000 15%, #fff, #000 85%);
  background-blend-mode: soft-light;
  background-size:
    120% 120%,
    200% 200%;
  background-repeat: no-repeat, no-repeat;
  background-position:
    center center,
    calc(100% * var(--from-left)) calc(100% * var(--from-top));
  filter: brightness(0.4) contrast(1.25) saturate(0);
  mix-blend-mode: color-dodge;
  opacity: clamp(0, calc((0.55 * var(--on)) - (var(--from-center) * 0.25)), 0.55);
}

.package-list button[data-foil='reverse'] .pkg-foil,
.package-list button[data-foil='rare'] .pkg-foil,
.package-list button[data-foil='reverse'] .pkg-foil-spark,
.package-list button[data-foil='rare'] .pkg-foil-spark {
  -webkit-mask-image: var(--logo), linear-gradient(to bottom, transparent 34%, #000 56%);
  mask-image: var(--logo), linear-gradient(to bottom, transparent 34%, #000 56%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-size:
    30% 28.7%,
    100% 100%;
  mask-size:
    30% 28.7%,
    100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
}

.package-list button[data-foil='reverse'] .pkg-glare,
.package-list button[data-foil='rare'] .pkg-glare {
  opacity: var(--on);
  mix-blend-mode: overlay;
  background-image: radial-gradient(
    farthest-corner circle at var(--px) var(--py),
    hsl(0 0% 100% / 0.55) 8%,
    hsl(0 0% 100% / 0.3) 18%,
    hsl(0 0% 0% / 0.45) 85%
  );
  filter: brightness(0.85) contrast(1.2);
  transition: none;
}

.pkg-v {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    var(--logo),
    repeating-linear-gradient(
      0deg,
      hsl(2 100% 73%) 5%,
      hsl(53 100% 69%) 10%,
      hsl(93 100% 69%) 15%,
      hsl(176 100% 76%) 20%,
      hsl(228 100% 74%) 25%,
      hsl(283 100% 73%) 30%,
      hsl(2 100% 73%) 35%
    ),
    repeating-linear-gradient(
      133deg,
      #0e152e 0%,
      hsl(180 10% 60%) 3.8%,
      hsl(180 29% 66%) 4.5%,
      hsl(180 10% 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%
    ),
    radial-gradient(
      farthest-corner circle at var(--px) var(--py),
      rgb(0 0 0 / 0.1) 12%,
      rgb(0 0 0 / 0.15) 20%,
      rgb(0 0 0 / 0.25) 120%
    );
  background-position:
    center center,
    0% var(--bg-y),
    calc(var(--bg-x) + (var(--bg-y) * 0.2)) var(--bg-y),
    var(--bg-x) var(--bg-y);
  background-size:
    33%,
    200% 700%,
    300% 100%,
    200% 100%;
  background-blend-mode: soft-light, hue, hard-light;
  filter: brightness(calc((var(--from-center) * 0.25) + 0.3)) contrast(1.2) saturate(1.8);
  mix-blend-mode: color-dodge;
  opacity: calc(var(--on) * 0.65);
  transition: opacity var(--tk-dur-base) var(--tk-ease-out);
}

.pkg-v::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(
    farthest-corner circle at var(--px) var(--py),
    #fff 0%,
    transparent 40%
  );
  background-size: cover;
  mix-blend-mode: overlay;
  opacity: 0.35;
}

.pkg-v::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-position:
    center center,
    0% var(--bg-y),
    calc((var(--bg-x) + (var(--bg-y) * 0.2)) * -1) calc(var(--bg-y) * -1),
    var(--bg-x) var(--bg-y);
  background-size:
    33%,
    200% 400%,
    195% 100%,
    200% 100%;
  background-blend-mode: soft-light, hue, hard-light;
  filter: brightness(calc((var(--from-center) * 0.3) + 0.55)) contrast(1.3) saturate(1.2);
  mix-blend-mode: exclusion;
}

.pkg-sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background-image: linear-gradient(
    115deg,
    transparent 44%,
    rgb(255 255 255 / 0.5) 50%,
    transparent 56%
  );
  background-size: 220% 220%;
  background-repeat: no-repeat;
  opacity: 0;
}

.package-list button[aria-checked='true'] .pkg-sweep {
  animation: pkg-sweep 4s linear infinite;
}

.package-list button[aria-checked='true'] .pkg-foil-spark {
  animation: pkg-foil-spark 4s linear infinite;
}

@keyframes pkg-foil-spark {
  0% {
    background-position: 100% 100%;
    opacity: 0;
  }

  6% {
    opacity: 0.9;
  }

  38% {
    background-position: 0% 0%;
    opacity: 0.9;
  }

  46% {
    background-position: 0% 0%;
    opacity: 0;
  }

  100% {
    background-position: 0% 0%;
    opacity: 0;
  }
}

@keyframes pkg-sweep {
  0% {
    background-position: 100% 100%;
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  38% {
    background-position: 0% 0%;
    opacity: 1;
  }

  46% {
    background-position: 0% 0%;
    opacity: 0;
  }

  100% {
    background-position: 0% 0%;
    opacity: 0;
  }
}

.package-list button[data-foil='reverse'] .pkg-features li {
  color: rgb(23 32 51 / 0.72);
}

.package-list button[data-foil='rare'] .pkg-features li {
  color: rgb(42 33 16 / 0.78);
}

.package-list button[data-foil='common'] .pkg-features li {
  color: rgb(244 247 255 / 0.85);
}

/* 蓝底卡片上用白底蓝勾，避免品牌色底上的蓝勾消失 */
.package-list button[data-foil='common'] .pkg-features li::before {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3E%3Cpath%20d='M2.5%206.4%205%208.9l4.5-5.4'%20fill='none'%20stroke='%230570ee'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pkg-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--tk-space-sm);
  width: 100%;
  font-size: var(--tk-font-size-2xl);
  font-weight: var(--tk-font-weight-semibold);
  line-height: 1.25;
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .package-list button,
  .pkg-glare,
  .pkg-foil {
    transition: none;
    transform: none;
  }

  .pkg-sweep {
    animation: none;
    opacity: 0;
  }

  .pkg-foil-spark {
    animation: none;
    opacity: 0;
  }
}

.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: rgb(244 247 255 / 0.62);
  font-size: var(--tk-font-size-md);
  line-height: 1.25;
}

.pkg-features li strong {
  font-weight: var(--tk-font-weight-semibold);
}

.pkg-base-feature::after {
  content: '+';
  margin-left: 2px;
  color: var(--tk-brand);
  font-weight: var(--tk-font-weight-semibold);
}

.pkg-features li.is-grouped {
  font-size: var(--tk-font-size-xs);
  letter-spacing: -0.04em;
}

.pkg-features li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: var(--tk-brand);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3E%3Cpath%20d='M2.5%206.4%205%208.9l4.5-5.4'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
}

.apply-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: var(--tk-h-lg);
  margin-top: var(--tk-space-lg);
  margin-left: auto;
  padding: 0 var(--tk-space-md);
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: var(--tk-brand);
  color: var(--tk-brand-on);
  font: inherit;
  font-size: var(--tk-font-size-md);
  font-weight: var(--tk-font-weight-semibold);
  cursor: pointer;
  transition:
    background-color var(--tk-dur-base) var(--tk-ease-out),
    transform var(--tk-dur-fast) var(--tk-ease-out);
}

.apply-submit:hover:not(:disabled) {
  background: var(--tk-blue-600);
}

.apply-submit:active:not(:disabled) {
  background: var(--tk-blue-700);
  transform: scale(var(--tk-press-scale));
}

.apply-submit:focus-visible {
  outline: var(--tk-focus-width) solid var(--tk-brand);
  outline-offset: var(--tk-focus-offset);
}

.apply-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.apply-success-mask {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: rgb(3 8 18 / 0.64);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.apply-success-pos {
  position: fixed;
  inset: 0;
  z-index: 6001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--tk-space-lg);
}

.apply-success-pos[hidden],
.apply-success-dialog[hidden] {
  display: none;
}

.apply-success-dialog {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(400px, 100%);
  padding: var(--tk-space-lg);
  border: 1px solid rgb(120 170 255 / 0.28);
  border-radius: var(--tk-radius-lg);
  background: #0c1727;
  color: #f4f7ff;
  font-family: var(--tk-font-family);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.5);
  outline: none;
}

.apply-success-dialog * {
  box-sizing: border-box;
}

.apply-success-dialog-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: var(--tk-font-size-xl);
  font-weight: var(--tk-font-weight-semibold);
  line-height: 1.3;
}

.apply-success-check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--tk-success);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3E%3Cpath%20d='M2.5%206.4%205%208.9l4.5-5.4'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.apply-success-copy {
  margin: var(--tk-space-sm) 0 0;
  color: rgb(226 238 255 / 0.72);
  font-size: var(--tk-font-size-md);
  line-height: 1.5;
}

.apply-success-close {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  height: var(--tk-h-md);
  margin-top: var(--tk-space-lg);
  padding: 0 var(--tk-space-md);
  border: 0;
  border-radius: var(--tk-radius-sm);
  background: var(--tk-brand);
  color: var(--tk-brand-on);
  font: inherit;
  font-size: var(--tk-font-size-md);
  font-weight: var(--tk-font-weight-semibold);
  cursor: pointer;
  transition:
    background-color var(--tk-dur-base) var(--tk-ease-out),
    transform var(--tk-dur-fast) var(--tk-ease-out);
}

.apply-success-close:hover {
  background: var(--tk-blue-600);
}

.apply-success-close:active {
  transform: scale(var(--tk-press-scale));
}

.apply-success-close:focus-visible {
  outline: var(--tk-focus-width) solid var(--tk-brand);
  outline-offset: var(--tk-focus-offset);
}

@media (max-width: 760px) {
  .apply {
    width: 100%;
  }

  .apply-grid {
    grid-template-columns: 1fr;
  }

  .apply-grid > div,
  .apply-grid > div:nth-child(even) {
    width: 100%;
  }

  .apply-head h1 {
    font-size: 20px;
  }

  .hero-panel {
    width: calc(100% - 48px);
  }
}

/* ── 静态页补充：隐藏属性与轻提示 ── */
[hidden] {
  display: none !important;
}

.page-toast-host {
  position: fixed;
  z-index: 7000;
  top: max(20px, env(safe-area-inset-top));
  left: 50%;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid rgb(120 170 255 / 0.28);
  border-radius: 8px;
  background: #0c1727;
  color: #e8f1ff;
  font-family: var(--app-font);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-toast-host.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.page-toast-host[data-kind='success'] {
  border-color: rgb(22 163 74 / 0.45);
}

.page-toast-host[data-kind='warning'] {
  border-color: rgb(234 88 12 / 0.45);
}

.page-toast-host[data-kind='error'] {
  border-color: rgb(220 38 38 / 0.45);
}

/* ── 窄屏兜底：原站桌面页没有完整移动版，这里只保证可用 ── */
@media (max-width: 760px) {
  .site-head-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .site-brand {
    gap: 10px;
  }

  .site-logo {
    width: 36px;
    height: 36px;
  }

  .site-name {
    font-size: 20px;
  }

  .site-slogan {
    display: none;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav button:not(.site-cta) {
    display: none;
  }

  .site-nav .site-cta {
    height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }

  .screen-stage {
    padding: 16px;
  }

  .scene {
    inset: 16px;
    --scene-fade: 32px;
  }

  .hero-panel {
    top: 52%;
    left: 0;
    width: 100%;
    padding: 12px;
  }

  .hero-flow-key,
  .hero-flow-prefix {
    font-size: clamp(24px, 8vw, 34px);
  }

  .screen-v2 {
    padding-top: 76px;
  }

  .apply-page {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0 16px;
    row-gap: 16px;
  }

  .apply-intro {
    top: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .apply-logo {
    display: none;
  }

  .apply {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }

  .apply-submit {
    width: 100%;
  }

  .package-list {
    grid-template-columns: 1fr;
  }

  .package-list button {
    min-height: 0;
  }

  .package-ring {
    display: none;
  }
}

.file-mode-hint {
  position: fixed;
  z-index: 8000;
  bottom: 20px;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 8px 14px;
  border: 1px solid rgb(234 88 12 / 0.45);
  border-radius: 8px;
  background: #0c1727;
  color: #ffd7b5;
  font-family: var(--app-font);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.4);
  transform: translateX(-50%);
  pointer-events: none;
}

/* ── 移动版销售页（移植自 TheBlastSaleApplyMobile.vue） ── */
html[data-view='mobile'] .blast-sale {
  display: none;
}

.sale-m {
  display: none;
}

html[data-view='mobile'] .sale-m {
  display: block;
}

.sale-m,
.sale-m *,
.sale-m *::before,
.sale-m *::after,
.m-sheet,
.m-sheet *,
.m-sheet *::before,
.m-sheet *::after {
  box-sizing: border-box;
}

.sale-m {
  --m-bg: #050b16;
  --m-panel: #0a1422;
  --m-line: rgb(110 170 255 / 0.18);
  --m-muted: #8da2bf;
  --m-text: #f4f7ff;
  position: relative;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: var(--m-bg);
  color: var(--m-text);
  font-family: Inter, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  -webkit-overflow-scrolling: touch;
}

.m-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--m-line);
  background: rgb(5 11 22 / 0.88);
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.m-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 560px;
  height: 56px;
  margin: 0 auto;
  padding: 0 16px;
}

.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: var(--tk-font-weight-semibold);
  letter-spacing: 0.04em;
  cursor: pointer;
}

.m-brand img {
  display: block;
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.m-head-cta {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--tk-brand);
  color: var(--tk-brand-on);
  font: inherit;
  font-size: 13px;
  font-weight: var(--tk-font-weight-semibold);
  cursor: pointer;
}

.m-head-cta:active {
  transform: scale(var(--tk-press-scale));
}

.m-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - 56px);
  overflow: hidden;
  padding: 56px 20px 34px;
}

.m-hero-art {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: -2;
  width: min(94%, 470px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.9;
}

.m-hero-art::before {
  content: '';
  position: absolute;
  inset: -16% -12%;
  z-index: -1;
  background-image:
    linear-gradient(rgb(69 151 247 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(69 151 247 / 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, #000 20%, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 42%, #000 20%, transparent 76%);
}

.m-hero-art::after {
  content: '';
  position: absolute;
  top: 3%;
  left: 50%;
  width: min(80%, 400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(69 151 247 / 0.13), transparent 68%);
  filter: blur(24px);
  transform: translateX(-50%);
  z-index: -2;
}

.m-hero-art svg {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgb(69 151 247 / 0.18));
}

.m-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgb(5 11 22 / 0.02) 0%,
      rgb(5 11 22 / 0.09) 34%,
      rgb(5 11 22 / 0.38) 66%,
      var(--m-bg) 100%
    ),
    linear-gradient(90deg, rgb(5 11 22 / 0.1) 0%, transparent 68%);
}

.m-hero-copy {
  --m-hero-title-size: clamp(34px, 9.5vw, 46px);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.m-hero-art.is-scanning .viz-sweep,
.m-hero-art.is-scanning .viz-band {
  animation-play-state: running;
}

.m-hero-3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.m-hero-title {
  margin: 0;
  color: #fff;
  font-size: var(--m-hero-title-size);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.m-hero-title span {
  display: block;
  margin-top: 4px;
  color: #dbe7f8;
  font-weight: 600;
}

.m-sec {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 42px 20px;
  scroll-margin-top: 64px;
}

.m-sec + .m-sec {
  border-top: 1px solid var(--m-line);
}

.m-sec h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}

.m-lead {
  margin: 10px 0 0;
  color: var(--m-muted);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.m-point {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--m-line);
}

.m-point:last-child {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--m-line);
}

.m-point-num {
  color: var(--tk-blue-400);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.m-point h3 {
  margin: 0;
  color: #eef4ff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.m-point p {
  margin: 6px 0 0;
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.6;
  text-wrap: pretty;
}

.m-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.m-tags span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(69 151 247 / 0.14);
  color: #bcd9ff;
  font-size: 12px;
  line-height: 1.5;
}

.m-scan-media {
  position: relative;
  width: min(248px, 72%);
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  background: #000;
}

.m-scan-media img {
  display: block;
  width: 100%;
  height: auto;
}

.m-steps {
  display: flex;
  flex-direction: column;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.m-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--m-line);
}

.m-steps li:last-child {
  border-bottom: 1px solid var(--m-line);
}

.m-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgb(69 151 247 / 0.14);
  color: var(--tk-blue-400);
  font-size: 12px;
  font-weight: 600;
}

.m-steps h3 {
  margin: 0;
  color: #eef4ff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.m-steps p {
  margin: 4px 0 0;
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.6;
}

.m-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--m-line);
}

.m-specs div {
  min-width: 0;
}

.m-specs b {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.m-specs span {
  display: block;
  margin-top: 2px;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.4;
}

.m-form {
  margin-top: 22px;
}

.m-field {
  position: relative;
  margin-bottom: 12px;
}

.m-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.4;
}

.m-field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid rgb(110 170 255 / 0.32);
  border-radius: 10px;
  background: rgb(3 9 18 / 0.72);
  color: #e8f1ff;
  font: inherit;
  font-size: 16px;
  transition: border-color var(--tk-dur-base) var(--tk-ease-out);
}

.m-field input::placeholder {
  color: #7f93ae;
}

.m-field input:focus {
  border-color: var(--tk-blue-500);
  outline: none;
}

.m-field input[aria-invalid='true'] {
  border-color: var(--tk-danger);
}

.m-error {
  min-height: 16px;
  margin: 2px 0 0;
  color: var(--tk-danger);
  font-size: 12px;
  line-height: 1.25;
}

.m-code {
  display: flex;
  gap: 8px;
}

.m-code input {
  flex: 1;
  min-width: 0;
}

.m-code button {
  flex: none;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--tk-blue-500);
  border-radius: 10px;
  background: rgb(69 151 247 / 0.12);
  color: #cfe4ff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.m-code button:disabled {
  opacity: 0.45;
  cursor: default;
}

.m-org {
  height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--m-muted) !important;
  font-size: 14px !important;
  cursor: default;
}

.m-org:focus {
  border: 0;
  outline: none;
}

.m-company {
  z-index: 4;
}

.m-candidates {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 6;
  max-height: 190px;
  margin: 0;
  padding: 4px;
  overflow: auto;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: #0c1727;
  box-shadow: 0 16px 36px rgb(0 0 0 / 0.45);
  list-style: none;
}

.m-candidates button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e8f1ff;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.m-candidates button:active {
  background: rgb(255 255 255 / 0.1);
}

.m-candidate-meta {
  color: var(--m-muted);
  font-size: 11px;
  line-height: 1.4;
}

.m-password {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  background: rgb(8 18 32 / 0.6);
}

.m-password-title {
  margin: 0 0 12px;
  color: #e8f1ff;
  font-size: 13px;
  font-weight: 600;
}

.m-password .m-field:last-of-type {
  margin-bottom: 0;
}

.m-hint {
  margin: 8px 0 0;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 1.5;
}

.m-packages {
  min-inline-size: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.m-packages legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--m-muted);
  font-size: 13px;
}

.m-pkg-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-pkg-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 150px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    var(--tk-blue-400) 0%,
    var(--tk-brand) 42%,
    var(--tk-blue-700) 100%
  );
  color: #f4f7ff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 0 0 0 var(--m-bg),
    0 0 0 0 transparent;
  transition:
    padding var(--tk-dur-base) var(--tk-ease-out),
    gap var(--tk-dur-base) var(--tk-ease-out),
    border-color var(--tk-dur-base) var(--tk-ease-out),
    box-shadow var(--tk-dur-base) var(--tk-ease-out);
}

.m-pkg-card.tier-1 {
  background: linear-gradient(165deg, #f4f7fa 0%, #c9d0d8 46%, #8d98a4 100%);
  border-color: rgb(255 255 255 / 0.45);
  color: #1a2433;
}

.m-pkg-card.tier-2 {
  background: linear-gradient(165deg, #fdf3d2 0%, #e4c56c 46%, #b68d41 100%);
  border-color: rgb(255 244 214 / 0.65);
  color: #2a2110;
}

.m-pkg-card.is-on {
  padding: 18px;
  gap: 14px;
  border-color: var(--tk-brand);
  box-shadow:
    0 0 0 2px var(--m-bg),
    0 0 0 4px var(--tk-brand);
}

.m-pkg-card:focus-visible {
  outline: var(--tk-focus-width) solid var(--tk-brand);
  outline-offset: 4px;
}

.m-pkg-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.m-pkg-title {
  color: inherit;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

.m-pkg-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tk-brand);
  color: var(--tk-brand-on);
  font-size: 11px;
  line-height: 1.5;
}

.m-pkg-features {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: gap var(--tk-dur-base) var(--tk-ease-out);
}

.m-pkg-card.is-on .m-pkg-features {
  gap: 10px;
}

.m-pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #c9dcf5;
  font-size: 13px;
  line-height: 1.45;
}

.m-pkg-features li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--tk-brand);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3E%3Cpath%20d='M2.5%206.4%205%208.9l4.5-5.4'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 9px;
}

.m-pkg-card.tier-1 .m-pkg-features li {
  color: rgb(23 32 51 / 0.74);
}

.m-pkg-card.tier-2 .m-pkg-features li {
  color: rgb(42 33 16 / 0.78);
}

.m-pkg-features strong {
  font-weight: 600;
}

.m-card-foil,
.m-card-glare,
.m-card-sweep {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.m-card-foil {
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s var(--tk-ease-out);
}

.m-pkg-card.tier-1 .m-card-foil,
.m-pkg-card.tier-2 .m-card-foil {
  -webkit-mask-image: var(--logo), linear-gradient(to bottom, transparent 22%, #000 54%);
  mask-image: var(--logo), linear-gradient(to bottom, transparent 22%, #000 54%);
  -webkit-mask-size:
    30% 28.7%,
    100% 100%;
  mask-size:
    30% 28.7%,
    100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.m-pkg-card.tier-1 .m-card-foil {
  background-image:
    radial-gradient(circle at 32% 24%, #fff 5%, #000 50%, #fff 80%),
    linear-gradient(-45deg, #000 15%, #fff, #000 85%);
  background-blend-mode: soft-light;
  filter: brightness(0.5) contrast(1.35) saturate(0);
  mix-blend-mode: color-dodge;
}

.m-pkg-card.tier-1.is-on .m-card-foil {
  opacity: 0.42;
}

.m-pkg-card.tier-2 .m-card-foil {
  background-image:
    radial-gradient(circle at 32% 24%, #fff 5%, #000 50%, #fff 80%),
    linear-gradient(
      118deg,
      #fff6d6 0%,
      #e8c56a 22%,
      #fffaf0 42%,
      #f0d48a 62%,
      #c9a24a 82%,
      #fff4cc 100%
    );
  background-blend-mode: soft-light;
  filter: brightness(0.5) contrast(1.3) saturate(1.05);
  mix-blend-mode: color-dodge;
}

.m-pkg-card.tier-2.is-on .m-card-foil {
  opacity: 0.3;
}

.m-card-glare {
  z-index: 1;
  background: radial-gradient(
    farthest-corner circle at 28% 20%,
    rgb(255 255 255 / 0.55) 0%,
    rgb(255 255 255 / 0.12) 28%,
    transparent 62%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.35s var(--tk-ease-out);
}

.m-pkg-card.is-on .m-card-glare {
  opacity: 0.7;
}

.m-card-sweep {
  z-index: 2;
  background-image: linear-gradient(
    115deg,
    transparent 44%,
    rgb(255 255 255 / 0.5) 50%,
    transparent 56%
  );
  background-size: 220% 220%;
  background-repeat: no-repeat;
  opacity: 0;
}

.m-pkg-card.is-on .m-card-sweep {
  animation: m-card-sweep 4s linear infinite;
}

@keyframes m-card-sweep {
  0% {
    background-position: 100% 100%;
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  38% {
    background-position: 0% 0%;
    opacity: 1;
  }

  46% {
    background-position: 0% 0%;
    opacity: 0;
  }

  100% {
    background-position: 0% 0%;
    opacity: 0;
  }
}

.m-pkg-state {
  padding: 14px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  color: var(--m-muted);
  font-size: 13px;
}

.m-pkg-state button {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tk-blue-400);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.m-plus {
  margin-left: 2px;
  color: var(--tk-brand);
  font-weight: 600;
}

.m-submit {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 10px;
  background: var(--tk-brand);
  color: var(--tk-brand-on);
  font: inherit;
  font-size: 16px;
  font-weight: var(--tk-font-weight-semibold);
  cursor: pointer;
  transition:
    background-color var(--tk-dur-base) var(--tk-ease-out),
    transform var(--tk-dur-fast) var(--tk-ease-out);
}

.m-submit:active:not(:disabled) {
  background: var(--tk-blue-700);
  transform: scale(var(--tk-press-scale));
}

.m-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.m-submit:focus-visible,
.m-head-cta:focus-visible,
.m-sheet-btn:focus-visible {
  outline: var(--tk-focus-width) solid var(--tk-brand);
  outline-offset: var(--tk-focus-offset);
}

.m-success-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  background: var(--m-panel);
}

.m-success-title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.m-success-card p {
  margin: 6px 0 0;
  color: var(--m-muted);
  font-size: 13px;
  line-height: 1.6;
}

.m-foot {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--m-line);
  color: #6f86a2;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.m-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgb(0 0 0 / 0.64);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.m-sheet-pos {
  position: fixed;
  inset: 0;
  z-index: 9001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.m-sheet {
  width: 100%;
  max-width: 560px;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  border: 1px solid rgb(120 170 255 / 0.24);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #0c1727;
  color: #f4f7ff;
  font-family: Inter, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  box-shadow: 0 -18px 60px rgb(0 0 0 / 0.5);
  outline: none;
}

.m-sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.m-success-check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--tk-success);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3E%3Cpath%20d='M2.5%206.4%205%208.9l4.5-5.4'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.m-sheet-copy {
  margin: 8px 0 0;
  color: #a9bdd8;
  font-size: 14px;
  line-height: 1.5;
}

.m-sheet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--tk-brand);
  color: var(--tk-brand-on);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.m-sheet-btn:active {
  background: var(--tk-blue-700);
  transform: scale(var(--tk-press-scale));
}

@media (max-height: 720px) {
  .m-hero-art {
    top: 46%;
    width: min(68%, 260px);
    opacity: 0.64;
  }

  .m-hero-shade {
    background:
      linear-gradient(
        180deg,
        rgb(5 11 22 / 0.06) 0%,
        rgb(5 11 22 / 0.2) 32%,
        rgb(5 11 22 / 0.55) 60%,
        var(--m-bg) 100%
      ),
      linear-gradient(90deg, rgb(5 11 22 / 0.12) 0%, transparent 70%);
  }
}

@media (min-width: 600px) {
  .m-hero {
    min-height: 720px;
  }

  .m-form,
  .m-sheet-btn {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viz-sweep,
  .viz-band,
  .m-scan-media .scan-grid,
  .m-scan-media .scan-sweep {
    display: none;
    animation: none;
  }

  .m-head-cta,
  .m-submit,
  .m-sheet-btn {
    transition: none;
  }
}
