/* ========================================
   index.css - 首页独有样式（仅首页生效）
   ======================================== */
/* 首页标语区（匹配 .hero 结构） */
.hero {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 12px;
}

.hero h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.hero p {
    font-size: 15px;
    color: #888888;
    line-height: 1.5;
}


        /* 滑动加载提示样式（更像APP） */
        .loading-tip {
            text-align:center;
            padding:15px;
            color:#666;
            font-size:14px;
            display:none;
        }
        .loading-tip::after {
            content: '';
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid #666;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            margin-left: 8px;
            vertical-align: middle;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .end-tip {
            text-align:center;
            padding:15px;
            color:#999;
            font-size:14px;
            display:none;
        }
        
        
        /* ========================================
   首页手机端响应式（仅首页生效）
   ======================================== */
@media (max-width: 768px) {
    .resource-list {
        grid-template-columns: repeat(2, 1fr); /* 手机端2列 */
        gap: 10px;
    }
    .hero h2 {
        font-size: 15px;
    }
}

/* 首页资源列表布局（匹配 .resource-list 结构） */
.resource-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列布局 */
    gap: 15px;
    margin-bottom: 30px;
}

.resource-cover-link{position:relative;
                  display:block
    
                }
        .resource-type{position:absolute;top:6px;
        left:6px;
        background:#007bff;
        color:#fff;
        padding:2px 6px;
        border-radius:3px;
        font-size:12px;
        z-index:2 
            
        }