/* ==================== 项目内容区样式 ==================== */

/* 更新时间提示 */
.update-info {
    text-align: right;
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* 分类标题 */
.category-title {
    font-size: 1.3rem;
    margin: 25px 0 15px 0;
    padding-left: 5px;
    border-left: 4px solid #ffffff;
}

.category-title:first-of-type {
    margin-top: 0;
}

/* 项目网格布局 */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

/* 项目卡片 */
.project-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 项目图标 */
.project-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.project-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 项目信息区域 */
.project-info {
    flex: 1;
    min-width: 0;
}

.project-info h3 {
    font-size: 1rem;
    margin: 0 0 6px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-info p {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 项目元信息 */
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.7rem;
}

/* 平台徽章 */
.platform {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
}

.platform.gitee {
    background: #c71d23;
    color: white;
}

.platform.github {
    background: #24292e;
    color: white;
}

/* 星标数 */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    opacity: 0.7;
}

/* 日期 */
.date {
    opacity: 0.5;
}

/* 空状态提示 */
.empty-msg {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* 错误提示 */
.error-msg {
    text-align: center;
    padding: 40px;
    background: rgba(255, 80, 80, 0.1);
    border-radius: 12px;
    color: #ff6b6b;
}

/* 加载动画 */
.loading-spinner {
    text-align: center;
    padding: 50px;
    color: rgba(255, 255, 255, 0.7);
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

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

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .project-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .project-card {
        padding: 12px;
    }
    
    .category-title {
        font-size: 1.1rem;
        margin: 20px 0 12px 0;
    }
    
    .update-info {
        font-size: 10px;
        margin-bottom: 15px;
    }
}

/* ==================== 触摸设备优化 ==================== */
@media (hover: none) {
    .project-card:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.08);
    }
}