nomadro/apps/miniprogram/h5/src/pages/vip-course/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

618 lines
12 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.

/* 小程序真 px(已加入 weapp pxExclude)— 适配胶囊 + 可读字号 + 44px 热区 */
.vip-topic {
--vt-bg: #0c0c0f;
--vt-fg: #f5f5f7;
--vt-muted: #9ca3af;
--vt-card: rgba(255, 255, 255, 0.045);
--vt-border: rgba(255, 255, 255, 0.1);
--vt-accent: #f59e0b;
--vt-accent-fg: #111;
min-height: 100vh;
background: var(--vt-bg);
color: var(--vt-fg);
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue',
'Noto Sans SC', 'Microsoft YaHei', sans-serif;
font-size: 15px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.vip-topic[data-theme='light'] {
--vt-bg: #f7f7f8;
--vt-fg: #111827;
--vt-muted: #6b7280;
--vt-card: #fff;
--vt-border: rgba(0, 0, 0, 0.08);
--vt-accent: #d97706;
--vt-accent-fg: #fff;
}
/* —— 顶栏:品牌 + 主题;CTA 收短,避开胶囊 —— */
.vip-topic-header {
position: sticky;
top: 0;
z-index: 50;
border-bottom: 1px solid var(--vt-border);
background: rgba(12, 12, 15, 0.96);
}
.vip-topic[data-theme='light'] .vip-topic-header {
background: rgba(247, 247, 248, 0.96);
}
.vip-topic-header-inner {
min-height: 44px;
height: 44px;
padding: 0 12px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
box-sizing: border-box;
}
.vip-topic-brand {
flex: 1;
min-width: 0;
font-size: 16px;
font-weight: 600;
line-height: 44px;
color: var(--vt-fg);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.vip-topic-header-nav {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.vip-topic-theme {
width: 36px;
height: 36px;
line-height: 36px;
text-align: center;
font-size: 18px;
}
.vip-topic-home {
display: none; /* 小程序用面包屑/返回,不再挤顶栏 */
}
.vip-topic-header-cta {
min-height: 32px;
padding: 0 12px;
border-radius: 999px;
background: var(--vt-accent);
color: var(--vt-accent-fg);
font-size: 13px;
font-weight: 600;
line-height: 32px;
max-width: 88px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.vip-topic-scroll {
box-sizing: border-box;
}
.vip-topic-crumb {
padding: 12px 16px 0;
font-size: 12px;
line-height: 1.4;
color: var(--vt-muted);
}
.vip-topic-crumb-link {
color: var(--vt-muted);
}
.vip-topic-crumb-sep {
color: var(--vt-muted);
}
.vip-topic-crumb-cur {
color: var(--vt-fg);
font-weight: 600;
}
/* —— Hero:手机可读层级 —— */
.vip-topic-hero {
position: relative;
padding: 20px 20px 28px;
text-align: center;
overflow: hidden;
}
.vip-topic-hero-glow {
position: absolute;
left: 50%;
top: -30%;
width: 140%;
height: 70%;
transform: translateX(-50%);
background: radial-gradient(
ellipse 80% 50% at 50% 20%,
rgba(245, 158, 11, 0.16),
transparent 70%
);
pointer-events: none;
}
.vip-topic-hero-title {
position: relative;
display: block;
font-size: 26px;
font-weight: 700;
letter-spacing: 0;
margin-bottom: 10px;
line-height: 1.3;
}
.vip-topic-hero-sub {
position: relative;
display: block;
font-size: 15px;
color: var(--vt-muted);
line-height: 1.5;
margin-bottom: 10px;
padding: 0 4px;
}
.vip-topic-hero-desc {
position: relative;
display: block;
font-size: 13px;
color: var(--vt-muted);
line-height: 1.6;
margin: 0 auto 22px;
padding: 0 4px;
max-width: 100%;
}
.vip-topic-stats {
position: relative;
display: flex;
justify-content: space-between;
gap: 8px;
margin: 0 0 22px;
padding: 0 4px;
}
.vip-topic-stat {
flex: 1;
text-align: center;
min-width: 0;
}
.vip-topic-stat-value {
display: block;
font-size: 22px;
font-weight: 700;
color: var(--vt-accent);
line-height: 1.2;
font-variant-numeric: tabular-nums;
}
.vip-topic-stat-label {
display: block;
margin-top: 6px;
font-size: 11px;
line-height: 1.3;
color: var(--vt-muted);
}
.vip-topic-hero-cta {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-width: 280px;
margin: 0 auto;
min-height: 48px;
padding: 0 24px;
border-radius: 999px;
background: var(--vt-accent);
color: var(--vt-accent-fg);
font-size: 16px;
font-weight: 700;
box-sizing: border-box;
}
.vip-topic-prep {
margin-bottom: 16px;
}
.vip-topic-prep-ico {
display: block;
font-size: 40px;
margin-bottom: 8px;
}
.vip-topic-prep-txt {
font-size: 14px;
color: var(--vt-muted);
}
.vip-topic-progress {
position: relative;
margin: 18px auto 0;
max-width: 240px;
width: 100%;
}
.vip-topic-progress-row {
display: flex;
justify-content: space-between;
font-size: 12px;
color: var(--vt-muted);
margin-bottom: 6px;
}
.vip-topic-progress-bar {
height: 6px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.12);
overflow: hidden;
}
.vip-topic[data-theme='light'] .vip-topic-progress-bar {
background: rgba(0, 0, 0, 0.08);
}
.vip-topic-progress-fill {
height: 100%;
border-radius: 999px;
background: var(--vt-accent);
}
/* —— 课纲 —— */
.vip-topic-curr {
border-top: 1px solid var(--vt-border);
padding: 24px 12px 8px;
}
.vip-topic-curr-title {
display: block;
text-align: center;
font-size: 18px;
font-weight: 700;
margin-bottom: 6px;
line-height: 1.35;
}
.vip-topic-curr-sub {
display: block;
text-align: center;
font-size: 13px;
color: var(--vt-muted);
margin-bottom: 16px;
line-height: 1.4;
}
.vip-topic-card {
margin-bottom: 10px;
border-radius: 12px;
border: 1px solid var(--vt-border);
background: var(--vt-card);
overflow: hidden;
}
.vip-topic-card-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-height: 48px;
padding: 12px 14px;
box-sizing: border-box;
}
.vip-topic-card-left {
display: flex;
align-items: center;
gap: 8px;
font-size: 15px;
font-weight: 600;
line-height: 1.35;
min-width: 0;
}
.vip-topic-chevron {
display: inline-block;
font-size: 10px;
color: var(--vt-muted);
transition: transform 0.15s ease;
flex-shrink: 0;
}
.vip-topic-chevron.is-open {
transform: rotate(90deg);
}
.vip-topic-card-count {
font-size: 12px;
color: var(--vt-muted);
flex-shrink: 0;
}
.vip-topic-lesson {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-height: 56px;
padding: 12px 14px;
border-top: 1px solid var(--vt-border);
box-sizing: border-box;
}
.vip-topic-lesson.is-locked {
opacity: 0.72;
}
.vip-topic-lesson-main {
flex: 1;
min-width: 0;
}
.vip-topic-lesson-row {
display: flex;
align-items: flex-start;
gap: 8px;
}
.vip-topic-star {
font-size: 14px;
flex-shrink: 0;
width: 28px;
height: 28px;
line-height: 28px;
text-align: center;
margin-top: -2px;
}
.vip-topic-lesson-name {
font-size: 14px;
line-height: 1.45;
flex: 1;
min-width: 0;
word-break: break-word;
}
.vip-topic-updating,
.vip-topic-lock {
font-size: 12px;
flex-shrink: 0;
line-height: 1.45;
}
.vip-topic-done {
flex-shrink: 0;
font-size: 11px;
line-height: 1.2;
padding: 2px 6px;
border-radius: 4px;
background: rgba(34, 197, 94, 0.2);
color: #4ade80;
}
.vip-topic-lesson-dur {
display: block;
margin-top: 4px;
margin-left: 36px;
font-size: 12px;
color: var(--vt-muted);
line-height: 1.3;
}
.vip-topic-lesson-arrow {
font-size: 16px;
color: var(--vt-accent);
flex-shrink: 0;
width: 24px;
text-align: center;
}
.vip-topic-coming {
padding: 40px 24px;
text-align: center;
border-top: 1px solid var(--vt-border);
}
.vip-topic-coming-ico {
display: block;
font-size: 40px;
margin-bottom: 12px;
}
.vip-topic-coming-title {
display: block;
font-size: 17px;
font-weight: 700;
margin-bottom: 8px;
}
.vip-topic-coming-desc {
display: block;
font-size: 13px;
color: var(--vt-muted);
line-height: 1.5;
}
.vip-topic-footer {
border-top: 1px solid var(--vt-border);
padding: 20px 16px calc(28px + env(safe-area-inset-bottom, 0px));
text-align: center;
}
.vip-topic-footer-links {
display: flex;
justify-content: center;
gap: 28px;
margin-bottom: 12px;
font-size: 14px;
color: var(--vt-muted);
min-height: 44px;
align-items: center;
}
.vip-topic-footer-copy {
font-size: 12px;
color: var(--vt-muted);
line-height: 1.4;
}
.vip-topic-missing {
display: block;
padding: 80px 24px 24px;
text-align: center;
font-size: 17px;
font-weight: 700;
}
.vip-topic-modal {
position: fixed;
inset: 0;
z-index: 70;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background: rgba(0, 0, 0, 0.55);
}
.vip-topic-modal-card {
width: 100%;
max-width: 340px;
border-radius: 14px;
border: 1px solid rgba(245, 158, 11, 0.3);
background: #16161a;
padding: 20px;
box-sizing: border-box;
}
.vip-topic[data-theme='light'] .vip-topic-modal-card {
background: #fff;
}
.vip-topic-modal-ico {
display: block;
font-size: 26px;
margin-bottom: 10px;
}
.vip-topic-modal-title {
display: block;
font-size: 17px;
font-weight: 700;
margin-bottom: 8px;
}
.vip-topic-modal-body {
display: block;
font-size: 14px;
color: var(--vt-muted);
line-height: 1.55;
margin-bottom: 8px;
}
.vip-topic-modal-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 16px;
}
.vip-topic-modal-btn {
min-height: 40px;
padding: 0 16px;
border-radius: 999px;
background: var(--vt-accent);
color: var(--vt-accent-fg);
font-size: 14px;
font-weight: 600;
line-height: 40px;
}
.vip-topic-modal-btn.ghost {
background: transparent;
border: 1px solid var(--vt-border);
color: var(--vt-muted);
}
/* cloudphone Audience / Benefits / FAQ */
.vip-topic-block {
border-top: 1px solid var(--vt-border);
padding: 24px 14px 8px;
}
.vip-topic-block-title {
display: block;
text-align: center;
font-size: 18px;
font-weight: 700;
margin-bottom: 6px;
line-height: 1.35;
}
.vip-topic-block-sub {
display: block;
text-align: center;
font-size: 13px;
color: var(--vt-muted);
margin-bottom: 16px;
line-height: 1.45;
}
.vip-topic-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.vip-topic-grid-card {
width: calc(50% - 5px);
box-sizing: border-box;
padding: 14px 12px;
border-radius: 12px;
border: 1px solid var(--vt-border);
background: var(--vt-card);
}
.vip-topic-grid-emoji {
display: block;
font-size: 22px;
margin-bottom: 8px;
}
.vip-topic-grid-name {
display: block;
font-size: 14px;
font-weight: 600;
margin-bottom: 6px;
line-height: 1.35;
}
.vip-topic-grid-desc {
display: block;
font-size: 12px;
color: var(--vt-muted);
line-height: 1.45;
}
.vip-topic-benefit {
display: flex;
gap: 12px;
align-items: flex-start;
padding: 14px 12px;
margin-bottom: 8px;
border-radius: 12px;
border: 1px solid var(--vt-border);
background: var(--vt-card);
}
.vip-topic-benefit-num {
flex-shrink: 0;
width: 28px;
height: 28px;
line-height: 28px;
text-align: center;
border-radius: 999px;
background: rgba(245, 158, 11, 0.18);
color: var(--vt-accent);
font-size: 13px;
font-weight: 700;
}
.vip-topic-benefit-body {
flex: 1;
min-width: 0;
}
.vip-topic-benefit-title {
display: block;
font-size: 15px;
font-weight: 600;
margin-bottom: 4px;
line-height: 1.35;
}
.vip-topic-benefit-desc {
display: block;
font-size: 12px;
color: var(--vt-muted);
line-height: 1.45;
}
.vip-topic-faq {
margin-bottom: 8px;
border-radius: 12px;
border: 1px solid var(--vt-border);
background: var(--vt-card);
overflow: hidden;
}
.vip-topic-faq-q {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-height: 48px;
padding: 12px 14px;
box-sizing: border-box;
}
.vip-topic-faq-q-text {
flex: 1;
font-size: 14px;
font-weight: 600;
line-height: 1.4;
}
.vip-topic-faq-chevron {
flex-shrink: 0;
font-size: 18px;
color: var(--vt-muted);
width: 24px;
text-align: center;
}
.vip-topic-faq-a {
display: block;
padding: 0 14px 14px;
font-size: 13px;
color: var(--vt-muted);
line-height: 1.55;
}