feat: migrate static pages to native tabbar

This commit is contained in:
2026-04-23 21:25:24 +08:00
parent f3cd0c3a98
commit cd30f57f2c
116 changed files with 7143 additions and 311 deletions

205
pages/library/index.wxss Normal file
View File

@@ -0,0 +1,205 @@
page {
min-height: 100%;
background:
linear-gradient(180deg, #f8edd6 0%, #f9f0de 24%, #f6ead4 100%);
}
.library-page {
box-sizing: border-box;
min-height: 100vh;
padding: 36rpx 20rpx 80rpx;
background:
linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 248, 236, 0) 36%),
linear-gradient(225deg, rgba(255, 245, 227, 0.68) 0%, rgba(255, 245, 227, 0) 48%);
}
.library-page__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18rpx 2rpx 30rpx;
}
.library-page__title {
font-family: 'STSong', 'Songti SC', serif;
font-size: 60rpx;
font-weight: 700;
line-height: 1.2;
color: #2f1f12;
}
.library-page__search {
min-width: 112rpx;
padding: 18rpx 26rpx;
border-radius: 999rpx;
background: rgba(240, 225, 201, 0.9);
box-shadow: 0 12rpx 24rpx rgba(173, 120, 56, 0.08);
color: #a56d2d;
font-family: 'STSong', 'Songti SC', serif;
font-size: 30rpx;
line-height: 1;
text-align: center;
}
.library-page__content {
display: flex;
align-items: stretch;
}
.library-page__sidebar {
box-sizing: border-box;
width: 168rpx;
flex-shrink: 0;
padding: 16rpx 14rpx;
border: 1rpx solid rgba(189, 155, 105, 0.12);
border-radius: 34rpx;
background: rgba(255, 250, 243, 0.86);
box-shadow: 0 16rpx 32rpx rgba(178, 144, 99, 0.08);
}
.library-page__category {
padding: 22rpx 16rpx;
border-radius: 24rpx;
}
.library-page__category + .library-page__category {
margin-top: 14rpx;
}
.library-page__category--active {
background: linear-gradient(180deg, rgba(240, 228, 207, 0.98) 0%, rgba(236, 221, 197, 0.98) 100%);
box-shadow: inset 0 -8rpx 18rpx rgba(186, 149, 99, 0.08);
}
.library-page__category-label {
display: block;
color: #8f6a42;
font-family: 'STSong', 'Songti SC', serif;
font-size: 32rpx;
line-height: 1.5;
}
.library-page__category--active .library-page__category-label {
color: #7b501f;
font-weight: 700;
}
.library-page__main {
flex: 1;
margin-left: 16rpx;
}
.library-page__bridge {
padding: 26rpx 26rpx 24rpx;
border: 1rpx solid rgba(191, 154, 103, 0.2);
border-radius: 34rpx;
background: linear-gradient(135deg, rgba(255, 249, 239, 0.96) 0%, rgba(245, 233, 214, 0.98) 100%);
box-shadow: 0 16rpx 28rpx rgba(176, 136, 84, 0.1);
}
.library-page__bridge-title {
display: block;
color: #6f451c;
font-family: 'STSong', 'Songti SC', serif;
font-size: 36rpx;
font-weight: 700;
line-height: 1.35;
}
.library-page__bridge-subtitle {
display: block;
margin-top: 10rpx;
color: #97714a;
font-size: 26rpx;
line-height: 1.7;
}
.library-page__current {
margin-top: 16rpx;
padding: 30rpx 26rpx;
border: 1rpx solid rgba(189, 155, 105, 0.12);
border-radius: 34rpx 34rpx 0 0;
background: rgba(255, 250, 243, 0.88);
color: #9c6d35;
font-family: 'STSong', 'Songti SC', serif;
font-size: 30rpx;
line-height: 1.4;
}
.library-page__book-list {
padding: 0 0 8rpx;
border: 1rpx solid rgba(189, 155, 105, 0.08);
border-top: 0;
border-radius: 0 0 34rpx 34rpx;
background: rgba(255, 250, 243, 0.72);
}
.book-card {
display: flex;
align-items: center;
margin: 18rpx;
padding: 22rpx 20rpx;
border: 1rpx solid rgba(192, 159, 117, 0.14);
border-radius: 28rpx;
background: rgba(255, 252, 247, 0.96);
box-shadow: 0 12rpx 24rpx rgba(181, 145, 97, 0.08);
}
.book-card__cover {
position: relative;
width: 100rpx;
height: 136rpx;
flex-shrink: 0;
border-radius: 22rpx;
background: linear-gradient(180deg, #d5b07b 0%, #c99f67 100%);
box-shadow: 0 10rpx 18rpx rgba(173, 128, 70, 0.14);
}
.book-card__cover-spine {
position: absolute;
top: 0;
left: 0;
width: 12rpx;
height: 100%;
border-top-left-radius: 22rpx;
border-bottom-left-radius: 22rpx;
background: rgba(138, 93, 48, 0.4);
}
.book-card__cover-char {
position: absolute;
top: 50%;
left: 12rpx;
right: 0;
transform: translateY(-50%);
color: #fff7eb;
font-family: 'STSong', 'Songti SC', serif;
font-size: 42rpx;
font-weight: 700;
line-height: 1;
text-align: center;
}
.book-card__body {
min-width: 0;
flex: 1;
margin-left: 18rpx;
}
.book-card__title {
display: block;
color: #2f1f12;
font-family: 'STSong', 'Songti SC', serif;
font-size: 42rpx;
font-weight: 700;
line-height: 1.35;
}
.book-card__meta {
display: block;
margin-top: 14rpx;
color: #8f6a42;
font-family: 'STSong', 'Songti SC', serif;
font-size: 28rpx;
line-height: 1.6;
}