.container { display: flex; flex-direction: column; gap: 20px; padding: 20px; background-color: #f5f5f5; margin-top: 60px; } .card { display: flex; /* 使用 flexbox 布局 */ align-items: center; width: 90%; background-color: #ffffff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease; cursor: pointer; } .card:hover { transform: scale(1.05); } .card-icon { width: 40px; height: 40px; margin-bottom: 20px; margin-right: 90px; /* 与内容保持间距 */ } .card-content { flex: 1; /* 占据剩余空间,保证布局一致 */ text-align: center; /* 内容水平居中 */ } .card-title { font-size: 18px; font-weight: bold; color: #333; } .card:nth-child(1) { background-color: #FFDDC1; /* 软件简介卡片颜色 */ } .card:nth-child(2) { background-color: #C1E1FF; /* 项目简介卡片颜色 */ } .card:nth-child(3) { background-color: #D4F4DD; /* 研究成果卡片颜色 */ } .card:nth-child(4) { background-color: #FFD700; /* 团队信息卡片颜色 */ }