|
@@ -1,65 +1,95 @@
|
|
|
+/* 页面整体背景 */
|
|
|
.green-box {
|
|
|
- width: 95%; /* 绿色框的宽度 */
|
|
|
- margin: 10rpx auto 0; /* 减少顶部外边距 */
|
|
|
- padding: 10rpx; /* 内边距 */
|
|
|
- background-color: #1aad19; /* 背景绿色 */
|
|
|
- border-radius: 10rpx; /* 圆角 */
|
|
|
- text-align: center; /* 内容水平居中 */
|
|
|
- color: #fff; /* 字体白色 */
|
|
|
+ background-color: #4caf50; /* 绿色背景 */
|
|
|
+ padding: 10px 20px; /* 减小上下内边距,控制高度 */
|
|
|
+ text-align: center;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column; /* 设置垂直方向布局 */
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ max-height: 100rpx; /* 限制最大高度 */
|
|
|
+ max-width: calc(100% - 10px); /* 宽度最大100%,两边各留5px */
|
|
|
+ margin-left: 18px; /* 左边留5px */
|
|
|
+ margin-right: 18px; /* 右边留5px */
|
|
|
+ box-sizing: border-box; /* 确保 padding 和 margin 不影响宽度计算 */
|
|
|
}
|
|
|
|
|
|
-.title {
|
|
|
- display: block; /* 强制换行 */
|
|
|
- font-size: 40rpx; /* 标题字体大小 */
|
|
|
- font-weight: bold; /* 加粗 */
|
|
|
+
|
|
|
+.title-en {
|
|
|
+ font-size: 16px;
|
|
|
+ color: #fff;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-bottom: 5px; /* 英文标题和中文标题之间的间距 */
|
|
|
}
|
|
|
|
|
|
-.subtitle {
|
|
|
- display: block; /* 强制换行 */
|
|
|
- font-size: 36rpx; /* 副标题字体大小 */
|
|
|
- font-weight: bold; /* 加粗 */
|
|
|
- margin-top: 5rpx; /* 减少上下间距 */
|
|
|
+.title-cn {
|
|
|
+ font-size: 16px;
|
|
|
+ color: #f1f1f1;
|
|
|
+ font-weight: normal;
|
|
|
}
|
|
|
|
|
|
-.description-box {
|
|
|
- width: 90%; /* 白色框的宽度 */
|
|
|
- margin: 10rpx auto; /* 减少上下间距 */
|
|
|
- padding: 15rpx; /* 增加文字周围空间 */
|
|
|
- background-color: #fff; /* 背景为白色 */
|
|
|
+/* 描述文本样式 */
|
|
|
+.description {
|
|
|
+ font-size: 16px;
|
|
|
+ color: #000;
|
|
|
+ margin-top: 5px; /* 确保文本紧接着标题下面 */
|
|
|
+ text-align: center; /* 保持文本居中 */
|
|
|
}
|
|
|
|
|
|
-.bold-text {
|
|
|
- font-size: 32rpx; /* 加粗字体大小 */
|
|
|
- font-weight: bold; /* 加粗 */
|
|
|
- color: #000; /* 黑色字体 */
|
|
|
+/* 普通文本样式 */
|
|
|
+.container {
|
|
|
+ padding: 10px 20px; /* 调整容器的内边距,减小文字与容器的距离 */
|
|
|
+ line-height: 1; /* 调整行高,控制文字的垂直间距 */
|
|
|
}
|
|
|
|
|
|
.regular-text {
|
|
|
- font-size: 28rpx; /* 正文字体大小 */
|
|
|
- color: #333; /* 深灰色字体 */
|
|
|
+ font-size: 16px; /* 设置字体大小 */
|
|
|
+ color: #333333;
|
|
|
+}
|
|
|
+
|
|
|
+.green-box {
|
|
|
+ padding: 20px;
|
|
|
+ background-color: #4CAF50;
|
|
|
+}
|
|
|
+
|
|
|
+.green-btn {
|
|
|
+ margin-top: 20px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
}
|
|
|
|
|
|
.btn {
|
|
|
- width: 100%;
|
|
|
- height: 80rpx;
|
|
|
- background-color: var(--primary-color, #1aad19);
|
|
|
- color: #fff;
|
|
|
- border: none;
|
|
|
- border-radius: var(--border-radius, 10rpx);
|
|
|
+ width: 45%;
|
|
|
+ padding: 6px 0; /* 减小内边距,按钮看起来会更矮 */
|
|
|
+ background-color: #00C853;
|
|
|
+ color: white;
|
|
|
text-align: center;
|
|
|
- line-height: 45rpx;
|
|
|
- font-size: 36rpx;
|
|
|
- box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.1); /* 添加阴影 */
|
|
|
- transition: background-color 0.3s ease, box-shadow 0.3s ease; /* 背景颜色和阴影过渡效果 */
|
|
|
+ border-radius: 5px;
|
|
|
+ font-size: 24px; /* 调整字体大小,适应按钮高度 */
|
|
|
+ line-height: 30px; /* 调整按钮内文字的行高 */
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+.btn:hover {
|
|
|
+ background-color: #45a049; /* 按钮悬停时的颜色变化 */
|
|
|
}
|
|
|
|
|
|
.btn:active {
|
|
|
- background-color: var(--active-color, #128c13);
|
|
|
- box-shadow: 0 2rpx 5rpx rgba(0, 0, 0, 0.2); /* 按钮点击时阴影变化 */
|
|
|
+ background-color: #388e3c; /* 按钮点击时的颜色变化 */
|
|
|
}
|
|
|
|
|
|
-.btn:hover {
|
|
|
- background-color: var(--hover-color, #16b818);
|
|
|
- cursor: pointer; /* 鼠标悬浮时显示手型 */
|
|
|
+/*.green-btn {
|
|
|
+ display: flex; /* 使用 flex 布局
|
|
|
+ justify-content: space-between; /* 水平分布按钮,间距自动
|
|
|
+ gap: 10rpx; /* 添加按钮之间的间距
|
|
|
}
|
|
|
|
|
|
+.btn {
|
|
|
+ background-color: #32cd32;
|
|
|
+ color: white;
|
|
|
+ padding: 10px 20px;
|
|
|
+ border-radius: 5px;
|
|
|
+ border: none;
|
|
|
+ cursor: pointer;
|
|
|
+}*/
|