|
@@ -1,27 +1,58 @@
|
|
|
-/* 父容器样式 */
|
|
|
.container {
|
|
|
display: flex;
|
|
|
- flex-direction: column; /* 垂直排列 */
|
|
|
- align-items: center; /* 居中对齐 */
|
|
|
- padding: 20px 0; /* 增加上下内边距 */
|
|
|
- margin: 50px 20px 20px 20px; /* 增加顶部外边距 */
|
|
|
-}
|
|
|
-
|
|
|
-/* 按钮样式 */
|
|
|
-.full-width-button {
|
|
|
- width: 100%; /* 按钮占满宽度 */
|
|
|
- padding: 15px 0; /* 按钮内边距,控制高度 */
|
|
|
- margin: 15px 0; /* 按钮间距 */
|
|
|
- background-color: #3EC01E; /* 按钮背景颜色 */
|
|
|
- color: white; /* 按钮文字颜色 */
|
|
|
- font-size: 18px; /* 按钮文字大小 */
|
|
|
- border: none; /* 去除按钮边框 */
|
|
|
- outline: none; /* 去除焦点边框 */
|
|
|
- text-align: center; /* 文字居中 */
|
|
|
- border-radius: 5px; /* 圆角效果 */
|
|
|
-}
|
|
|
-
|
|
|
-/* 按钮点击效果 */
|
|
|
-.full-width-button:active {
|
|
|
- background-color: #299A0C; /* 按下按钮时的颜色变化 */
|
|
|
+ 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; /* 团队信息卡片颜色 */
|
|
|
}
|