/* PC端首页样式 */

/* 无限滚动样式 */
.infinite-scroll-loader {
    padding: 50px 20px;
    text-align: center;
    background: var(--card-bg);
    border-radius: 16px;
    margin: 30px auto;
    box-shadow: 0 4px 20px var(--shadow);
    max-width: 400px;
}

.loader-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.loader-content i {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-more-data {
    padding: 40px 20px;
    text-align: center;
    background: var(--card-bg);
    border-radius: 16px;
    margin: 30px auto;
    box-shadow: 0 4px 20px var(--shadow);
    max-width: 400px;
}

.no-more-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.no-more-content i {
    color: var(--success);
    font-size: 16px;
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-grid-section {
    padding: 2rem 0;
}

/* 视频网格容器 */
.video-grid-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* 网格卡片样式 */
.grid-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    position: relative;
    height: fit-content;
}

.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(233, 69, 96, 0.3);
    border-color: var(--highlight);
}

/* 白色模式下的卡片悬停效果 */
:root .grid-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 黑色模式下的卡片悬停效果 */
[data-theme="dark"] .grid-card:hover {
    box-shadow: 0 15px 35px rgba(233, 69, 96, 0.3);
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 缩略图样式 */
.card-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

/* 时长显示 */
.card-duration-right {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: transparent;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 
                 -1px -1px 2px rgba(0, 0, 0, 0.6),
                 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* PC端观看次数样式 - 透明背景 */
.card-views-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: transparent;
    color: var(--text);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* 白色模式下的文字阴影 */
:root .card-views-overlay {
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), 
                 -1px -1px 2px rgba(255, 255, 255, 0.6),
                 1px 1px 2px rgba(255, 255, 255, 0.6);
}

/* 黑色模式下的文字阴影 */
[data-theme="dark"] .card-views-overlay {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 
                 -1px -1px 2px rgba(0, 0, 0, 0.6),
                 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* 播放按钮覆盖层 */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.grid-card:hover .play-icon {
    transform: scale(1.1);
}

/* 卡片信息区域 */
.card-info {
    padding: 1.2rem;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.3s ease;
}

.grid-card:hover .card-title {
    color: var(--success);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .pc-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .pc-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}