/* 二维码确认界面样式 */
.qr-confirmation {
    text-align: center;
    padding: 20px;
}

.qr-info {
    margin-bottom: 25px;
}

.qr-info h3 {
    margin: 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.qr-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 文件信息样式 */
.file-info {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.file-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-detail .wb-icon-dlipp {
    width: 24px;
    height: 24px;
    fill: var(--mainColor, #06c);
    flex-shrink: 0;
}

.file-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.file-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    word-break: break-all;
    line-height: 1.4;
}

.file-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.file-stats span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.file-size {
    color: var(--mainColor, #06c);
    font-weight: 500;
}

.file-time {
    color: #28a745;
}

.file-views {
    display: none !important;
    color: #6c757d;
}

.qr-code-container {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #e1e5e9;
    position: relative;
}

.wechat-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 16px;
    background: #07c160;
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    margin: 0 auto 15px;
}

.wechat-icon {
    font-size: 16px;
}



/* 二维码容器内层 */
.qr-code-container-inner {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

/* 二维码容器内层 */
.qr-code-container-inner {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.qr-code-image {
    display: block;
    margin: 0 auto 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 10px;
    width: 220px;
    height: 220px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* 二维码中心的微信Logo */
.qr-wechat-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.wechat-logo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #07c160 0%, #06b050 100%);
    border: 4px solid #ffffff;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wechat-logo-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
}

.wechat-logo-icon {
    width: 100%;
    height: 100%;
    background-image: url("https://res.wx.qq.com/a/wx_fed/assets/res/OTE0YTAw.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
    position: relative;
}

.qr-code-image {
    display: block;
    margin: 0 auto 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 10px;
}

.confirm-code {
    display: none;
    font-size: 16px;
    color: #495057;
    margin-top: 10px;
}

.confirm-code strong {
    color: var(--mainColor, #06c);
    font-family: 'Courier New', monospace;
    font-size: 18px;
    background: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 5px;
}

.qr-actions {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    display: none;
}

.qr-actions .wb-btn {
    min-width: 120px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-skip-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
}

.qr-skip-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.qr-refresh-btn {
    background: var(--mainColor, #06c);
    border: 2px solid var(--mainColor, #06c);
    color: white;
}

.qr-refresh-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.qr-status {
    margin-top: 20px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
}

.qr-status span {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* 成功状态样式 */
.qr-status span[style*="color: #40b875"] {
    animation: none;
    font-weight: 600;
}

/* 微信扫码步骤说明 */
.qr-steps {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
    line-height: 1.4;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #07c160;
    text-align: left;
}

.qr-steps strong {
    color: #07c160;
    font-weight: 600;
}

.qr-code-container::after {
    /* content: "💬"; */
    position: absolute;
    top: -10px;
    right: 15px;
    background: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .qr-confirmation {
        padding: 15px;
    }

    .file-info {
        margin: 15px 0;
        padding: 12px;
    }

    .file-detail {
        gap: 10px;
    }

    .file-name {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .file-stats {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .file-stats span {
        font-size: 12px;
    }

    .qr-code-container {
        padding: 15px;
        margin: 20px 0;
    }

    .qr-code-image {
        max-width: 180px;
        height: auto;
    }

    .qr-actions {
        flex-direction: column;
        align-items: center;
    }

    .qr-actions .wb-btn {
        width: 100%;
        max-width: 200px;
    }

    .confirm-code {
        display: none;
        font-size: 14px;
    }

    .confirm-code strong {
        font-size: 16px;
        display: block;
        margin-top: 5px;
        margin-left: 0;
    }
}

/* 弹窗内的特殊样式调整 */
.wbdl-dialog .qr-confirmation {
    min-height: auto;
}

.wbdl-dialog .qr-info .wbsico-dlipp-confirm {
    fill: var(--mainColor, #06c);
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}

/* 加载动画优化 */
.qr-code-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--mainColor, #06c);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-code-container.loading::before {
    opacity: 1;
}

.qr-code-container.loading .qr-code-image {
    opacity: 0.3;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 二维码图像容器 */
.qr-image-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.qr-skeleton {
    display: block;
    /* 显示骨架屏 */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.skeleton-box {
    width: 220px;
    height: 220px;
    background: #f0f0f0;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.qr-code-image {
    width: 220px;
    height: 220px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 10px;
    display: block;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .qr-code-image {
        width: 190px;
        height: 190px;
    }
}