/* ============================ 开屏广告页样式（白底，与官网首页一致） ============================ */
:root {
  --brand: #0050C8;
  --brand-dark: #003d99;
  --brand-50: #e8f1fc;
  --ink: #0d1b2a;
  --ink-2: #1b2a3d;
  --ink-3: #465765;
  --ink-4: #7a8a99;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f7;
  --border: #e1e8ef;
  --border-2: #d0dae5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--surface);
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- 页面主体内容（广告浮层关闭后可见，始终在文档流） ---------- */
.page-main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 36px;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}
.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.changelog { margin-bottom: 26px; }
.cl-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
}
.cl-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cl-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cl-ver {
  flex-shrink: 0;
  background: var(--brand);
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.cl-date {
  flex-shrink: 0;
  width: 60px;
  color: var(--ink-4);
  font-size: 13px;
  padding-top: 3px;
}
.cl-desc {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.6;
}
.cl-item--next .cl-ver {
  background: var(--brand-50);
  color: var(--brand);
}
.cl-item--next .cl-desc {
  color: var(--ink-4);
}

.download { padding-top: 4px; }
.dl-btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease;
}
.dl-btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.dl-btn:active { transform: translateY(0); }
.dl-tip {
  color: var(--ink-4);
  font-size: 13px;
  margin: 12px 0 0;
}
.close-win-btn {
  margin-top: 16px;
  display: block;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--ink-3);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.close-win-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 广告浮层弹窗（半透明遮罩，白底页面隐约可见，广告卡片浮于其上，与在线编辑器一致 0.5） ---------- */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

/* 关闭 / 跳过按钮（置于最顶层，防止 SDK 遮罩或媒体层拦截点击） */
.splash-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(13, 27, 42, 0.45);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 1000;
  pointer-events: auto;
  transition: background 0.15s ease, transform 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.splash-close:hover { background: rgba(13, 27, 42, 0.65); transform: scale(1.05); }
.splash-close:active { transform: scale(0.96); }

/* 广告卡片（白底，与官网首页卡片风格一致） */
.splash-ad {
  position: relative;
  width: min(92vw, 720px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13, 27, 42, 0.25);
}

.splash-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.splash-media img,
.splash-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.splash-info {
  padding: 16px 18px 18px;
}
.splash-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.splash-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.splash-cta {
  display: inline-block;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 10;
  transition: background 0.15s ease, transform 0.12s ease;
}
.splash-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.splash-cta:active { transform: translateY(0); }

.splash-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: rgba(13, 27, 42, 0.08);
  color: var(--ink-4);
}

/* 无填充 / 出错 */
.splash-empty {
  text-align: center;
  color: var(--ink-3);
}
.splash-empty p { margin: 0 0 14px; font-size: 15px; }
.splash-empty-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
}

.splash-loading {
  color: var(--ink-4);
  font-size: 15px;
}
