
#download-progress-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.download-login-card {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10000;
    background: rgba(30, 30, 30, .95);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
    min-width: 320px;
    max-width: 420px;
    padding: 20px;
    pointer-events: auto;
    animation: downloadFadeInUp .3s;
    margin: 0 auto;
    box-sizing: border-box;
}

.download-login-card .download-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.download-login-card .download-card-icon {
    font-size: 24px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-login-card .download-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #eac86b;
}

.download-login-card .download-card-content {
    margin-bottom: 16px;
}

.download-login-card .download-card-desc {
    margin: 0 0 12px 0;
    font-size: .95em;
    opacity: 0.9;
    line-height: 1.4;
}

.download-login-card .download-features {
    margin-bottom: 16px;
}

.download-login-card .download-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: .9em;
}

.download-login-card .download-feature-check {
    color: #eac86b;
    font-weight: bold;
    margin-right: 8px;
    font-size: .95em;
}

.download-login-card .download-card-actions {
    display: flex;
    gap: 12px;
}

.download-login-card .download-btn-login {
    flex: 1;
    background: linear-gradient(90deg, #eac86b, #bfa14a);
    color: #1f2937;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: .95em;
}

.download-login-card .download-btn-login:hover {
    background: linear-gradient(90deg, #bfa14a, #eac86b);
    transform: translateY(-2px);
}

.download-login-card .download-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: .95em;
}

.download-login-card .download-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-vip-card {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10000;
    background: rgba(30, 30, 30, .95);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
    min-width: 320px;
    max-width: 420px;
    padding: 20px;
    pointer-events: auto;
    animation: downloadFadeInUp .3s;
    margin: 0 auto;
    box-sizing: border-box;
}

.download-vip-card .download-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.download-vip-card .download-card-icon {
    font-size: 24px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-vip-card .download-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #eac86b;
}

.download-vip-card .download-card-content {
    margin-bottom: 16px;
}

.download-vip-card .download-card-desc {
    margin: 0 0 12px 0;
    font-size: .95em;
    opacity: 0.9;
    line-height: 1.4;
}

.download-vip-card .download-features {
    margin-bottom: 16px;
}

.download-vip-card .download-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: .9em;
}

.download-vip-card .download-feature-check {
    color: #eac86b;
    font-weight: bold;
    margin-right: 8px;
    font-size: .95em;
}

.download-vip-card .download-card-actions {
    display: flex;
    gap: 12px;
}

.download-vip-card .download-btn-vip {
    flex: 1;
    background: linear-gradient(90deg, #eac86b, #bfa14a);
    color: #1f2937;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: .95em;
}

.download-vip-card .download-btn-vip:hover {
    background: linear-gradient(90deg, #bfa14a, #eac86b);
    transform: translateY(-2px);
}

.download-vip-card .download-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: .95em;
}

.download-vip-card .download-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 自定义卡片样式 - 在屏幕中央显示 */
.download-custom-card {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10000;
    background: rgba(30, 30, 30, .95);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
    min-width: 320px;
    max-width: 420px;
    padding: 20px;
    pointer-events: auto;
    animation: downloadFadeInUp .3s;
    margin: 0 auto;
    box-sizing: border-box;
}

.download-custom-card .download-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.download-custom-card .download-card-icon {
    font-size: 24px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-custom-card .download-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #eac86b;
}

.download-custom-card .download-card-content {
    margin-bottom: 16px;
}

.download-custom-card .download-card-desc {
    margin: 0 0 12px 0;
    font-size: .95em;
    opacity: 0.9;
    line-height: 1.4;
}

.download-custom-card .download-card-actions {
    display: flex;
    gap: 12px;
}

.download-custom-card .download-btn-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: .95em;
}

.download-custom-card .download-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 提示信息卡片会员引导信息样式 */
.download-custom-card .download-vip-promotion {
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.download-custom-card .download-vip-text {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.download-custom-card .download-vip-link {
    display: inline-block;
    background: linear-gradient(90deg, #eac86b, #bfa14a);
    color: #1f2937;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-custom-card .download-vip-link:hover {
    background: linear-gradient(90deg, #bfa14a, #eac86b);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(234, 200, 107, 0.3);
}

/* 下载进度卡片样式 - 保持原有样式 */
.download-progress-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: rgba(30, 30, 30, .95);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .18);
    margin: 0 0 12px;
    min-width: 320px;
    max-width: 560px;
    width: auto;
    padding: 16px 20px;
    pointer-events: auto;
    animation: downloadFadeInUp .3s;
    position: relative;
    box-sizing: border-box;
}

.download-progress-card .download-card-content-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.download-progress-card .download-cancel-btn {
    position: absolute !important;
    top: 8px !important;
    right: 12px !important;
    background: rgba(0, 0, 0, .18) !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.3em !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    cursor: pointer;
    z-index: 100 !important;
    transition: background .2s;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.download-progress-card .download-cancel-btn:hover {
    background: rgba(255, 0, 0, .25) !important;
    color: gold !important;
}

.download-progress-card .download-card-content-wrapper .download-thumb,
.download-progress-card .download-thumb,
.download-progress-card img.download-thumb {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    border-radius: 12px;
    object-fit: cover !important;
    background: #222;
    flex-shrink: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.download-progress-card .download-card-content-wrapper .download-info,
.download-progress-card .download-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.download-progress-card .download-info .download-title,
.download-progress-card .download-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    display: block;
    width: 100%;
    max-width: none;
}

.download-progress-card .download-info .download-resolution,
.download-progress-card .download-resolution {
    font-size: .95em;
    color: #eac86b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    max-width: none;
}

.download-progress-card .download-info .download-img-size,
.download-progress-card .download-img-size {
    font-size: .95em;
    color: #bfa14a;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.download-progress-card .download-card-content-wrapper .download-info .download-progress-bar-bg,
.download-progress-card .download-info .download-progress-bar-bg,
.download-progress-card .download-progress-bar-bg {
    width: 100% !important;
    height: 8px !important;
    background: #444 !important;
    border-radius: 4px !important;
    margin-top: 4px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.download-progress-card .download-card-content-wrapper .download-info .download-progress-bar-bg .download-progress-bar,
.download-progress-card .download-info .download-progress-bar-bg .download-progress-bar,
.download-progress-card .download-progress-bar-bg .download-progress-bar,
.download-progress-card .download-info .download-progress-bar,
.download-progress-card .download-progress-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #eac86b, #bfa14a) !important;
    border-radius: 4px !important;
    transition: width .2s !important;
    margin: 0 !important;
    padding: 0 !important;
}

.download-progress-card .download-card-content-wrapper .download-percent,
.download-progress-card .download-percent {
    font-size: .95em !important;
    min-width: 48px !important;
    max-width: 60px !important;
    width: auto !important;
    text-align: right !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 会员引导信息样式 */
.download-progress-card .download-vip-promotion {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.download-progress-card .download-vip-text {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    flex: 1;
}

.download-progress-card .download-vip-link {
    display: inline-block;
    background: linear-gradient(90deg, #eac86b, #bfa14a);
    color: #1f2937;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-progress-card .download-vip-link:hover {
    background: linear-gradient(90deg, #bfa14a, #eac86b);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(234, 200, 107, 0.3);
}

.download-progress-card .download-retry-btn {
    position: absolute;
    top: 8px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.9em;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.download-progress-card .download-retry-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

@keyframes downloadFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 中等屏幕（平板）优化 */
@media (min-width: 601px) and (max-width: 1024px) {
    .download-progress-card {
        max-width: 480px;
    }
}

@media (max-width: 600px) {
    #download-progress-container {
        left: 0;
        right: 0;
        bottom: 12px;
        padding: 0 4vw;
        align-items: center;
    }
    
    .download-progress-card {
        min-width: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        padding: 12px 10px;
        border-radius: 12px;
        margin: 0 0 8px;
    }
    
    .download-progress-card .download-card-content-wrapper .download-thumb,
    .download-progress-card .download-thumb,
    .download-progress-card img.download-thumb {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        border-radius: 8px;
        object-fit: cover !important;
        flex-shrink: 0 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .download-progress-card .download-card-content-wrapper {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100% !important;
        min-width: 0 !important;
        gap: 10px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .download-progress-card .download-cancel-btn {
        position: absolute !important;
        top: 4px !important;
        right: 6px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 1.1em !important;
    }
    
    .download-progress-card .download-info .download-resolution,
    .download-progress-card .download-info .download-title,
    .download-progress-card .download-resolution,
    .download-progress-card .download-title {
        max-width: none;
        font-size: .95em;
    }
    
    .download-progress-card .download-card-content-wrapper .download-percent,
    .download-progress-card .download-percent {
        font-size: .95em !important;
        min-width: 36px !important;
        max-width: 50px !important;
        width: auto !important;
        text-align: right !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .download-progress-card .download-info .download-progress-bar-bg,
    .download-progress-card .download-progress-bar-bg {
        height: 6px;
    }
    
    .download-progress-card .download-info .download-resolution,
    .download-progress-card .download-resolution {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-break: break-all;
    }
    
    .download-progress-card .download-vip-promotion {
        margin-top: 10px;
        padding-top: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .download-progress-card .download-vip-text {
        text-align: center;
        font-size: 0.8em;
    }
    
    .download-progress-card .download-vip-link {
        width: 100%;
        text-align: center;
        padding: 8px 16px;
    }
    
    .download-progress-card .download-retry-btn {
        top: 4px;
        right: 32px;
        font-size: 0.8em;
        padding: 3px 6px;
    }
    .download-login-card,
    .download-vip-card {
        min-width: 0;
        width: calc(100vw - 40px);
        max-width: 400px;
        padding: 16px;
        margin: 0 auto;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        top: 50%;
    }
    
    .download-login-card .download-card-actions,
    .download-vip-card .download-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .download-login-card .download-btn-login,
    .download-login-card .download-btn-cancel,
    .download-vip-card .download-btn-vip,
    .download-vip-card .download-btn-cancel {
        width: 100%;
        padding: 12px 16px;
    }
    
    /* 移动端自定义卡片样式 */
    .download-custom-card {
        min-width: 0;
        width: calc(100vw - 40px);
        max-width: 400px;
        padding: 16px;
        margin: 0 auto;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        top: 50%;
    }
    
    .download-custom-card .download-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .download-custom-card .download-btn-cancel {
        width: 100%;
        padding: 12px 16px;
    }
    
    .download-custom-card .download-vip-promotion {
        margin-top: 12px;
        padding-top: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .download-custom-card .download-vip-text {
        text-align: center;
        font-size: 0.8em;
    }
    
    .download-custom-card .download-vip-link {
        width: 100%;
        text-align: center;
        padding: 8px 16px;
    }
} 

.download-card-actions{
    text-align: center;
}