/* 下载弹窗，对照 hifi361-下载.html。HTML 由父主题输出，这里只改外观。 */

#ceo-download,
#ceo-download *,
.ceo-download,
.ceo-download * { box-sizing: border-box; }

#ceo-download.uk-modal,
#ceo-download.ceo-modal {
  background: rgba(22, 22, 22, .72);
}

#ceo-download .ceo-modal-dialog,
#ceo-download .uk-modal-dialog,
.ceo-download .ceo-modal-dialog {
  width: min(560px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px);
  margin: 16px auto;
  padding: 0 !important;
  border: 0;
  border-radius: 10px;
  background: #fff !important;
  background-image: none !important;
  color: #161616;
  box-shadow: 0 28px 56px -24px rgba(0, 0, 0, .55);
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  animation: hiresDlPop .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes hiresDlPop { from { opacity: 0; transform: translateY(18px); } }

#ceo-download .moduletitle,
.ceo-download .moduletitle {
  position: relative;
  margin: 0;
  padding: 24px 24px 20px;
  border: 0;
  background: transparent;
}
#ceo-download .moduletitle span,
.ceo-download .moduletitle span {
  position: static;
  display: block;
  max-width: calc(100% - 56px);
  color: transparent;
  font-size: 0;
  line-height: 0;
}
#ceo-download .moduletitle span i,
.ceo-download .moduletitle span i,
#ceo-download .uk-modal-close-default > *,
.ceo-download .uk-modal-close-default > * { display: none !important; }
#ceo-download .moduletitle span::before,
.ceo-download .moduletitle span::before {
  content: "选择下载音质";
  display: block;
  color: #161616;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}
#ceo-download .moduletitle span::after,
.ceo-download .moduletitle span::after {
  content: "点击提取码即可复制，下载时需要输入";
  display: block;
  margin-top: 4px;
  color: #64615E;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.6;
}
#ceo-download .moduletitle button,
#ceo-download .uk-modal-close-default,
.ceo-download .uk-modal-close-default {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #E7E0D8;
  border-radius: 4px;
  background: #fff !important;
  background-image: none !important;
  color: #64615E;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  cursor: pointer;
}
#ceo-download .moduletitle button::before,
#ceo-download .moduletitle button::after,
#ceo-download .uk-modal-close-default::before,
#ceo-download .uk-modal-close-default::after,
.ceo-download .uk-modal-close-default::before,
.ceo-download .uk-modal-close-default::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.6px;
  border-radius: 1px;
  background: currentColor;
}
#ceo-download .moduletitle button::before,
#ceo-download .uk-modal-close-default::before,
.ceo-download .uk-modal-close-default::before { transform: translate(-50%, -50%) rotate(45deg); }
#ceo-download .moduletitle button::after,
#ceo-download .uk-modal-close-default::after,
.ceo-download .uk-modal-close-default::after { transform: translate(-50%, -50%) rotate(-45deg); }
#ceo-download .moduletitle button:hover,
#ceo-download .uk-modal-close-default:hover,
.ceo-download .uk-modal-close-default:hover {
  border-color: #161616;
  background: #fff !important;
  color: #161616;
}

#ceo-download ul,
.ceo-download ul {
  display: grid;
  gap: 12px;
  height: auto;
  max-height: min(62vh, 520px);
  margin: 0;
  padding: 0 24px 24px;
  overflow: auto;
  list-style: none;
}
#ceo-download ul li,
.ceo-download ul li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 0;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #E7E0D8;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  transition: border-color .2s;
}
#ceo-download ul li:hover,
.ceo-download ul li:hover { border-color: #161616; }
#ceo-download ul li:first-child:not(:only-child),
.ceo-download ul li:first-child:not(:only-child) {
  border-color: #161616;
  background: #FFF9F1;
}
#ceo-download ul li::before,
.ceo-download ul li::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  width: 28px;
  height: 26px;
  background-repeat: no-repeat;
  background-position: 0 100%, 5px 100%, 10px 100%, 15px 100%, 20px 100%, 25px 100%;
  background-size: 3px 30%, 3px 44%, 3px 58%, 3px 72%, 3px 86%, 3px 100%;
  background-image:
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#E7E0D8, #E7E0D8),
    linear-gradient(#E7E0D8, #E7E0D8),
    linear-gradient(#E7E0D8, #E7E0D8),
    linear-gradient(#E7E0D8, #E7E0D8);
}
#ceo-download ul li:first-child::before,
.ceo-download ul li:first-child::before {
  background-image:
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B);
}
#ceo-download ul li:nth-child(2)::before,
.ceo-download ul li:nth-child(2)::before {
  background-image:
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#E7E0D8, #E7E0D8),
    linear-gradient(#E7E0D8, #E7E0D8);
}
#ceo-download ul li:first-child:not(:only-child)::before,
.ceo-download ul li:first-child:not(:only-child)::before {
  background-image:
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B),
    linear-gradient(#C9002B, #C9002B);
}

#ceo-download ul li p,
.ceo-download ul li p {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  margin: 0;
  color: #161616;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}
#ceo-download ul li:first-child:not(:only-child) p::after,
.ceo-download ul li:first-child:not(:only-child) p::after {
  content: "推荐";
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border: 0;
  border-radius: 3px;
  background: #F6B800;
  color: #161616;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}
#ceo-download ul li span,
.ceo-download ul li span {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  height: 38px;
  margin: 12px 0 0;
  padding: 0 10px 0 12px;
  border: 1px dashed rgba(22, 22, 22, .45);
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 1;
  white-space: nowrap;
}
#ceo-download ul li span::before,
.ceo-download ul li span::before {
  content: "提取码";
  color: #64615E;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}
#ceo-download ul li span::after,
.ceo-download ul li span::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  background: #64615E;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3'/%3E%3C/g%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%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
#ceo-download ul li span:hover,
.ceo-download ul li span:hover { border-color: #161616; }
#ceo-download ul li span:hover::after,
.ceo-download ul li span:hover::after { background: #C9002B; }
#ceo-download ul li span em,
.ceo-download ul li span em {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #161616;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  cursor: pointer;
}
#ceo-download ul li a,
.ceo-download ul li a {
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 46px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 4px;
  background: #161616 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: none;
  transform: none;
  transition: background .2s, transform .15s;
}
#ceo-download ul li a::before,
.ceo-download ul li a::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: #F6B800;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19.5h14'/%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 fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E") center / contain no-repeat;
}
#ceo-download ul li a:hover,
.ceo-download ul li a:hover {
  background: #C9002B !important;
  color: #fff !important;
  opacity: 1;
  transform: none;
}
#ceo-download ul li a:hover::before,
.ceo-download ul li a:hover::before { background: #fff; }
#ceo-download ul li a:active,
.ceo-download ul li a:active { transform: translateY(1px); }
#ceo-download ul li:first-child:not(:only-child) a,
.ceo-download ul li:first-child:not(:only-child) a { background: #C9002B !important; }
#ceo-download ul li:first-child:not(:only-child) a::before,
.ceo-download ul li:first-child:not(:only-child) a::before { background: #fff; }
#ceo-download ul li:first-child:not(:only-child) a:hover,
.ceo-download ul li:first-child:not(:only-child) a:hover { background: #A00025 !important; }

#ceo-download .desc,
.ceo-download .desc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 14px 24px;
  border-top: 1px solid #E7E0D8;
  background: #FFF9F1 !important;
  color: #64615E;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
#ceo-download .desc::before,
.ceo-download .desc::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: #F6B800;
  box-shadow: 0 0 0 3px rgba(246, 184, 0, .28);
}
#ceo-download .desc span,
#ceo-download .desc p,
.ceo-download .desc span,
.ceo-download .desc p {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none !important;
  color: #64615E;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  white-space: normal;
}
#ceo-download .desc span:empty,
.ceo-download .desc span:empty { display: none; }
#ceo-download .desc em,
#ceo-download .desc b,
.ceo-download .desc em,
.ceo-download .desc b {
  margin-left: 4px;
  color: #161616;
  font-style: normal;
  font-weight: 700;
}

body.night #ceo-download .ceo-modal-dialog,
body.night #ceo-download .uk-modal-dialog,
body.night .ceo-download .ceo-modal-dialog { background: #fff !important; color: #161616; }
body.night #ceo-download .moduletitle span::before,
body.night #ceo-download ul li p,
body.night #ceo-download ul li span em { color: #161616; }
body.night #ceo-download .desc,
body.night .ceo-download .desc { background: #FFF9F1 !important; }

@media (max-width: 520px) {
  #ceo-download .moduletitle,
  .ceo-download .moduletitle { padding: 20px 16px 16px; }
  #ceo-download .moduletitle span::before,
  .ceo-download .moduletitle span::before { font-size: 20px; }
  #ceo-download .moduletitle button,
  #ceo-download .uk-modal-close-default,
  .ceo-download .uk-modal-close-default { top: 16px; right: 16px; }
  #ceo-download ul,
  .ceo-download ul { padding: 0 16px 16px; }
  #ceo-download ul li,
  .ceo-download ul li {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 14px;
  }
  #ceo-download ul li span,
  .ceo-download ul li span { height: 42px; }
  #ceo-download ul li a,
  .ceo-download ul li a {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: 12px;
  }
  #ceo-download .desc,
  .ceo-download .desc { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #ceo-download .uk-modal-dialog,
  #ceo-download .ceo-modal-dialog,
  #ceo-download ul li,
  #ceo-download ul li a { animation: none; transition: none; }
}
