nomadro/apps/miniprogram/h5/src/pages/vip-ebook/index.scss
eric 98a54730ff Port nomadvip VIP into native WeChat pages and document the flow.
Add vip-course/lesson/ebook with source markdown seeds, VIP order API + admin offers, ban web-view for content, and update READMEs for weapp rebuild/extract scripts.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-04 22:30:27 +08:00

290 lines
5.5 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* EbookViewer + 小程序 reader 目录交互 — 真 px */
.veb {
min-height: 100vh;
background: #0a0e17;
color: #e8eef7;
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue',
'Noto Sans SC', 'Microsoft YaHei', sans-serif;
font-size: 16px;
line-height: 1.85;
position: relative;
overflow: hidden;
}
.veb-loading {
display: block;
padding: 80px 24px 16px;
text-align: center;
color: #94a3b8;
font-size: 15px;
}
.veb-locked-cta {
display: flex;
align-items: center;
justify-content: center;
width: 160px;
margin: 16px auto 0;
min-height: 44px;
border-radius: 999px;
background: linear-gradient(135deg, #ffe66d, #ff6b6b);
color: #0a0e17;
font-size: 15px;
font-weight: 700;
}
.veb-progress {
position: fixed;
top: 0;
left: 0;
height: 3px;
background: linear-gradient(90deg, #ff6b6b, #ffe66d, #4ecdc4);
z-index: 210;
}
.veb-header {
position: relative;
z-index: 50;
background: rgba(10, 14, 23, 0.96);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.veb-header-inner {
height: 52px;
min-height: 52px;
padding-left: 4px;
display: flex;
align-items: center;
gap: 4px;
box-sizing: border-box;
}
.veb-icon-btn {
width: 44px;
height: 44px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
}
.veb-icon-btn-hover {
background: rgba(255, 255, 255, 0.08);
}
.veb-icon-btn-txt {
font-size: 22px;
line-height: 1;
color: #f8fafc;
font-weight: 600;
}
.veb-title-wrap {
flex: 1;
min-width: 0;
padding: 0 4px;
display: flex;
flex-direction: column;
justify-content: center;
}
.veb-title {
font-size: 15px;
font-weight: 700;
color: #f8fafc;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.3;
}
.veb-sub {
margin-top: 2px;
font-size: 11px;
color: #94a3b8;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.3;
}
.veb-scroll {
box-sizing: border-box;
}
.veb-book {
padding: 16px 16px 24px;
box-sizing: border-box;
}
.veb-section {
margin-bottom: 8px;
}
.veb-end {
text-align: center;
color: #64748b;
font-size: 13px;
padding: 24px 0 calc(48px + env(safe-area-inset-bottom, 0px));
}
/* —— 目录抽屉(左侧,对齐 reader) —— */
.veb-drawer-root {
position: fixed;
inset: 0;
z-index: 200;
}
.veb-mask {
position: absolute;
inset: 0;
background: rgba(8, 6, 14, 0.58);
}
.veb-drawer {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 82%;
max-width: 320px;
background:
radial-gradient(360px 180px at 0% 0%, rgba(78, 205, 196, 0.16), transparent 55%),
linear-gradient(180deg, #141b2d, #0f1524 45%, #0a0e17);
border-right: 1px solid rgba(255, 255, 255, 0.1);
box-sizing: border-box;
display: flex;
flex-direction: column;
animation: veb-drawer-in 0.22s ease both;
}
@keyframes veb-drawer-in {
from {
transform: translateX(-100%);
}
to {
transform: translateX(0);
}
}
.veb-drawer-hero {
padding: 8px 16px 12px;
flex-shrink: 0;
}
.veb-drawer-brand {
display: block;
font-size: 11px;
letter-spacing: 0.14em;
color: #4ecdc4;
font-weight: 700;
margin-bottom: 4px;
}
.veb-drawer-title {
display: block;
font-size: 20px;
font-weight: 800;
color: #f8fafc;
margin-bottom: 4px;
}
.veb-drawer-book {
display: block;
font-size: 13px;
color: #94a3b8;
margin-bottom: 10px;
}
.veb-drawer-meter {
height: 4px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.1);
overflow: hidden;
margin-bottom: 8px;
}
.veb-drawer-meter-fill {
height: 100%;
border-radius: 999px;
background: linear-gradient(90deg, #ff6b6b, #ffe66d, #4ecdc4);
}
.veb-drawer-stats {
display: flex;
justify-content: space-between;
font-size: 12px;
color: #94a3b8;
margin-bottom: 10px;
}
.veb-drawer-search {
width: 100%;
height: 40px;
padding: 0 12px;
box-sizing: border-box;
border-radius: 10px;
background: rgba(255, 255, 255, 0.06);
color: #e8eef7;
font-size: 14px;
}
.veb-drawer-search-ph {
color: #64748b;
font-size: 14px;
}
.veb-drawer-list {
flex: 1;
min-height: 200px;
padding: 4px 10px 8px;
box-sizing: border-box;
}
.veb-drawer-empty {
padding: 24px;
text-align: center;
color: #64748b;
font-size: 14px;
}
.veb-drawer-item {
display: flex;
gap: 10px;
align-items: flex-start;
min-height: 48px;
padding: 12px 10px;
margin-bottom: 2px;
border-radius: 12px;
box-sizing: border-box;
}
.veb-drawer-item.is-active {
background: rgba(78, 205, 196, 0.14);
}
.veb-drawer-idx {
flex-shrink: 0;
width: 28px;
font-size: 12px;
font-weight: 700;
color: #4ecdc4;
line-height: 1.45;
padding-top: 1px;
}
.veb-drawer-name {
flex: 1;
min-width: 0;
font-size: 14px;
color: #e8eef7;
line-height: 1.45;
word-break: break-word;
}
.veb-drawer-item.is-active .veb-drawer-name {
color: #ffe66d;
font-weight: 600;
}
.veb-drawer-close {
flex-shrink: 0;
margin: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
min-height: 44px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.12);
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: #94a3b8;
}
.veb-top {
position: fixed;
right: 16px;
bottom: calc(24px + env(safe-area-inset-bottom, 0px));
width: 48px;
height: 48px;
border-radius: 50%;
background: rgba(17, 24, 39, 0.95);
border: 1px solid rgba(255, 255, 255, 0.12);
color: #ffe66d;
z-index: 50;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
font-weight: 700;
}