/* ==================================================================
   启动缓冲页（Splash）· 网页端共用样式
   ------------------------------------------------------------------
   · 独立文件：页面只加一行 <link rel="stylesheet" href="/splash.css">，
     不改动各页面自己的样式文件（避免与同事的改动冲突）
   · 覆盖整屏（position:fixed + 极高 z-index），叠在应用之上显示，
     背后的页面照常加载；逻辑见 /splash.js
   · 排版以手机优先：主标题 1~2 行、卖点竖排、无横向滚动
   ================================================================== */

.dts-splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
  overflow: hidden;
  background-color: #1d1d1f;
  background-image: radial-gradient(120% 80% at 50% 0, #2b4a78 0%, #1d1d1f 62%);
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  text-align: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* 淡出中：JS 加上这个类，过渡结束后把节点整个移除 */
.dts-splash-out {
  opacity: 0;
}

/* 内容列：纵向居中；内容比屏幕高时也不会被裁掉顶部 */
.dts-splash-inner {
  width: 100%;
  max-width: 760px;
  margin: auto 0;
  overflow-x: hidden;
}

/* 品牌行（平台名：活动执行宝） */
.dts-splash-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .06em;
}

.dts-splash-brand img {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

/* 主标题 */
.dts-splash-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 5.4vw, 40px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  word-break: break-word;
}

/* 副标题 */
.dts-splash-sub {
  margin: 0 0 28px;
  color: rgba(245, 245, 247, .74);
  font-size: clamp(15px, 3.8vw, 20px);
  line-height: 1.5;
}

/* 三个卖点：竖排，每条一行标题 + 一行说明 */
.dts-splash-list {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: left;
}

.dts-splash-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
}

.dts-splash-num {
  padding-top: 3px;
  color: #7cb8ff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.dts-splash-point {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.dts-splash-desc {
  display: block;
  color: rgba(245, 245, 247, .66);
  font-size: 13px;
  line-height: 1.55;
  /* 两行时尽量把字分匀，避免末行只剩下一个字（不支持的浏览器忽略即可） */
  text-wrap: balance;
}

/* 右上角「跳过」：整屏任意位置都能点，这里只是给一个可见的提示 */
.dts-splash-skip {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .86);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

/* 底部：3 秒进度条 + 操作提示 */
.dts-splash-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  padding: 0 20px;
  color: rgba(245, 245, 247, .5);
  font-size: 12px;
  line-height: 1.4;
}

.dts-splash-bar {
  width: min(220px, 60vw);
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}

/* 进度条时长与 splash.js 的 3.0 秒保持一致（3000ms） */
.dts-splash-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: #0071e3;
  transform-origin: left center;
  animation: dts-splash-fill 3s linear forwards;
}

@keyframes dts-splash-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 横屏 / 矮屏：压缩留白，避免内容拥挤 */
@media (max-height: 560px) {
  .dts-splash-title { font-size: clamp(18px, 4vw, 26px); margin-bottom: 10px; }
  .dts-splash-sub { margin-bottom: 16px; }
  .dts-splash-list { gap: 8px; }
  .dts-splash-item { padding: 10px 12px; }
  .dts-splash-brand { margin-bottom: 12px; }
}

/* 尊重 prefers-reduced-motion：关闭淡出与进度动画，3 秒逻辑不变 */
@media (prefers-reduced-motion: reduce) {
  .dts-splash { transition: none; }
  .dts-splash-bar i { animation: none; }
}
