Model Selection.wxss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. gap: 20px;
  5. padding: 20px;
  6. background-color: #f5f5f5;
  7. margin-top: 60px;
  8. }
  9. .card {
  10. display: flex; /* 使用 flexbox 布局 */
  11. align-items: center;
  12. width: 90%;
  13. background-color: #ffffff;
  14. padding: 20px;
  15. border-radius: 12px;
  16. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  17. transition: transform 0.2s ease;
  18. cursor: pointer;
  19. }
  20. .card:hover {
  21. transform: scale(1.05);
  22. }
  23. .card-icon {
  24. width: 40px;
  25. height: 40px;
  26. margin-bottom: 20px;
  27. margin-right: 90px; /* 与内容保持间距 */
  28. }
  29. .card-content {
  30. flex: 1; /* 占据剩余空间,保证布局一致 */
  31. text-align: center; /* 内容水平居中 */
  32. }
  33. .card-title {
  34. font-size: 18px;
  35. font-weight: bold;
  36. color: #333;
  37. }
  38. .card:nth-child(1) {
  39. background-color: #FFDDC1; /* 软件简介卡片颜色 */
  40. }
  41. .card:nth-child(2) {
  42. background-color: #C1E1FF; /* 项目简介卡片颜色 */
  43. }
  44. .card:nth-child(3) {
  45. background-color: #D4F4DD; /* 研究成果卡片颜色 */
  46. }
  47. .card:nth-child(4) {
  48. background-color: #FFD700; /* 团队信息卡片颜色 */
  49. }