feat: 优化页面布局和交互体验

- 使用sticky定位替代fixed定位,提升滚动体验
- 添加视频播放图标和图片展示功能
- 实现搜索框热门关键词轮播效果
- 优化编辑器链接插入功能
- 调整组件样式和布局细节
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-11-10 19:06:58 +08:00
parent b7feedb350
commit 5cdbeb249f
26 changed files with 517 additions and 373 deletions

View File

@@ -5,238 +5,150 @@ body {
margin: 0;
padding: 0;
}
.container {
.bi-container {
width: 1027px;
height: 755px;
border: 1px solid rgb(228, 228, 228);
border-radius: 11px;
margin: 20px;
// height: 755px;
padding-top: 22px;
margin-top: 20px;
* {
padding: 0;
margin: 0;
}
}
.title {
display: flex;
align-items: center;
margin: 0 12px 20px;
img {
.bi-icon {
width: 29px;
height: 34px;
height: 32px;
margin-right: 8px;
background-image: url(../img/bi-icon.png);
background-size: contain;
background-repeat: no-repeat;
}
h2 {
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: rgb(0, 0, 0);
line-height: 30px;
}
}
.title {
display: flex;
align-items: center;
margin: 0 12px 20px;
/* 主标题样式扩展 */
.bi-main-title {
display: flex;
align-items: center;
margin: 0 12px 20px;
&-icon {
width: 29px;
height: 34px;
margin-right: 8px;
}
&-heading {
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: rgb(0, 0, 0);
line-height: 30px;
}
}
// .table {
// width: calc(100% - 24px);
// border-collapse: collapse;
// margin: 0 12px 25px;
// }
// .table th,
// .table td {
// text-align: center;
// height: 33px;
// }
// .table th {
// background-color: #f5f5f5;
// font-weight: bold;
// font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
// font-weight: 650;
// font-style: normal;
// font-size: 14px;
// color: rgb(0, 0, 0);
// }
// .table td {
// color: rgb(51, 51, 51);
// font-size: 14px;
// }
// .table tr:nth-child(even) {
// background-color: rgb(245, 245, 245);
// }
/* 寄托币表格样式扩展 */
.bi-table {
width: calc(100% - 24px);
border-collapse: collapse;
margin: 0 12px 25px;
&-header {
background-color: #f5f5f5;
font-weight: bold;
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 14px;
color: rgb(0, 0, 0);
text-align: center;
height: 33px;
&.bi-table-event {
/* 事件列特殊样式 */
img {
width: 29px;
height: 34px;
margin-right: 8px;
}
&.bi-table-reward {
/* 奖励列特殊样式 */
}
&.bi-table-limit {
/* 上限列特殊样式 */
h2 {
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: rgb(0, 0, 0);
line-height: 30px;
}
}
&-body {
/* 表格主体样式 */
}
.bi-main-title {
display: flex;
align-items: center;
margin: 0 12px 20px;
&-row {
&:nth-child(even) {
background-color: rgb(245, 245, 245);
&-icon {
width: 29px;
height: 34px;
margin-right: 8px;
}
&-heading {
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: rgb(0, 0, 0);
line-height: 30px;
}
}
&-cell {
color: rgb(51, 51, 51);
font-size: 14px;
text-align: center;
height: 33px;
.bi-table {
width: calc(100% - 24px);
border-collapse: collapse;
margin: 0 12px 25px;
&.bi-table-event {
/* 事件单元格样式 */
&-header {
background-color: #f5f5f5;
font-weight: bold;
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 14px;
color: rgb(0, 0, 0);
text-align: center;
height: 33px;
}
&.bi-table-reward {
/* 奖励单元格样式 */
&-row {
&:nth-child(even) {
background-color: rgb(245, 245, 245);
}
}
&.bi-table-limit {
/* 上限单元格样式 */
&-cell {
color: rgb(51, 51, 51);
font-size: 14px;
text-align: center;
height: 33px;
}
}
}
.supplement {
margin: 0 12px 30px;
}
.supplement h3 {
font-weight: bold;
font-size: 14px;
line-height: 25px;
}
.supplement ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.supplement li {
font-size: 14px;
line-height: 25px;
}
/* 补充说明样式扩展 */
.bi-supplement {
margin: 0 12px 30px;
&-title {
.supplement {
margin: 0 12px 30px;
}
.supplement h3 {
font-weight: bold;
font-size: 14px;
line-height: 25px;
}
&-list {
.supplement ul {
list-style-type: none;
padding: 0;
margin: 0;
}
&-item {
.supplement li {
font-size: 14px;
line-height: 25px;
}
}
.divider {
height: 1px;
background-color: #eee;
margin-bottom: 37px;
}
.usage {
display: flex;
flex-direction: column;
margin-bottom: 8px;
}
.usage img {
width: 29px;
height: 34px;
margin-right: 8px;
}
.usage h3 {
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: rgb(0, 0, 0);
line-height: 30px;
}
.usage ul {
list-style-type: none;
padding: 0 0 0 32px;
margin: 0;
}
.usage li {
margin-bottom: 4px;
}
/* 寄托币用途样式扩展 */
.bi-usage {
display: flex;
flex-direction: column;
margin-bottom: 8px;
.bi-supplement {
margin: 0 12px 30px;
&-title {
display: flex;
align-items: center;
margin-bottom: 10px;
&-title {
font-weight: bold;
font-size: 14px;
line-height: 25px;
}
&-list {
list-style-type: none;
padding: 0;
margin: 0;
}
&-item {
font-size: 14px;
line-height: 25px;
}
}
&-icon {
.divider {
height: 1px;
background-color: #eee;
margin-bottom: 37px;
}
.usage {
display: flex;
flex-direction: column;
margin-bottom: 8px;
}
.usage img {
width: 29px;
height: 34px;
margin-right: 8px;
}
&-heading {
.usage h3 {
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
@@ -244,16 +156,51 @@ body {
color: rgb(0, 0, 0);
line-height: 30px;
}
&-list {
.usage ul {
list-style-type: none;
padding: 0 0 0 32px;
margin: 0;
}
&-item {
.usage li:not(:last-child) {
margin-bottom: 4px;
font-size: 14px;
color: #333;
}
.bi-usage {
display: flex;
flex-direction: column;
margin-bottom: 35px;
&-title {
display: flex;
align-items: center;
margin-bottom: 0 12px 20px;
}
&-icon {
width: 29px;
height: 34px;
margin-right: 8px;
}
&-heading {
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: rgb(0, 0, 0);
line-height: 30px;
}
&-list {
list-style-type: none;
padding: 0 0 0 32px;
margin: 0;
}
&-item {
margin-bottom: 4px;
font-size: 14px;
color: #333;
}
}
}