
/* 下载前确认引导 */
.dlmask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 6, 18, 0.84);
  backdrop-filter: blur(6px);
  animation: dlfade 0.2s ease both;
}
.dlmask.out { animation: dlfade 0.22s ease reverse both; }

@keyframes dlfade { from { opacity: 0; } to { opacity: 1; } }

.dlbox {
  position: relative;
  width: 100%;
  max-width: 358px;
  padding: 24px 22px 20px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 22px;
  background: linear-gradient(165deg, #1C1230 0%, #150B22 100%);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.5);
  color: #EDE6FA;
  animation: dlpop 0.24s ease both;
  max-height: 88vh;
  overflow-y: auto;
}

@keyframes dlpop {
  from { transform: translateY(14px) scale(0.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.dlclose {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(237, 230, 250, 0.45);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.dlclose:hover { color: #EDE6FA; }

.dlhead { display: flex; gap: 12px; align-items: center; }

.dlico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(140deg, #7C6CF0, #A78BFA);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v8.2l3.3-3.3 1.4 1.4L12 15l-5.7-5.7 1.4-1.4L11 11.2V3ZM5 18h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v8.2l3.3-3.3 1.4 1.4L12 15l-5.7-5.7 1.4-1.4L11 11.2V3ZM5 18h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dltitle { min-width: 0; }
.dltitle h2 { margin: 0; font-size: 17px; font-weight: 600; }
.dltitle p { margin: 4px 0 0; font-size: 12.5px; color: rgba(237, 230, 250, 0.55); }

.dllist {
  margin: 16px 0 0;
  padding: 6px 14px;
  list-style: none;
  border: 1px solid rgba(237, 230, 250, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.dlrow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  font-size: 13px;
  line-height: 1.9;
  border-bottom: 1px solid rgba(237, 230, 250, 0.06);
}
.dlrow:last-child { border-bottom: 0; }
.dlrow > span:first-child { color: rgba(237, 230, 250, 0.55); flex: 0 0 auto; }
.dlrow > span:last-child { color: #EDE6FA; font-weight: 500; text-align: right; }

.dlwarn {
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.08);
  color: #FACC15;
  font-size: 12.5px;
  line-height: 1.7;
}
.dlwarn b { color: #FACC15; font-weight: 600; }

.dlbar {
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: rgba(237, 230, 250, 0.14);
  overflow: hidden;
}
.dlbar[hidden] { display: none; }
.dlbar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #7C6CF0, #A78BFA);
  transition: width 0.18s linear;
}

.dlact { display: flex; gap: 10px; margin-top: 16px; }

.dlbtn {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 23px;
  background: transparent;
  color: #EDE6FA;
  font-size: 14.5px;
  text-align: center;
  text-decoration: none;
  line-height: 44px;
  cursor: pointer;
  transition: transform 0.16s, background 0.16s, border-color 0.16s;
}
.dlbtn:hover { transform: translateY(-1px); border-color: rgba(167, 139, 250, 0.6); }
.dlbtn.primary {
  flex: 1.3;
  border: 0;
  background: linear-gradient(135deg, #7C6CF0, #A78BFA);
  color: #fff;
  font-weight: 600;
  line-height: 46px;
  box-shadow: 0 10px 26px rgba(124, 108, 240, 0.32);
}
.dlbtn:disabled { opacity: 0.6; cursor: default; transform: none; }

.dlfoot {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(237, 230, 250, 0.38);
  text-align: center;
}

@media (max-width: 720px) {
  .dlfoot { font-size: 11px; }
}
