.download-modal * {
    font-weight: normal;
    font-family: "微软雅黑";
}

.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.24);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.download-modal.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
    line-height: 1.3;
}

.download-modal.show .download-modal-content {
    transform: scale(1);
    opacity: 1;
}

.download-modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: 420px;
    max-width: 90%;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.download-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
    color: #495057;
}

.download-modal-header span {
    font-size: 16px;
    color: #495057;
}

.btn-close {
    width: 20px;
    height: 20px;
    border: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586l6.293-6.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 12.8px no-repeat;
    cursor: pointer;
}

.download-modal-body {
    padding: 24px;
}

.file-info {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.file-icon {
    width: 44px;
    height: 44px;
    margin-right: 16px;
}

.file-details {
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.file-name {
    font-size: 16px;
    font-weight: bold;
    color: #212529;
}

.file-size-text,
.file-size-text span {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 50px;
    height: 12px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 8px;
}

.progress-bar-inner {
    background: linear-gradient(45deg, #0d6efd, #0dcaf0);
    height: 100%;
    border-radius: 50px;
    transition: width 0.1s linear;
    width: 0%;
}

.download-status-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.download-status-container span {
    font-size: 14px;
}

.percentage-text {
    color: #6c757d;
}

.status-text {
    color: #0d6efd;
}

.download-modal-footer {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    justify-content: flex-end;
}

.downloading-btn {
    min-width: 100px;
    transition: background-color .3s ease, border-color .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 4px;
    /* border: 1px solid #0d6efd; */
    border: none;
    /* background: #0d6efd; */
    background: #3191FF;
    box-shadow: 0px 4px 8px 0px rgba(0, 36, 77, 0.4);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.downloading-btn span {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.downloading-btn:hover {
    background: #0771EA;
    box-shadow: 0px 4px 8px 0px rgba(0, 36, 77, 0.4);
}

/* .download-btn.btn-secondary {
            background: #6c757d;
            border-color: #6c757d;
            cursor: not-allowed;
        } */

.is-loading {
    margin-right: 4px;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-dots {
    display: inline-block;
    width: 19px;
    text-align: left;
    vertical-align: bottom;
}

.loading-dots::after {
    content: ".";
    display: inline-block;
    animation: loading-dots 1.4s infinite;
}

@keyframes loading-dots {
    0% {
        content: ".";
    }

    33% {
        content: "..";
    }

    66% {
        content: "...";
    }
}