/* PPT列表无限滚动样式 */
.ppt-list-container {
    position: relative;
}

/* 加载更多指示器 */
.load-more-indicator {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

.load-more-indicator.loading {
    background: #f8f9fa;
}

.load-more-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* 没有更多数据提示 */
.no-more-data {
    text-align: center;
    padding: 15px;
    color: #868e96;
    font-size: 13px;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

/* 下拉刷新提示 */
.pull-refresh-tip {
    text-align: center;
    padding: 10px;
    color: #007bff;
    font-size: 13px;
    background: #e3f2fd;
    border-radius: 6px;
    margin-bottom: 10px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.pull-refresh-tip.show {
    transform: translateY(0);
    opacity: 1;
}

/* 加载失败重试按钮 */
.load-retry-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
    transition: background 0.2s ease;
}

.load-retry-btn:hover {
    background: #0056b3;
}

/* 二维码关闭按钮样式 */
.qr-code-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.qr-code-close-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.qr-code-close-btn svg {
    stroke-width: 2.5;
}

/* 二维码容器基本样式 */
.qr-code-container {
    position: fixed !important; /* 确保保持右下角固定定位 */
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: 180px;
    display: block; /* 确保默认显示 */
}

.qr-code-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.qr-code-content {
    text-align: center;
}

.qr-code-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 8px;
}

.qr-code-text {
    margin: 0;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

/* iframe懒加载样式 */
.lazy-iframe {
    background: #f8f9fa;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255,255,255,.8) 50%, transparent 60%),
        linear-gradient(to right, #ddd 0%, #eee 20%, #ddd 40%, #eee 60%, #ddd 80%, #eee 100%);
    background-size: 200% 100%, 300% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0, 0% 0;
    }
    100% {
        background-position: -200% 0, 100% 0;
    }
}

/* 加载中的iframe样式 */
.lazy-iframe::before {
    content: "预览加载中...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 12px;
    z-index: 1;
}
