/* 自定义样式 */

/* 导航栏滚动效果 */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.plugin-card, .author-card, .team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 插件名称样式 - 固定高度，防止换行导致的高度不一致 */
.plugin-card h3 {
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* 插件描述样式 - 固定高度，防止文本长度不同导致的高度不一致 */
.plugin-card p.text-gray-600.mb-4 {
    height: 4.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 标签容器样式 - 固定高度，防止标签过多导致的高度不一致 */
.plugin-card .flex.flex-wrap.mb-4 {
    max-height: 5rem;
    overflow-y: hidden;
    margin-top: auto;
}

/* 确保卡片底部区域对齐 */
.plugin-card .flex.justify-between.items-center.mt-6 {
    margin-top: auto;
}

.plugin-card:hover, .author-card:hover, .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 评分星星 */
.star-rating {
    color: #FBBF24;
}

/* 友情链接样式 */
.link-item {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: white;
    color: #4B5563;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.link-item:hover {
    background-color: #818CF8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 骨架屏样式 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* 加载更多按钮 */
.load-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 0.75rem 1.5rem;
    background-color: #6366F1;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #4F46E5;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.load-more-btn:disabled {
    background-color: #A5B4FC;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}