.nova-paid-download,
.nova-paid-download-list,
.nova-paid-download-article {
    box-sizing: border-box;
}

.nova-paid-download *,
.nova-paid-download *::before,
.nova-paid-download *::after,
.nova-paid-download-list *,
.nova-paid-download-list *::before,
.nova-paid-download-list *::after,
.nova-paid-download-article *,
.nova-paid-download-article *::before,
.nova-paid-download-article *::after {
    box-sizing: border-box;
}

.nova-paid-download .is-hidden,
.nova-paid-download-list .is-hidden {
    display: none !important;
}
.nova-paid-download-article.nova-paid-download-article--content-bottom {
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    padding: 30px 0px 10px 0px;
}
.nova-paid-download-article.nova-paid-download-article--content-bottom .nova-paid-download{
    padding:0px
}

.nova-paid-download__card {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 30px 0px 10px 0px;
    
    background: #fff;
    /* box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); */
}

.nova-paid-download__cover img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

.nova-paid-download__title {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0 !important;
    border: 0 !important;
    padding-bottom: 0 !important;
}

.nova-paid-download__desc {
    color: #64748b;
    line-height: 1.7;
}

.nova-paid-download__attributes {
    margin: 1rem 0;
    padding: 1rem 1.125rem;
    border-radius: 10px;
    background: #f8fafc;
}

.nova-paid-download__attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.575rem 1.5rem;
}

.nova-paid-download__attr {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
    font-size: 0.8375rem;
    line-height: 1.5;
}

.nova-paid-download__attr-label {
    flex-shrink: 0;
    color: #64748b;
}

.nova-paid-download__attr-label::after {
    content: '：';
}

.nova-paid-download__attr-value {
    min-width: 0;
    font-weight: 600;
    color: #334155;
    word-break: break-word;
}

.nova-paid-download__attr-preview {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nova-paid-download__attr-preview:hover,
.nova-paid-download__attr-preview:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.nova-paid-download__sales {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.nova-paid-download__sales-icon {
    display: inline-block;
    width: 0.95rem;
    height: 0.95rem;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nova-paid-download__price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nova-paid-download__price-current {
    font-size: 2rem;
    font-weight: 800;
    color: #ef4444;
}

.nova-paid-download__price-current.is-free {
    color: #22c55e;
}

.nova-paid-download__price-original {
    color: #94a3b8;
    text-decoration: line-through;
}

.nova-paid-download__panel {
    padding: 1rem;
    border-radius: 10px;
    background: #f8fafc;
}

.nova-paid-download__alert {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.nova-paid-download__alert.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.nova-paid-download__alert.is-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.nova-paid-download__alert.is-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.nova-paid-download__alert.is-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.nova-paid-download__checkout-link {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #fff;
    color: #2563eb;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nova-paid-download__checkout-link:hover,
.nova-paid-download__checkout-link:focus {
    background: #2563eb;
    color: #fff;
}

.nova-paid-download__panel-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
}

.nova-paid-download__manual-hint {
    margin-bottom: 1rem;
    padding: 0.875rem;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.875rem;
    line-height: 1.6;
}

.nova-paid-download__qr-panel {
    margin-bottom: 1rem;
    text-align: center;
}

.nova-paid-download__qr-wrap {
    display: inline-flex;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
}

.nova-paid-download__qr-image {
    display: block;
    width: 220px;
    height: 220px;
}

.nova-paid-download__qr-hint {
    margin: 0.75rem 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
}

.nova-paid-download__actions,
.nova-paid-download__paid-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.nova-paid-download__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.nova-paid-download__action-btn:hover,
.nova-paid-download__action-btn:focus {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    color: inherit;
    transform: translateY(-1px);
}

.nova-paid-download__action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.nova-paid-download__action-logo {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    object-fit: contain;
    flex-shrink: 0;
}

.nova-paid-download__action-icon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    background-color: #2563eb;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nova-paid-download__action-label {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    text-align: center;
}

.nova-paid-download__panel--payment {
    margin-top: 0.5rem;
}

.nova-paid-download-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.nova-paid-download-list__item {
    height: 100%;
}

.nova-paid-download-list__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nova-paid-download-list__link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.nova-paid-download-list__media {
    position: relative;
}

.nova-paid-download-list__media img,
.nova-paid-download-list__placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.nova-paid-download-list__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: #4338ca;
}

.nova-paid-download-list__placeholder-icon {
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='12' y1='18' x2='12' y2='12'/%3E%3Cpolyline points='9 15 12 18 15 15'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='12' y1='18' x2='12' y2='12'/%3E%3Cpolyline points='9 15 12 18 15 15'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nova-paid-download-list__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.nova-paid-download-list__badge.is-free {
    background: rgba(34, 197, 94, 0.92);
}

.nova-paid-download-list__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    flex: 1;
}

.nova-paid-download-list__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.nova-paid-download-list__desc {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.6;
}

.nova-paid-download-list__meta {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    color: #94a3b8;
    font-size: 0.8125rem;
}

@media (max-width: 767.98px) {
    .nova-paid-download__card {
        grid-template-columns: 1fr;
    }

    .nova-paid-download__actions,
    .nova-paid-download__paid-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 479.98px) {
    .nova-paid-download__attributes-grid {
        grid-template-columns: 1fr;
    }

    .nova-paid-download__actions,
    .nova-paid-download__paid-actions {
        grid-template-columns: 1fr;
    }
}

.nova-paid-download-article {
    margin-top: 1.5rem;
}

.nova-paid-download-article--content-bottom {
    margin-top: 2rem;
}

body.nova-paid-download-modal-open {
    overflow: hidden;
}

.nova-paid-download__modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.34s ease;
}

.nova-paid-download__modal:not(.is-hidden) {
    display: flex;
}

.nova-paid-download__modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.nova-paid-download__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    transition: opacity 0.34s ease;
}

.nova-paid-download__modal.is-open .nova-paid-download__modal-backdrop {
    opacity: 1;
}

.nova-paid-download__modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.5rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.34s ease;
}

.nova-paid-download__modal.is-open .nova-paid-download__modal-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .nova-paid-download__modal,
    .nova-paid-download__modal-backdrop,
    .nova-paid-download__modal-dialog {
        transition-duration: 0.01ms;
    }
}

.nova-paid-download__modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.nova-paid-download__modal-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.nova-paid-download__modal-label {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.nova-paid-download__modal-price {
    margin: 0 0 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ef4444;
}

.nova-paid-download__pay-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.nova-paid-download__pay-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 88px;
    padding: 0.75rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.nova-paid-download__pay-method i {
    font-size: 1.35rem;
}

.nova-paid-download__pay-method.is-active {
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.nova-paid-download__pay-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.nova-paid-download__modal-success,
.nova-paid-download__modal-message {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #334155;
}

.nova-paid-download__modal-success {
    color: #059669;
    font-weight: 600;
}

.nova-paid-download-account__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
}

.nova-paid-download-account__item:first-child .nova-paid-download-account__row {
    padding-top: 0;
}

.nova-paid-download-account__item:last-child .nova-paid-download-account__row {
    padding-bottom: 0;
}

.nova-paid-download-account__main.nova-user-center__post-link,
.nova-user-center__post-item .nova-paid-download-account__main.nova-user-center__post-link {
    grid-template-columns: 120px minmax(0, 1fr);
    padding: 0;
    padding-right: 0;
}

.nova-paid-download-account__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
}

.nova-paid-download-account__status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
    white-space: nowrap;
}

.nova-paid-download-account__status.is-paid {
    background: #ecfdf5;
    color: #059669;
}

.nova-paid-download-account__status.is-pending {
    background: #fff7ed;
    color: #c2410c;
}

.nova-paid-download-account__status.is-cancelled {
    background: #fef2f2;
    color: #dc2626;
}

.nova-paid-download-account__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.nova-paid-download-account__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nova-paid-download-account__btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}

.nova-paid-download-account__btn.is-primary {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.nova-paid-download-account__btn.is-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

@media (max-width: 479.98px) {
    .nova-paid-download__pay-methods {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .nova-paid-download-account__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .nova-paid-download-account__aside {
        align-items: flex-start;
        padding-left: calc(120px + 1rem);
    }

    .nova-paid-download-account__actions {
        justify-content: flex-start;
    }
}

