/* updates.css (updates.html 专属样式) */

.updates-section h2 {
    text-align: center;
    color: #1e5631;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

/* 定义为页面居中的一个框，宽度约800像素 */
.update-content {
    max-width: 800px;
    margin: 0 auto; /* 使用 margin: 0 auto 实现水平居中 */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 为每个 update-card 增加间距 */
}

/* 更新卡片样式 */
.update-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    /* 默认就是块级元素，会占据一行，这里无需额外设置 */
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.update-card h3 {
    color: #1e5631;
    margin-bottom: 0.5rem;
}

.update-card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .update-content {
        gap: 1rem; /* 在小屏幕上减小卡片间距 */
    }
    .update-card {
        padding: 1rem; /* 在小屏幕上减小卡片内边距 */
    }
}

