进行了一些小修复

This commit is contained in:
2026-08-26 22:50:35 +08:00
parent b77926388f
commit af3539914d
9 changed files with 956 additions and 135 deletions
+702
View File
@@ -0,0 +1,702 @@
.aksrt-dl-modal {
position: fixed;
inset: 0;
z-index: 10000;
display: none;
}
.aksrt-dl-modal.is-open {
display: flex;
align-items: center;
justify-content: center;
}
.aksrt-dl-modal__backdrop {
position: absolute;
inset: 0;
background: rgb(0 0 0 / 55%);
}
.aksrt-dl-modal__dialog {
position: relative;
z-index: 1;
width: 400px;
max-width: calc(100% - 20px);
margin: 0 auto;
}
.aksrt-dl-modal__panel {
position: relative;
width: 100%;
max-height: calc(100vh - 20px);
overflow: hidden auto;
color: var(--main-color, #111827);
background: var(--main-bg-color, #fff);
border: 0;
border-radius: var(--main-radius, 8px);
box-shadow: 0 24px 56px rgb(15 23 42 / 24%);
}
.aksrt-dl-modal:not(.is-cashier) .aksrt-dl-modal__panel {
padding: 26px 28px 24px;
}
.aksrt-dl-modal__close,
.aksrt-cashier__close {
appearance: none;
position: absolute;
z-index: 9;
top: 10px;
right: 12px;
padding: 0;
color: var(--muted-color, #6b7280);
font: 400 24px/1 sans-serif;
background: transparent;
border: 0;
box-shadow: none;
cursor: pointer;
}
.aksrt-dl-modal.is-cashier > .aksrt-dl-modal__dialog > .aksrt-dl-modal__panel > .aksrt-dl-modal__close {
display: none;
}
.aksrt-dl-modal__title {
margin: 0 28px 18px 0;
color: var(--main-color, #111827);
font: 700 20px/1.3 inherit;
}
.aksrt-dl-modal__msg {
margin: 0 0 18px;
color: var(--muted-color, #4b5563);
font-size: 14px;
line-height: 1.65;
}
.aksrt-dl-modal__msg--warn {
padding: 12px 0;
color: #92400e;
background: transparent;
border: 0;
border-top: 1px solid #fde68a;
border-bottom: 1px solid #fde68a;
}
.aksrt-dl-modal__row {
display: grid;
grid-template-columns: 64px minmax(0, 1fr) 72px;
gap: 12px;
align-items: center;
padding: 12px 0;
margin: 0 0 18px;
border-top: 1px solid var(--main-border-color, #e5e7eb);
border-bottom: 1px solid var(--main-border-color, #e5e7eb);
}
.aksrt-dl-modal__label {
color: var(--muted-color, #6b7280);
font-size: 13px;
font-weight: 600;
white-space: nowrap;
}
.aksrt-dl-modal__code {
display: block;
min-width: 0;
overflow: hidden;
color: var(--main-color, #111827);
font: 800 18px/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
letter-spacing: 0.06em;
text-overflow: ellipsis;
white-space: nowrap;
}
.aksrt-dl-modal__copy {
appearance: none !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
width: 72px !important;
height: 32px !important;
padding: 0 !important;
overflow: visible !important;
color: #2563eb !important;
font-family: inherit !important;
font-size: 0 !important;
font-weight: 700 !important;
line-height: 1 !important;
text-indent: 0 !important;
white-space: nowrap !important;
cursor: pointer !important;
visibility: visible !important;
background: #eff6ff !important;
border: 1px solid #bfdbfe !important;
border-radius: 8px !important;
opacity: 1 !important;
-webkit-text-fill-color: #2563eb !important;
}
.aksrt-dl-modal__copy::before,
.aksrt-dl-modal__copy::after {
display: none !important;
content: none !important;
}
.aksrt-dl-modal__copy:hover {
color: #1d4ed8 !important;
background: #dbeafe !important;
border-color: #93c5fd !important;
-webkit-text-fill-color: #1d4ed8 !important;
}
.aksrt-dl-modal__copy-text {
position: relative !important;
z-index: 2 !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
color: #2563eb !important;
font-family: inherit !important;
font-size: 13px !important;
font-weight: 700 !important;
line-height: 1 !important;
text-indent: 0 !important;
white-space: nowrap !important;
visibility: visible !important;
opacity: 1 !important;
-webkit-text-fill-color: #2563eb !important;
}
.aksrt-dl-modal__copy:hover .aksrt-dl-modal__copy-text {
color: #1d4ed8 !important;
-webkit-text-fill-color: #1d4ed8 !important;
}
.aksrt-dl-modal__actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
padding-top: 4px;
}
.aksrt-dl-modal__download {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 40px;
padding: 0 18px;
text-decoration: none;
cursor: pointer;
border: 0;
border-radius: 9px;
}
.aksrt-dl-modal__balance {
margin-left: auto;
color: var(--muted-color, #6b7280);
font-size: 13px;
white-space: nowrap;
}
.aksrt-dl-modal.is-cashier .aksrt-dl-modal__body {
position: relative;
min-height: 120px;
}
.aksrt-dl-modal .modal-colorful-header,
.aksrt-dl-modal .colorful-bg {
position: relative;
overflow: hidden;
color: var(--this-color);
background: var(--this-bg);
background-size: 120%;
}
.aksrt-dl-modal .modal-colorful-header {
position: absolute;
top: 0;
right: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
height: 120px;
border-radius: var(--main-radius, 8px) var(--main-radius, 8px) 0 0;
}
.aksrt-dl-modal .colorful-bg > .colorful-make,
.aksrt-dl-modal .colorful-bg > .colorful-make::before,
.aksrt-dl-modal .colorful-bg > .colorful-make::after {
position: absolute;
color: var(--this-color);
background: var(--this-bg);
border-radius: 100%;
content: '';
}
.aksrt-dl-modal .colorful-bg > .colorful-make {
top: 60%;
bottom: 0;
width: 323px;
height: 290px;
animation: aksrt-cashier-colorful 120s linear infinite;
}
.aksrt-dl-modal .colorful-bg > .colorful-make::before {
top: -325px;
right: -558px;
bottom: 0;
width: 677px;
height: 300px;
opacity: 0.6;
transform: rotate(341deg);
}
.aksrt-dl-modal .colorful-bg > .colorful-make::after {
top: -170px;
bottom: 0;
left: -262px;
width: 402px;
height: 214px;
opacity: 0.4;
transform: rotate(326deg);
}
.aksrt-dl-modal .colorful-bg > .colorful-make + * {
position: relative;
}
.aksrt-dl-modal .aksrt-cashier__close {
color: var(--this-color, #fff);
font-size: 18px;
opacity: 0.6;
}
.aksrt-dl-modal .modal-pay-body {
padding: 15px;
margin-top: 120px;
}
.aksrt-cashier__loading {
min-height: 70px;
margin: 0;
line-height: 70px;
text-align: center;
}
.aksrt-dl-modal .text-center {
text-align: center;
}
.aksrt-dl-modal .em2x {
font-size: 2em;
}
.aksrt-dl-modal .em09 {
font-size: 0.9em;
}
.aksrt-dl-modal .em12 {
font-size: 1.2em;
}
.aksrt-dl-modal .em14 {
font-size: 1.4em;
}
.aksrt-dl-modal .mt6 {
margin-top: 6px;
}
.aksrt-dl-modal .mt10 {
margin-top: 10px;
}
.aksrt-dl-modal .mb6 {
margin-bottom: 6px;
}
.aksrt-dl-modal .mb10 {
margin-bottom: 10px;
}
.aksrt-dl-modal .mb20 {
margin-bottom: 20px;
}
.aksrt-dl-modal .mr6 {
margin-right: 6px;
}
.aksrt-dl-modal .ml6 {
margin-left: 6px;
}
.aksrt-dl-modal .ml10 {
margin-left: 10px;
}
.aksrt-dl-modal .px12 {
font-size: 12px;
}
.aksrt-dl-modal .padding-h6 {
padding-top: 6px;
padding-bottom: 6px;
}
.aksrt-dl-modal .padding-h10 {
padding-top: 10px;
padding-bottom: 10px;
}
.aksrt-dl-modal .padding-w10 {
padding-right: 10px;
padding-left: 10px;
}
.aksrt-dl-modal .line-16 {
line-height: 1.6;
}
.aksrt-dl-modal .flex {
display: flex;
}
.aksrt-dl-modal .flex.jsb {
justify-content: space-between;
}
.aksrt-dl-modal .flex.jc {
justify-content: center;
}
.aksrt-dl-modal .flex.ac {
align-items: center;
}
.aksrt-dl-modal .flex.ab {
align-items: baseline;
}
.aksrt-dl-modal .flex.hh {
flex-direction: column;
}
.aksrt-dl-modal .flex-auto {
flex: auto;
}
.aksrt-dl-modal .pointer {
cursor: pointer;
}
.aksrt-dl-modal .font-bold {
font-weight: 700;
}
.aksrt-dl-modal .muted-2-color {
color: var(--muted-2-color, #8b93a7);
}
.aksrt-dl-modal .muted-3-color {
color: var(--muted-3-color, #a9afbe);
}
.aksrt-dl-modal .c-red {
color: #ff5473;
}
.aksrt-dl-modal .c-green {
color: #20b759;
}
.aksrt-dl-modal .c-blue-2 {
color: #5c7cff;
}
.aksrt-dl-modal .muted-box {
padding: 10px;
background: var(--muted-border-color, rgb(132 145 165 / 10%));
border-radius: 4px;
}
.aksrt-dl-modal .pay-tag {
display: inline-block;
padding: 2px 7px;
color: #2997f7;
font-size: 12px;
line-height: 1.4;
background: rgb(41 151 247 / 10%);
border-radius: 4px;
}
.aksrt-cashier__price-row {
gap: 12px;
min-height: 27px;
}
.aksrt-cashier__regular-price {
display: flex;
gap: 10px;
align-items: baseline;
}
.aksrt-dl-modal .original-price {
position: relative;
display: inline-flex;
align-items: baseline;
padding-right: 2px;
padding-left: 1px;
color: var(--muted-color, #7d8496);
font-size: 14px;
}
.aksrt-dl-modal .original-price::before {
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 1px;
background: #ff343b;
transform: rotate(8deg);
transform-origin: center;
content: '';
}
.aksrt-cashier__vip-mark {
display: inline-block;
padding: 0 4px;
margin-left: 3px;
color: #866127;
font-size: 10px;
font-weight: 700;
line-height: 16px;
vertical-align: 1px;
background: linear-gradient(25deg, #eabe7b 10%, #f5e3c7 70%, #edc788 100%);
border-radius: 4px;
}
.aksrt-cashier__asset-icon {
width: 1.2em;
margin-right: 6px;
color: #5c7cff;
text-align: center;
}
.aksrt-dl-modal .payment-method-radio {
min-width: 0;
padding: 5px;
text-align: center;
border: 1px solid var(--main-border-color, rgb(132 145 165 / 20%));
border-radius: 4px;
}
.aksrt-dl-modal .payment-method-radio > * {
margin: 3px;
}
.aksrt-dl-modal .payment-method-radio img {
width: auto;
max-width: 68px;
height: 35px;
object-fit: contain;
}
.aksrt-dl-modal .payment-method-radio + .payment-method-radio {
margin-left: 10px;
}
.aksrt-dl-modal .hollow-radio.active {
color: var(--focus-color, #2997f7);
background: var(--focus-color-opacity1, rgb(41 151 247 / 10%));
border-color: var(--focus-color, #2997f7);
}
.aksrt-dl-modal .payment-method-radio:focus {
outline: 0;
box-shadow: none;
}
.aksrt-cashier__balance[hidden] {
display: none;
}
.aksrt-dl-modal .form-control {
display: block;
width: 100%;
min-height: 36px;
padding: 6px 92px 6px 10px;
color: var(--main-color, #111827);
font: inherit;
background: var(--main-bg-color, #fff);
border: 1px solid var(--main-border-color, #e5e7eb);
border-radius: 4px;
}
.aksrt-dl-modal .relative {
position: relative;
}
.aksrt-dl-modal .abs-right {
position: absolute;
top: 50%;
right: 3px;
transform: translateY(-50%);
}
.aksrt-dl-modal .coupon-submit {
padding: 0.3em 0.8em;
}
.aksrt-cashier__coupon-desc,
.aksrt-cashier__coupon-ok {
margin-top: 6px;
font-size: 12px;
line-height: 1.5;
}
.aksrt-cashier__coupon-ok {
color: #20b759;
}
.aksrt-cashier__warn {
padding: 8px 10px;
color: #ff5473;
font-size: 13px;
line-height: 1.5;
text-align: center;
background: rgb(255 84 115 / 10%);
border-radius: 4px;
}
.aksrt-dl-modal .but.initiate-pay {
padding: 0.6em 1em;
}
.aksrt-dl-modal .modal-buts.but-average {
overflow: hidden;
border-top: 1px solid var(--main-border-color, #e5e7eb);
border-radius: 0 0 var(--main-radius, 8px) var(--main-radius, 8px);
}
.aksrt-dl-modal .modal-buts.but-average > .but {
flex: auto;
padding: 0.8em;
margin: 0 !important;
background: transparent;
border-radius: 0;
}
.aksrt-dl-modal .modal-buts.but-average > .but + .but {
border-left: 1px solid var(--main-border-color, #e5e7eb);
}
.aksrt-cashier__recharge {
display: block;
text-decoration: none;
}
.resource-download-box__attrs {
display: grid;
gap: 6px;
padding: 0;
margin: 10px 0 0;
list-style: none;
}
.resource-download-box__attrs-item {
display: flex;
justify-content: space-between;
gap: 12px;
color: #6b7280;
font-size: 12px;
}
.resource-download-box__attrs-name {
flex: 0 0 auto;
}
.resource-download-box__attrs-value {
color: #111827;
text-align: right;
}
.resource-download-box__paid-badge {
color: #047857 !important;
background: #ecfdf5 !important;
}
.resource-download-box__paid-meta {
display: grid;
gap: 4px;
padding: 10px 12px;
margin: 8px 0 12px;
color: #166534;
font-size: 12px;
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: 10px;
}
body.aksrt-dl-modal-open {
overflow: hidden;
}
@keyframes aksrt-cashier-colorful {
from {
transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}
20% {
transform: translate3d(-30px, -20px, 50px) rotate(87deg) scale(0.9);
}
65% {
transform: translate3d(-80px, -40px, 0) rotate(156deg) scale(0.6);
}
to {
transform: translate3d(0, 0, 0) rotate(360deg) scale(1);
}
}
@media (max-width: 480px) {
.aksrt-dl-modal:not(.is-cashier) .aksrt-dl-modal__panel {
padding: 24px 20px 22px;
}
.aksrt-dl-modal__row {
grid-template-columns: 1fr 72px;
gap: 8px 12px;
}
.aksrt-dl-modal__label {
grid-column: 1 / -1;
}
.aksrt-dl-modal__code {
font-size: 17px;
}
.aksrt-dl-modal__actions {
flex-direction: column;
align-items: flex-start;
}
.aksrt-dl-modal__download {
width: 100%;
}
.aksrt-dl-modal__balance {
margin-left: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.aksrt-dl-modal .colorful-bg > .colorful-make {
animation: none;
}
}