主要更新: - 后台菜单精简(9项→6项) - 新增搜索功能(敏感信息过滤) - 分销绑定和提现系统完善 - 数据库初始化API(自动修复表结构) - 用户管理:显示绑定关系详情 - 小程序:上下章导航优化、匹配页面重构 - 修复hydration和数据类型问题
265 lines
4.0 KiB
Plaintext
265 lines
4.0 KiB
Plaintext
/* 章节搜索页样式 */
|
|
.page {
|
|
min-height: 100vh;
|
|
background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
|
|
}
|
|
|
|
/* 导航栏 */
|
|
.nav-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
background: rgba(10, 10, 10, 0.95);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.nav-content {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8rpx 24rpx;
|
|
height: 88rpx;
|
|
}
|
|
|
|
.back-btn {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.back-icon {
|
|
font-size: 40rpx;
|
|
color: #00CED1;
|
|
}
|
|
|
|
.search-input-wrap {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
background: rgba(255,255,255,0.08);
|
|
border-radius: 40rpx;
|
|
padding: 0 24rpx;
|
|
height: 64rpx;
|
|
margin: 0 16rpx;
|
|
}
|
|
|
|
.search-icon-small {
|
|
font-size: 28rpx;
|
|
margin-right: 12rpx;
|
|
}
|
|
|
|
.search-input {
|
|
flex: 1;
|
|
font-size: 28rpx;
|
|
color: #fff;
|
|
}
|
|
|
|
.search-input::placeholder {
|
|
color: rgba(255,255,255,0.4);
|
|
}
|
|
|
|
.clear-btn {
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 32rpx;
|
|
color: rgba(255,255,255,0.5);
|
|
}
|
|
|
|
.search-btn {
|
|
font-size: 28rpx;
|
|
color: #00CED1;
|
|
padding: 0 16rpx;
|
|
}
|
|
|
|
/* 主内容 */
|
|
.main-content {
|
|
padding: 24rpx;
|
|
}
|
|
|
|
/* 热门搜索 */
|
|
.hot-section {
|
|
padding: 24rpx 0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 28rpx;
|
|
color: rgba(255,255,255,0.6);
|
|
margin-bottom: 24rpx;
|
|
display: block;
|
|
}
|
|
|
|
.hot-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.hot-tag {
|
|
background: rgba(0, 206, 209, 0.15);
|
|
color: #00CED1;
|
|
padding: 16rpx 32rpx;
|
|
border-radius: 32rpx;
|
|
font-size: 28rpx;
|
|
border: 1rpx solid rgba(0, 206, 209, 0.3);
|
|
}
|
|
|
|
/* 搜索结果 */
|
|
.results-section {
|
|
padding: 16rpx 0;
|
|
}
|
|
|
|
.results-header {
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.results-count {
|
|
font-size: 26rpx;
|
|
color: rgba(255,255,255,0.5);
|
|
}
|
|
|
|
.results-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24rpx;
|
|
}
|
|
|
|
.result-item {
|
|
background: rgba(255,255,255,0.05);
|
|
border-radius: 24rpx;
|
|
padding: 28rpx;
|
|
position: relative;
|
|
border: 1rpx solid rgba(255,255,255,0.08);
|
|
}
|
|
|
|
.result-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.result-chapter {
|
|
font-size: 24rpx;
|
|
color: #00CED1;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.result-tags {
|
|
display: flex;
|
|
gap: 12rpx;
|
|
}
|
|
|
|
.tag {
|
|
font-size: 20rpx;
|
|
padding: 6rpx 16rpx;
|
|
border-radius: 20rpx;
|
|
}
|
|
|
|
.tag-match {
|
|
background: rgba(147, 112, 219, 0.2);
|
|
color: #9370DB;
|
|
}
|
|
|
|
.tag-free {
|
|
background: rgba(76, 175, 80, 0.2);
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.result-title {
|
|
font-size: 30rpx;
|
|
color: #fff;
|
|
font-weight: 500;
|
|
line-height: 1.5;
|
|
display: block;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.result-part {
|
|
font-size: 24rpx;
|
|
color: rgba(255,255,255,0.5);
|
|
display: block;
|
|
}
|
|
|
|
.result-content {
|
|
margin-top: 16rpx;
|
|
padding-top: 16rpx;
|
|
border-top: 1rpx solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.content-preview {
|
|
font-size: 24rpx;
|
|
color: rgba(255,255,255,0.6);
|
|
line-height: 1.6;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.result-arrow {
|
|
position: absolute;
|
|
right: 28rpx;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
font-size: 32rpx;
|
|
color: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
/* 加载状态 */
|
|
.loading-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 100rpx 0;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
border: 4rpx solid rgba(0, 206, 209, 0.3);
|
|
border-top-color: #00CED1;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.loading-text {
|
|
margin-top: 24rpx;
|
|
font-size: 28rpx;
|
|
color: rgba(255,255,255,0.5);
|
|
}
|
|
|
|
/* 空状态 */
|
|
.empty-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 100rpx 0;
|
|
}
|
|
|
|
.empty-icon {
|
|
font-size: 80rpx;
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.empty-text {
|
|
font-size: 32rpx;
|
|
color: rgba(255,255,255,0.6);
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.empty-hint {
|
|
font-size: 26rpx;
|
|
color: rgba(255,255,255,0.4);
|
|
}
|