506 lines
8.9 KiB
Plaintext
506 lines
8.9 KiB
Plaintext
/**
|
|
* Soul创业实验 - 目录页样式
|
|
* 1:1还原Web版本UI
|
|
*/
|
|
|
|
.page {
|
|
min-height: 100vh;
|
|
background: #000000;
|
|
padding-bottom: 200rpx;
|
|
}
|
|
|
|
/* ===== 自定义导航栏 ===== */
|
|
.nav-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
background: rgba(0, 0, 0, 0.9);
|
|
backdrop-filter: blur(40rpx);
|
|
-webkit-backdrop-filter: blur(40rpx);
|
|
border-bottom: 1rpx solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.nav-content {
|
|
height: 88rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 32rpx;
|
|
}
|
|
|
|
.nav-left,
|
|
.nav-right {
|
|
width: 64rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 36rpx;
|
|
font-weight: 600;
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 搜索按钮 */
|
|
.search-btn {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 50%;
|
|
background: #2c2c2e;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.search-btn:active {
|
|
background: #3c3c3e;
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.search-icon {
|
|
font-size: 32rpx;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
.brand-color {
|
|
color: #00CED1;
|
|
}
|
|
|
|
.nav-placeholder {
|
|
width: 100%;
|
|
}
|
|
|
|
/* ===== 书籍信息卡 ===== */
|
|
.book-info-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24rpx;
|
|
margin: 32rpx 32rpx 24rpx 32rpx;
|
|
padding: 32rpx;
|
|
}
|
|
|
|
.card-gradient {
|
|
background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
|
|
border-radius: 32rpx;
|
|
border: 2rpx solid rgba(0, 206, 209, 0.2);
|
|
box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.book-icon {
|
|
width: 96rpx;
|
|
height: 96rpx;
|
|
border-radius: 24rpx;
|
|
background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.book-icon-inner {
|
|
font-size: 48rpx;
|
|
}
|
|
|
|
.book-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.book-title {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
display: block;
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.book-subtitle {
|
|
font-size: 22rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.book-count {
|
|
text-align: right;
|
|
}
|
|
|
|
.count-value {
|
|
font-size: 40rpx;
|
|
font-weight: 700;
|
|
display: block;
|
|
}
|
|
|
|
.count-label {
|
|
font-size: 20rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
/* ===== 目录内容 ===== */
|
|
.chapters-content {
|
|
padding: 0 32rpx;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* ===== 章节项 ===== */
|
|
.chapter-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 24rpx;
|
|
background: #1c1c1e;
|
|
border-radius: 24rpx;
|
|
border: 2rpx solid rgba(255, 255, 255, 0.05);
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.chapter-item:active {
|
|
background: #2c2c2e;
|
|
}
|
|
|
|
.item-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24rpx;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.item-icon {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 16rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 32rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.icon-brand {
|
|
background: rgba(0, 206, 209, 0.2);
|
|
}
|
|
|
|
.item-title {
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
color: #ffffff;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.item-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.item-arrow {
|
|
font-size: 32rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
/* ===== 标签 ===== */
|
|
.tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22rpx;
|
|
padding: 6rpx 16rpx;
|
|
min-width: 80rpx;
|
|
border-radius: 8rpx;
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
}
|
|
|
|
.tag-free {
|
|
background: rgba(0, 206, 209, 0.1);
|
|
color: #00CED1;
|
|
}
|
|
|
|
.tag-new {
|
|
background: rgba(0, 206, 209, 0.15);
|
|
color: #00CED1;
|
|
font-size: 20rpx;
|
|
padding: 2rpx 8rpx;
|
|
margin-left: 8rpx;
|
|
}
|
|
|
|
.text-brand {
|
|
color: #00CED1;
|
|
}
|
|
|
|
.text-muted {
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.text-xs {
|
|
font-size: 22rpx;
|
|
}
|
|
|
|
/* ===== 篇章列表 ===== */
|
|
.part-list {
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.part-item {
|
|
margin-bottom: 24rpx;
|
|
}
|
|
|
|
.part-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 24rpx;
|
|
background: #1c1c1e;
|
|
border-radius: 24rpx;
|
|
border: 2rpx solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.part-header:active {
|
|
background: #2c2c2e;
|
|
}
|
|
|
|
.part-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24rpx;
|
|
}
|
|
|
|
.part-icon {
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
border-radius: 16rpx;
|
|
background: linear-gradient(135deg, #00CED1 0%, #20B2AA 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.part-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.part-title {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.part-subtitle {
|
|
font-size: 20rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
margin-top: 4rpx;
|
|
}
|
|
|
|
.part-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.part-count {
|
|
font-size: 22rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.part-arrow {
|
|
font-size: 32rpx;
|
|
color: rgba(255, 255, 255, 0.4);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.arrow-down {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* ===== 章节组 ===== */
|
|
.chapters-list {
|
|
margin-top: 16rpx;
|
|
margin-left: 16rpx;
|
|
}
|
|
|
|
.chapter-group {
|
|
background: rgba(28, 28, 30, 0.5);
|
|
border-radius: 16rpx;
|
|
border: 2rpx solid rgba(255, 255, 255, 0.05);
|
|
overflow: hidden;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.chapter-header {
|
|
padding: 16rpx 24rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 500;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
border-bottom: 1rpx solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.section-list {
|
|
/* 小节列表 */
|
|
}
|
|
|
|
.section-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20rpx 24rpx;
|
|
border-bottom: 1rpx solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.section-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.section-item:active {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.section-left {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* 小节锁图标 */
|
|
.section-lock {
|
|
width: 32rpx;
|
|
min-width: 32rpx;
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.lock-open {
|
|
color: #00CED1;
|
|
}
|
|
|
|
.lock-closed {
|
|
color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* 小节标题 */
|
|
.section-title {
|
|
font-size: 26rpx;
|
|
color: #ffffff;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
}
|
|
|
|
/* 小节价格 */
|
|
.section-price {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
/* 已购标签 */
|
|
.tag-purchased {
|
|
background: rgba(0, 206, 209, 0.15);
|
|
color: #00CED1;
|
|
}
|
|
|
|
.section-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
flex-shrink: 0;
|
|
margin-left: 16rpx;
|
|
}
|
|
|
|
.section-arrow {
|
|
font-size: 28rpx;
|
|
color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* ===== 附录 ===== */
|
|
.card {
|
|
background: #1c1c1e;
|
|
border-radius: 24rpx;
|
|
border: 2rpx solid rgba(255, 255, 255, 0.05);
|
|
margin: 0 0 24rpx 0;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.appendix-card {
|
|
padding: 24rpx;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
margin: 0 0 24rpx 0;
|
|
}
|
|
|
|
.appendix-title {
|
|
font-size: 24rpx;
|
|
font-weight: 500;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
display: block;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.appendix-list {
|
|
/* 附录列表 */
|
|
}
|
|
|
|
.appendix-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16rpx 0;
|
|
border-bottom: 1rpx solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.appendix-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.appendix-item:active {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.appendix-text {
|
|
font-size: 24rpx;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.appendix-arrow {
|
|
font-size: 28rpx;
|
|
color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* ===== 每日新增章节 ===== */
|
|
.daily-section { margin: 20rpx 0; padding: 24rpx; background: rgba(255,215,0,0.04); border: 1rpx solid rgba(255,215,0,0.12); border-radius: 16rpx; }
|
|
.daily-header { display: flex; align-items: center; gap: 12rpx; margin-bottom: 16rpx; }
|
|
.daily-title { font-size: 30rpx; font-weight: 600; color: #FFD700; }
|
|
.daily-badge { font-size: 22rpx; background: #FFD700; color: #000; padding: 2rpx 12rpx; border-radius: 20rpx; font-weight: bold; }
|
|
.daily-list { display: flex; flex-direction: column; gap: 12rpx; }
|
|
.daily-item { display: flex; justify-content: space-between; align-items: center; padding: 16rpx; background: rgba(255,255,255,0.03); border-radius: 12rpx; }
|
|
.daily-left { display: flex; align-items: center; gap: 10rpx; flex: 1; min-width: 0; }
|
|
.daily-new-tag { font-size: 18rpx; background: #FF4444; color: #fff; padding: 2rpx 8rpx; border-radius: 6rpx; font-weight: bold; flex-shrink: 0; }
|
|
.daily-item-title { font-size: 26rpx; color: rgba(255,255,255,0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.daily-right { display: flex; align-items: center; gap: 12rpx; flex-shrink: 0; }
|
|
.daily-price { font-size: 26rpx; color: #FFD700; font-weight: 600; }
|
|
.daily-date { font-size: 20rpx; color: rgba(255,255,255,0.35); }
|
|
.daily-note { display: block; font-size: 22rpx; color: rgba(255,215,0,0.5); margin-top: 12rpx; text-align: center; }
|
|
|
|
/* ===== 底部留白 ===== */
|
|
.bottom-space {
|
|
height: 40rpx;
|
|
}
|