## 小程序 1. 搜索页面:添加热门章节推荐 2. 我的页面:点击ID可复制 3. 设置页面:添加自动提现开关 ## 后台 1. 新增热门章节API (/api/book/hot) 2. 章节保存时自动去掉Markdown标题 ## 规则 1. .cursorrules添加完整部署流程
336 lines
5.5 KiB
Plaintext
336 lines
5.5 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);
|
|
}
|
|
|
|
/* 热门章节 */
|
|
.hot-chapters {
|
|
padding: 32rpx 0;
|
|
margin-top: 16rpx;
|
|
}
|
|
|
|
.chapter-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.chapter-item {
|
|
display: flex;
|
|
align-items: center;
|
|
background: rgba(255,255,255,0.05);
|
|
border-radius: 20rpx;
|
|
padding: 24rpx;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.chapter-rank {
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
color: #000;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chapter-item:nth-child(1) .chapter-rank { background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); }
|
|
.chapter-item:nth-child(2) .chapter-rank { background: linear-gradient(135deg, #C0C0C0 0%, #A9A9A9 100%); }
|
|
.chapter-item:nth-child(3) .chapter-rank { background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%); }
|
|
|
|
.chapter-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.chapter-title {
|
|
font-size: 28rpx;
|
|
color: #fff;
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chapter-part {
|
|
font-size: 22rpx;
|
|
color: rgba(255,255,255,0.4);
|
|
margin-top: 6rpx;
|
|
display: block;
|
|
}
|
|
|
|
.chapter-tag {
|
|
padding: 8rpx 16rpx;
|
|
border-radius: 16rpx;
|
|
font-size: 22rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chapter-tag.tag-free { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
|
|
.chapter-tag.tag-hot { background: rgba(255, 87, 34, 0.2); color: #FF5722; }
|
|
.chapter-tag.tag-new { background: rgba(233, 30, 99, 0.2); color: #E91E63; }
|
|
|
|
/* 搜索结果 */
|
|
.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);
|
|
}
|