/**
 * Run loading 共享样式（单一数据源）
 * index.html 的 boot 覆盖层与 KtLoadingRun2.vue 组件共用本文件，
 * 全部使用 vw 单位（与 uni-app rpx 在 ≤960px 时等价、且不受 rpx 封顶影响），
 * 保证两处渲染完全一致，交接时不跳动。
 *
 * 数值对照 KtLoadingRun2：N rpx = (N / 7.5) vw。
 */

.run-loading-container,
.run-loading-container * {
  box-sizing: border-box;
}

.run-loading-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99991;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  /* 钉死字体，避免组件(uni-app DOM)与 index.html(body) 继承到不同默认字体导致文字宽度差异 */
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 左上角 AI 徽标 */
.run-loading-container .run-ai-badge2 {
  position: fixed;
  top: calc(3.2vw + env(safe-area-inset-top));
  left: calc(0.533vw + env(safe-area-inset-left));
  z-index: 3;
  height: 20vw;
}

.run-loading-container .run-ai-badge2-bg {
  position: absolute;
  top: 0.533vw;
  left: 0.533vw;
  z-index: 0;
  width: 45.333vw;
  height: 18.667vw;
  pointer-events: none;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  clip-path: polygon(
    1.867vw 0,
    calc(100% - 1.867vw) 0,
    100% 1.867vw,
    100% calc(100% - 1.867vw),
    calc(100% - 1.867vw) 100%,
    1.867vw 100%,
    0 calc(100% - 1.867vw),
    0 1.867vw
  );
}

.run-loading-container .run-ai-badge2-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3.2vw 3.2vw 2.667vw 4.267vw;
  font-style: italic;
}

.run-loading-container .run-ai-badge2-title {
  display: flex;
  align-items: baseline;
  line-height: 1;
  transform: skewX(-8deg);
}

.run-loading-container .run-ai-badge2-mark {
  margin-right: 1.333vw;
  padding-right: 4px;
  font-size: 6.4vw;
  font-weight: bold;
  letter-spacing: -0.133vw;
  background: linear-gradient(180deg, #0964f7 0%, #3cc8ff 70%, #0a5fd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

.run-loading-container .run-ai-badge2-loading {
  font-size: 4.533vw;
  font-weight: 900;
  letter-spacing: -0.133vw;
  color: #103379;
  animation: run-ai-loading 1.2s ease-in-out infinite;
}

.run-loading-container .run-ai-badge2-sub {
  margin-top: 2.4vw;
  font-size: 3.467vw;
  font-weight: 600;
  line-height: 1.2;
  color: #103379;
  font-style: normal;
}

@keyframes run-ai-loading {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.72;
  }
}

.run-loading-container .run-loading-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -13.333vw;
}

.run-loading-container .run-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.run-loading-container .run-center-image {
  width: 85.333vw;
  height: 85.333vw;
  object-fit: contain;
}

.run-loading-container .run-loading-text {
  margin-top: 10.667vw;
  font-size: 4.8vw;
  line-height: 1;
  color: #0964f7;
  letter-spacing: 0.267vw;
  animation: run-text 1.2s ease-in-out infinite;
}

@keyframes run-text {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
}

/* PC 端：放大左上角 AI 文案与中央跑步图，底部文案保持原尺寸（与组件 isPc 一致） */
.run-loading-container--pc .run-ai-badge2 {
  top: calc(16px + env(safe-area-inset-top));
  left: calc(12px + env(safe-area-inset-left));
  width: 340px;
  height: 116px;
}

.run-loading-container--pc .run-ai-badge2-bg {
  top: 4px;
  left: 4px;
  width: 324px;
  height: 108px;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
}

.run-loading-container--pc .run-ai-badge2-content {
  padding: 18px 18px 14px 24px;
}

.run-loading-container--pc .run-ai-badge2-mark {
  margin-right: 8px;
  font-size: 38px;
}

.run-loading-container--pc .run-ai-badge2-loading {
  font-size: 28px;
}

.run-loading-container--pc .run-ai-badge2-sub {
  margin-top: 12px;
  font-size: 20px;
  white-space: nowrap;
}

.run-loading-container--pc .run-loading-box {
  margin-top: -48px;
}

.run-loading-container--pc .run-center-image {
  width: 480px;
  height: 480px;
}

.run-loading-container--pc .run-loading-text {
  font-size: 28px;
}