组件 · COMPONENT
课节卡 LessonCard
一节课:16:9 暗底缩略图,四角是编号、档位角标、时长;未解锁时整卡压暗并居中一把锁;看完后整卡朱染;正在播放的那一节套朱环;还没有视频的课盖半透明罩、整卡不可点,罩中央是催更键(不传 remind 时写「敬请期待」)。
体验双链与反向链接✓ 已完成
import { LessonCard } from './screens/v4/course/LessonCard.jsx'
// 课节位置数组:[标题, 时长, 简介, md, 体验课, 源, uid, 课节ID, 行数据]
const lesson = (id, title, level, row = {}) => [title, '15:32', '让想法第一次连起来。', '', level < 2 ? 1 : 0, '', '', id, { cover_url: null, required_level: level, ...row }]
const OPEN = { canWatchCourse: () => true, canWatchLesson: () => true }
const GUEST = { canWatchCourse: () => false, canWatchLesson: (a) => (a[8]?.required_level ?? 0) < 2 }
export function Done() {
return (
<div style={{ width: 280 }}>
<LessonCard si={0} li={3} a={lesson('l-4', '双链与反向链接', 0)} plan={OPEN} done tierTag />
</div>
)
}<div style="width: 280px">
<div class="zzm-cardlink zzm-cardlink--done">
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
position: relative;
"
>
<div
style="
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
"
>
<svg
viewBox="0 0 240 135"
style="position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5"
>
<polyline
points="18,110 62,38 120,84 178,30 224,96"
fill="none"
stroke="rgba(255,255,255,.09)"
stroke-width="1"
></polyline>
<circle cx="62" cy="38" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="120" cy="84" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="178" cy="30" r="2" fill="rgba(255,255,255,.18)"></circle>
</svg>
<div
style="
position: relative;
font-size: 14px;
font-weight: 600;
color: #ffffff;
letter-spacing: 0.4px;
padding: 0 18px;
text-align: center;
"
>
双链与反向链接
</div>
<div
style="
position: relative;
width: 18px;
height: 2px;
background: var(--zzm-accent, #a6402f);
"
></div>
</div>
<div
style="
position: absolute;
top: 8px;
left: 9px;
font-family: var(--zzm-mono);
font-size: 9.5px;
letter-spacing: 1px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.82);
"
>
S1 · E04
</div>
<div
style="
position: absolute;
bottom: 8px;
right: 9px;
font-family: var(--zzm-mono);
font-size: 10.5px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.88);
"
>
15:32
</div>
<div style="position: absolute; top: 8px; right: 9px; display: flex; gap: 5px">
<span
style="
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: transparent;
color: transparent;
opacity: 0;
"
>
试看
</span>
</div>
</div>
<div style="margin: 11px 2px 3px; display: flex; align-items: flex-start; gap: 7px">
<span style="flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45">
<span
class="zzm-pill-shine"
style="
display: inline-block;
vertical-align: middle;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 2px 7px;
border-radius: 4px;
background: var(--zzm-tier-free-bg);
color: var(--zzm-tier-free-ink);
--zzm-shine-delay: 2.0999999999999996s;
margin-right: 6px;
"
>
体验
</span>
双链与反向链接
</span>
<span
style="
flex: none;
margin-top: 2px;
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: var(--zzm-accent-soft);
color: var(--zzm-accent-ink);
"
>
✓ 已完成
</span>
</div>
<div
style="
margin: 0 2px;
font-size: 12.5px;
color: var(--zzm-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
"
>
让想法第一次连起来。
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-accent: #A6402F;
--zzm-mono: ui-monospace, "SF Mono", Menlo, monospace;
--zzm-tier-free-bg: rgba(74, 222, 128, 0.14);
--zzm-tier-free-ink: #6FCB8E;
--zzm-accent-soft: rgba(226, 125, 103, 0.14);
--zzm-accent-ink: #E27D67;
--zzm-muted: #8D8C86;
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
--zzm-accent-tint: rgba(226, 125, 103, 0.07);
--zzm-accent-line: rgba(226, 125, 103, 0.42);
--zzm-accent-line-strong: rgba(226, 125, 103, .6);
--zzm-shine: rgba(255, 255, 255, .22);
}
/* controls.css */
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}
.zzm-v4 .zzm-cardlink--done {
background: var(--zzm-accent-tint);
border-color: var(--zzm-accent-line);
}
.zzm-v4 .zzm-cardlink--done:hover {
border-color: var(--zzm-accent-line-strong);
}
.zzm-v4 .zzm-cardlink--soon.zzm-cardlink--done:hover { border-color: var(--zzm-accent-line); }
.zzm-v4 .zzm-pill-shine {
position: relative;
overflow: hidden;
}
.zzm-v4 .zzm-pill-shine::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
transform: translateX(-180%);
background: linear-gradient(105deg, transparent 34%, var(--zzm-shine) 50%, transparent 66%);
animation: zzmPillShine 4.6s ease-in-out infinite;
animation-delay: var(--zzm-shine-delay, 0s);
}
/* keyframes */
@keyframes zzmPillShine { 0% { transform: translateX(-180%) } 14% { transform: translateX(180%) } 100% { transform: translateX(180%) } }体验为什么是 Obsidian
import { LessonCard } from './screens/v4/course/LessonCard.jsx'
// 课节位置数组:[标题, 时长, 简介, md, 体验课, 源, uid, 课节ID, 行数据]
const lesson = (id, title, level, row = {}) => [title, '15:32', '让想法第一次连起来。', '', level < 2 ? 1 : 0, '', '', id, { cover_url: null, required_level: level, ...row }]
const OPEN = { canWatchCourse: () => true, canWatchLesson: () => true }
const GUEST = { canWatchCourse: () => false, canWatchLesson: (a) => (a[8]?.required_level ?? 0) < 2 }
export function Trial() {
return (
<div style={{ width: 280 }}>
<LessonCard si={0} li={0} a={lesson('l-1', '为什么是 Obsidian', 0)} plan={GUEST} done={false} tierTag />
</div>
)
}<div style="width: 280px">
<div class="zzm-cardlink">
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
position: relative;
"
>
<div
style="
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
"
>
<svg
viewBox="0 0 240 135"
style="position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5"
>
<polyline
points="18,110 62,38 120,84 178,30 224,96"
fill="none"
stroke="rgba(255,255,255,.09)"
stroke-width="1"
></polyline>
<circle cx="62" cy="38" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="120" cy="84" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="178" cy="30" r="2" fill="rgba(255,255,255,.18)"></circle>
</svg>
<div
style="
position: relative;
font-size: 14px;
font-weight: 600;
color: #ffffff;
letter-spacing: 0.4px;
padding: 0 18px;
text-align: center;
"
>
为什么是 Obsidia…
</div>
<div
style="
position: relative;
width: 18px;
height: 2px;
background: var(--zzm-accent, #a6402f);
"
></div>
</div>
<div
style="
position: absolute;
top: 8px;
left: 9px;
font-family: var(--zzm-mono);
font-size: 9.5px;
letter-spacing: 1px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.82);
"
>
S1 · E01
</div>
<div
style="
position: absolute;
bottom: 8px;
right: 9px;
font-family: var(--zzm-mono);
font-size: 10.5px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.88);
"
>
15:32
</div>
<div style="position: absolute; top: 8px; right: 9px; display: flex; gap: 5px">
<span
style="
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: var(--zzm-accent, #a6402f);
color: #ffffff;
opacity: 1;
"
>
试看
</span>
</div>
</div>
<div style="margin: 11px 2px 3px; display: flex; align-items: flex-start; gap: 7px">
<span style="flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45">
<span
class="zzm-pill-shine"
style="
display: inline-block;
vertical-align: middle;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 2px 7px;
border-radius: 4px;
background: var(--zzm-tier-free-bg);
color: var(--zzm-tier-free-ink);
--zzm-shine-delay: 0s;
margin-right: 6px;
"
>
体验
</span>
为什么是 Obsidian
</span>
</div>
<div
style="
margin: 0 2px;
font-size: 12.5px;
color: var(--zzm-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
"
>
让想法第一次连起来。
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-accent: #A6402F;
--zzm-mono: ui-monospace, "SF Mono", Menlo, monospace;
--zzm-tier-free-bg: rgba(74, 222, 128, 0.14);
--zzm-tier-free-ink: #6FCB8E;
--zzm-muted: #8D8C86;
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
--zzm-shine: rgba(255, 255, 255, .22);
}
/* controls.css */
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}
.zzm-v4 .zzm-pill-shine {
position: relative;
overflow: hidden;
}
.zzm-v4 .zzm-pill-shine::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
transform: translateX(-180%);
background: linear-gradient(105deg, transparent 34%, var(--zzm-shine) 50%, transparent 66%);
animation: zzmPillShine 4.6s ease-in-out infinite;
animation-delay: var(--zzm-shine-delay, 0s);
}
/* keyframes */
@keyframes zzmPillShine { 0% { transform: translateX(-180%) } 14% { transform: translateX(180%) } 100% { transform: translateX(180%) } }会员Dataview:笔记变数据库
import { LessonCard } from './screens/v4/course/LessonCard.jsx'
// 课节位置数组:[标题, 时长, 简介, md, 体验课, 源, uid, 课节ID, 行数据]
const lesson = (id, title, level, row = {}) => [title, '15:32', '让想法第一次连起来。', '', level < 2 ? 1 : 0, '', '', id, { cover_url: null, required_level: level, ...row }]
const OPEN = { canWatchCourse: () => true, canWatchLesson: () => true }
const GUEST = { canWatchCourse: () => false, canWatchLesson: (a) => (a[8]?.required_level ?? 0) < 2 }
export function Locked() {
return (
<div style={{ width: 280 }}>
<LessonCard si={1} li={1} a={lesson('l-7', 'Dataview:笔记变数据库', 2)} plan={GUEST} done={false} tierTag />
</div>
)
}<div style="width: 280px">
<div class="zzm-cardlink">
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
position: relative;
"
>
<div
style="
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
"
>
<svg
viewBox="0 0 240 135"
style="position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5"
>
<polyline
points="18,110 62,38 120,84 178,30 224,96"
fill="none"
stroke="rgba(255,255,255,.09)"
stroke-width="1"
></polyline>
<circle cx="62" cy="38" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="120" cy="84" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="178" cy="30" r="2" fill="rgba(255,255,255,.18)"></circle>
</svg>
<div
style="
position: relative;
font-size: 14px;
font-weight: 600;
color: #ffffff;
letter-spacing: 0.4px;
padding: 0 18px;
text-align: center;
"
>
Dataview
</div>
<div
style="
position: relative;
width: 18px;
height: 2px;
background: var(--zzm-accent, #a6402f);
"
></div>
</div>
<div
style="
position: absolute;
top: 8px;
left: 9px;
font-family: var(--zzm-mono);
font-size: 9.5px;
letter-spacing: 1px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.82);
"
>
S2 · E02
</div>
<div
style="
position: absolute;
bottom: 8px;
right: 9px;
font-family: var(--zzm-mono);
font-size: 10.5px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.88);
"
>
15:32
</div>
<div style="position: absolute; top: 8px; right: 9px; display: flex; gap: 5px">
<span
style="
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.92);
opacity: 1;
"
>
会员
</span>
</div>
<div
style="
position: absolute;
inset: 0;
z-index: 2;
background: rgba(8, 8, 10, 0.7);
display: flex;
align-items: center;
justify-content: center;
"
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect
x="5"
y="10.5"
width="14"
height="9"
rx="2.5"
stroke="rgba(255,255,255,.9)"
stroke-width="1.5"
></rect>
<path
d="M8 10 L8 7.5 a4 4 0 0 1 8 0 L16 10"
stroke="rgba(255,255,255,.9)"
stroke-width="1.5"
fill="none"
></path>
<circle cx="12" cy="15" r="1.6" fill="var(--zzm-accent,#A6402F)"></circle>
</svg>
</div>
</div>
<div style="margin: 11px 2px 3px; display: flex; align-items: flex-start; gap: 7px">
<span style="flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45">
<span
class="zzm-pill-shine"
style="
display: inline-block;
vertical-align: middle;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 2px 7px;
border-radius: 4px;
background: var(--zzm-tier-member-bg);
color: var(--zzm-tier-member-ink);
--zzm-shine-delay: 0.7s;
margin-right: 6px;
"
>
会员
</span>
Dataview:笔记变数据库
</span>
</div>
<div
style="
margin: 0 2px;
font-size: 12.5px;
color: var(--zzm-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
"
>
让想法第一次连起来。
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-accent: #A6402F;
--zzm-mono: ui-monospace, "SF Mono", Menlo, monospace;
--zzm-tier-member-bg: rgba(240, 169, 40, 0.16);
--zzm-tier-member-ink: #F0B44C;
--zzm-muted: #8D8C86;
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
--zzm-shine: rgba(255, 255, 255, .22);
}
/* controls.css */
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}
.zzm-v4 .zzm-pill-shine {
position: relative;
overflow: hidden;
}
.zzm-v4 .zzm-pill-shine::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
transform: translateX(-180%);
background: linear-gradient(105deg, transparent 34%, var(--zzm-shine) 50%, transparent 66%);
animation: zzmPillShine 4.6s ease-in-out infinite;
animation-delay: var(--zzm-shine-delay, 0s);
}
/* keyframes */
@keyframes zzmPillShine { 0% { transform: translateX(-180%) } 14% { transform: translateX(180%) } 100% { transform: translateX(180%) } }用笔记管理人脉
import { LessonCard } from './screens/v4/course/LessonCard.jsx'
// 课节位置数组:[标题, 时长, 简介, md, 体验课, 源, uid, 课节ID, 行数据]
const lesson = (id, title, level, row = {}) => [title, '15:32', '让想法第一次连起来。', '', level < 2 ? 1 : 0, '', '', id, { cover_url: null, required_level: level, ...row }]
const OPEN = { canWatchCourse: () => true, canWatchLesson: () => true }
const GUEST = { canWatchCourse: () => false, canWatchLesson: (a) => (a[8]?.required_level ?? 0) < 2 }
export function Extension() {
return (
<div style={{ width: 280 }}>
<LessonCard si={4} li={0} a={lesson('l-x', '用笔记管理人脉', 3)} plan={GUEST} done={false} catName="人脉管理" />
</div>
)
}<div style="width: 280px">
<div class="zzm-cardlink">
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
position: relative;
"
>
<div
style="
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
"
>
<svg
viewBox="0 0 240 135"
style="position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5"
>
<polyline
points="18,110 62,38 120,84 178,30 224,96"
fill="none"
stroke="rgba(255,255,255,.09)"
stroke-width="1"
></polyline>
<circle cx="62" cy="38" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="120" cy="84" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="178" cy="30" r="2" fill="rgba(255,255,255,.18)"></circle>
</svg>
<div
style="
position: relative;
font-size: 14px;
font-weight: 600;
color: #ffffff;
letter-spacing: 0.4px;
padding: 0 18px;
text-align: center;
"
>
用笔记管理人脉
</div>
<div
style="
position: relative;
width: 18px;
height: 2px;
background: var(--zzm-accent, #a6402f);
"
></div>
</div>
<div
style="
position: absolute;
top: 8px;
left: 9px;
font-family: var(--zzm-mono);
font-size: 9.5px;
letter-spacing: 1px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.82);
"
>
S5 · E01
</div>
<div
style="
position: absolute;
bottom: 8px;
right: 9px;
font-family: var(--zzm-mono);
font-size: 10.5px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.88);
"
>
15:32
</div>
<div style="position: absolute; top: 8px; right: 9px; display: flex; gap: 5px">
<span
style="
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.92);
opacity: 1;
"
>
拓展
</span>
</div>
<div
style="
position: absolute;
inset: 0;
z-index: 2;
background: rgba(8, 8, 10, 0.7);
display: flex;
align-items: center;
justify-content: center;
"
>
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
<rect
x="5"
y="10.5"
width="14"
height="9"
rx="2.5"
stroke="rgba(255,255,255,.9)"
stroke-width="1.5"
></rect>
<path
d="M8 10 L8 7.5 a4 4 0 0 1 8 0 L16 10"
stroke="rgba(255,255,255,.9)"
stroke-width="1.5"
fill="none"
></path>
<circle cx="12" cy="15" r="1.6" fill="var(--zzm-accent,#A6402F)"></circle>
</svg>
</div>
</div>
<div style="margin: 11px 2px 3px; display: flex; align-items: flex-start; gap: 7px">
<span style="flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45">
用笔记管理人脉
</span>
</div>
<div
style="
margin: 0 2px;
font-size: 12.5px;
color: var(--zzm-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
"
>
人脉管理 · 让想法第一次连起来。
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-accent: #A6402F;
--zzm-mono: ui-monospace, "SF Mono", Menlo, monospace;
--zzm-muted: #8D8C86;
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
}
/* controls.css */
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}体验三库结构初始化▶ 播放中
import { LessonCard } from './screens/v4/course/LessonCard.jsx'
// 课节位置数组:[标题, 时长, 简介, md, 体验课, 源, uid, 课节ID, 行数据]
const lesson = (id, title, level, row = {}) => [title, '15:32', '让想法第一次连起来。', '', level < 2 ? 1 : 0, '', '', id, { cover_url: null, required_level: level, ...row }]
const OPEN = { canWatchCourse: () => true, canWatchLesson: () => true }
const GUEST = { canWatchCourse: () => false, canWatchLesson: (a) => (a[8]?.required_level ?? 0) < 2 }
export function Current() {
return (
<div style={{ width: 280 }}>
<LessonCard si={0} li={2} a={lesson('l-3', '三库结构初始化', 0)} plan={OPEN} done={false} current tierTag desc={false} />
</div>
)
}<div style="width: 280px">
<div aria-current="true" class="zzm-cardlink zzm-cardlink--current">
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
position: relative;
"
>
<div
style="
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
"
>
<svg
viewBox="0 0 240 135"
style="position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5"
>
<polyline
points="18,110 62,38 120,84 178,30 224,96"
fill="none"
stroke="rgba(255,255,255,.09)"
stroke-width="1"
></polyline>
<circle cx="62" cy="38" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="120" cy="84" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="178" cy="30" r="2" fill="rgba(255,255,255,.18)"></circle>
</svg>
<div
style="
position: relative;
font-size: 14px;
font-weight: 600;
color: #ffffff;
letter-spacing: 0.4px;
padding: 0 18px;
text-align: center;
"
>
三库结构初始化
</div>
<div
style="
position: relative;
width: 18px;
height: 2px;
background: var(--zzm-accent, #a6402f);
"
></div>
</div>
<div
style="
position: absolute;
top: 8px;
left: 9px;
font-family: var(--zzm-mono);
font-size: 9.5px;
letter-spacing: 1px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.82);
"
>
S1 · E03
</div>
<div
style="
position: absolute;
bottom: 8px;
right: 9px;
font-family: var(--zzm-mono);
font-size: 10.5px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.88);
"
>
15:32
</div>
<div style="position: absolute; top: 8px; right: 9px; display: flex; gap: 5px">
<span
style="
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: transparent;
color: transparent;
opacity: 0;
"
>
试看
</span>
</div>
</div>
<div style="margin: 11px 2px 3px; display: flex; align-items: flex-start; gap: 7px">
<span style="flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45">
<span
class="zzm-pill-shine"
style="
display: inline-block;
vertical-align: middle;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 2px 7px;
border-radius: 4px;
background: var(--zzm-tier-free-bg);
color: var(--zzm-tier-free-ink);
--zzm-shine-delay: 1.4s;
margin-right: 6px;
"
>
体验
</span>
三库结构初始化
</span>
<span
style="
flex: none;
margin-top: 2px;
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: var(--zzm-accent, #a6402f);
color: #ffffff;
"
>
▶ 播放中
</span>
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-accent: #A6402F;
--zzm-mono: ui-monospace, "SF Mono", Menlo, monospace;
--zzm-tier-free-bg: rgba(74, 222, 128, 0.14);
--zzm-tier-free-ink: #6FCB8E;
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
--zzm-shine: rgba(255, 255, 255, .22);
}
/* controls.css */
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}
.zzm-v4 .zzm-cardlink--current,
.zzm-v4 .zzm-cardlink--current:hover {
border-color: var(--zzm-accent);
}
.zzm-v4 .zzm-cardlink--current {
box-shadow: 0 0 0 1px var(--zzm-accent), var(--zzm-rest-shadow);
}
.zzm-v4 .zzm-cardlink--current:hover {
box-shadow: 0 0 0 1px var(--zzm-accent), var(--zzm-lift-shadow);
}
.zzm-v4 .zzm-cardlink--soon.zzm-cardlink--current:hover {
border-color: var(--zzm-accent);
box-shadow: 0 0 0 1px var(--zzm-accent), var(--zzm-rest-shadow);
}
.zzm-v4 .zzm-pill-shine {
position: relative;
overflow: hidden;
}
.zzm-v4 .zzm-pill-shine::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
transform: translateX(-180%);
background: linear-gradient(105deg, transparent 34%, var(--zzm-shine) 50%, transparent 66%);
animation: zzmPillShine 4.6s ease-in-out infinite;
animation-delay: var(--zzm-shine-delay, 0s);
}
/* keyframes */
@keyframes zzmPillShine { 0% { transform: translateX(-180%) } 14% { transform: translateX(180%) } 100% { transform: translateX(180%) } }会员标签与属性
import { LessonCard } from './screens/v4/course/LessonCard.jsx'
// 课节位置数组:[标题, 时长, 简介, md, 体验课, 源, uid, 课节ID, 行数据]
const lesson = (id, title, level, row = {}) => [title, '15:32', '让想法第一次连起来。', '', level < 2 ? 1 : 0, '', '', id, { cover_url: null, required_level: level, ...row }]
const OPEN = { canWatchCourse: () => true, canWatchLesson: () => true }
const GUEST = { canWatchCourse: () => false, canWatchLesson: (a) => (a[8]?.required_level ?? 0) < 2 }
export function Soon() {
return (
<div style={{ width: 280 }}>
<LessonCard si={0} li={4} a={lesson('l-5', '标签与属性', 2, { has_video: false })} plan={OPEN} done={false} tierTag />
</div>
)
}<div style="width: 280px">
<div
aria-disabled="true"
title="敬请期待:本节视频还未上线"
class="zzm-cardlink zzm-cardlink--soon"
>
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
position: relative;
"
>
<div
style="
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
"
>
<svg
viewBox="0 0 240 135"
style="position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5"
>
<polyline
points="18,110 62,38 120,84 178,30 224,96"
fill="none"
stroke="rgba(255,255,255,.09)"
stroke-width="1"
></polyline>
<circle cx="62" cy="38" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="120" cy="84" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="178" cy="30" r="2" fill="rgba(255,255,255,.18)"></circle>
</svg>
</div>
<div
style="
position: absolute;
top: 8px;
left: 9px;
font-family: var(--zzm-mono);
font-size: 9.5px;
letter-spacing: 1px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.82);
"
>
S1 · E05
</div>
<div
style="
position: absolute;
bottom: 8px;
right: 9px;
font-family: var(--zzm-mono);
font-size: 10.5px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.88);
"
>
15:32
</div>
<div style="position: absolute; top: 8px; right: 9px; display: flex; gap: 5px">
<span
style="
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: transparent;
color: transparent;
opacity: 0;
"
>
会员
</span>
</div>
<div class="zzm-soon"><span class="zzm-soon__tag">敬请期待</span></div>
</div>
<div style="margin: 11px 2px 3px; display: flex; align-items: flex-start; gap: 7px">
<span style="flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45">
<span
class="zzm-pill-shine"
style="
display: inline-block;
vertical-align: middle;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 2px 7px;
border-radius: 4px;
background: var(--zzm-tier-member-bg);
color: var(--zzm-tier-member-ink);
--zzm-shine-delay: 2.8s;
margin-right: 6px;
"
>
会员
</span>
标签与属性
</span>
</div>
<div
style="
margin: 0 2px;
font-size: 12.5px;
color: var(--zzm-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
"
>
让想法第一次连起来。
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-mono: ui-monospace, "SF Mono", Menlo, monospace;
--zzm-tier-member-bg: rgba(240, 169, 40, 0.16);
--zzm-tier-member-ink: #F0B44C;
--zzm-muted: #8D8C86;
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
--zzm-accent-line: rgba(226, 125, 103, 0.42);
--zzm-accent: #A6402F;
--zzm-shine: rgba(255, 255, 255, .22);
}
/* controls.css */
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}
.zzm-v4 .zzm-cardlink--soon { cursor: default; }
.zzm-v4 .zzm-cardlink--soon:hover {
transform: none;
border-color: var(--zzm-hairline-2);
box-shadow: var(--zzm-rest-shadow);
}
.zzm-v4 .zzm-cardlink--soon.zzm-cardlink--done:hover { border-color: var(--zzm-accent-line); }
.zzm-v4 .zzm-cardlink--soon.zzm-cardlink--current:hover {
border-color: var(--zzm-accent);
box-shadow: 0 0 0 1px var(--zzm-accent), var(--zzm-rest-shadow);
}
.zzm-v4 .zzm-soon {
position: absolute;
inset: 0;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
background: rgba(0, 0, 0, .5);
cursor: default;
}
.zzm-v4 .zzm-soon__tag {
/* 字距在末字后多留一份空白:右内距少一份字距,文字才在胶囊里视觉居中 */
padding: 4px 9px 4px 12px;
border: 1px solid rgba(255, 255, 255, .56);
border-radius: 999px;
background: rgba(0, 0, 0, .24);
color: #FFFFFF;
font-size: 12px;
font-weight: 600;
line-height: 16px;
letter-spacing: 3px;
white-space: nowrap;
text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.zzm-v4 .zzm-soon--lg .zzm-soon__tag {
padding: 8px 16px 8px 20px;
font-size: 16px;
line-height: 24px;
letter-spacing: 4px;
}
.zzm-v4 .zzm-pill-shine {
position: relative;
overflow: hidden;
}
.zzm-v4 .zzm-pill-shine::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
transform: translateX(-180%);
background: linear-gradient(105deg, transparent 34%, var(--zzm-shine) 50%, transparent 66%);
animation: zzmPillShine 4.6s ease-in-out infinite;
animation-delay: var(--zzm-shine-delay, 0s);
}
/* keyframes */
@keyframes zzmPillShine { 0% { transform: translateX(-180%) } 14% { transform: translateX(180%) } 100% { transform: translateX(180%) } }会员模板与日记
import { LessonCard } from './screens/v4/course/LessonCard.jsx'
// 课节位置数组:[标题, 时长, 简介, md, 体验课, 源, uid, 课节ID, 行数据]
const lesson = (id, title, level, row = {}) => [title, '15:32', '让想法第一次连起来。', '', level < 2 ? 1 : 0, '', '', id, { cover_url: null, required_level: level, ...row }]
const OPEN = { canWatchCourse: () => true, canWatchLesson: () => true }
const GUEST = { canWatchCourse: () => false, canWatchLesson: (a) => (a[8]?.required_level ?? 0) < 2 }
export function Remind() {
return (
<div style={{ width: 280 }}>
<LessonCard si={0} li={5} a={lesson('l-6', '模板与日记', 2, { has_video: false })} plan={OPEN} done={false} tierTag
remind={{ count: 12, mine: false, onRemind: () => {} }} />
</div>
)
}<div style="width: 280px">
<div
aria-disabled="true"
title="敬请期待:本节视频还未上线"
class="zzm-cardlink zzm-cardlink--soon"
>
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
position: relative;
"
>
<div
style="
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
"
>
<svg
viewBox="0 0 240 135"
style="position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5"
>
<polyline
points="18,110 62,38 120,84 178,30 224,96"
fill="none"
stroke="rgba(255,255,255,.09)"
stroke-width="1"
></polyline>
<circle cx="62" cy="38" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="120" cy="84" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="178" cy="30" r="2" fill="rgba(255,255,255,.18)"></circle>
</svg>
</div>
<div
style="
position: absolute;
top: 8px;
left: 9px;
font-family: var(--zzm-mono);
font-size: 9.5px;
letter-spacing: 1px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.82);
"
>
S1 · E06
</div>
<div
style="
position: absolute;
bottom: 8px;
right: 9px;
font-family: var(--zzm-mono);
font-size: 10.5px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.88);
"
>
15:32
</div>
<div style="position: absolute; top: 8px; right: 9px; display: flex; gap: 5px">
<span
style="
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: transparent;
color: transparent;
opacity: 0;
"
>
会员
</span>
</div>
<div class="zzm-soon">
<button
type="button"
class="zzm-btn zzm-btn--accent zzm-soon__remind zzm-btn--sm"
title="催更:按催更人数从高到低安排录制"
>
催更
</button>
</div>
</div>
<div style="margin: 11px 2px 3px; display: flex; align-items: flex-start; gap: 7px">
<span style="flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45">
<span
class="zzm-pill-shine"
style="
display: inline-block;
vertical-align: middle;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 2px 7px;
border-radius: 4px;
background: var(--zzm-tier-member-bg);
color: var(--zzm-tier-member-ink);
--zzm-shine-delay: 3.5s;
margin-right: 6px;
"
>
会员
</span>
模板与日记
</span>
</div>
<div
style="
margin: 0 2px;
font-size: 12.5px;
color: var(--zzm-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
"
>
让想法第一次连起来。
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-mono: ui-monospace, "SF Mono", Menlo, monospace;
--zzm-tier-member-bg: rgba(240, 169, 40, 0.16);
--zzm-tier-member-ink: #F0B44C;
--zzm-muted: #8D8C86;
--zzm-key-line: rgba(255, 255, 255, .12);
--zzm-key-ink: #D6D5CF;
--zzm-key-face: linear-gradient(180deg, #2D2D2B 0%, #232322 100%);
--zzm-key-shadow: 0 0 0 3px rgba(255, 255, 255, .02), 0 1px 2px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -1px 0 rgba(0, 0, 0, .3);
--zzm-key-line-hover: rgba(255, 255, 255, .2);
--zzm-key-shadow-hover: 0 0 0 4px rgba(255, 255, 255, .035), 0 2px 4px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .3);
--zzm-key-face-active: linear-gradient(180deg, #1A1A19 0%, #212120 100%);
--zzm-key-shadow-active: 0 0 0 3px rgba(255, 255, 255, .02), 0 1px 0 rgba(255, 255, 255, .04), inset 0 2px 4px rgba(0, 0, 0, .55), inset 0 1px 2px rgba(0, 0, 0, .4);
--zzm-key-shadow-focus: 0 0 0 3px rgba(226, 125, 103, .35), 0 1px 2px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .07);
--zzm-muted-2: #85847C;
--zzm-key-off: #1E1E1D;
--zzm-key-off-line: rgba(255, 255, 255, .06);
--zzm-key-off-shadow: none;
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
--zzm-accent-line: rgba(226, 125, 103, 0.42);
--zzm-accent: #A6402F;
--zzm-shine: rgba(255, 255, 255, .22);
}
/* controls.css */
.zzm-v4 .zzm-btn {
-webkit-appearance: none;
appearance: none;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 36px;
padding: 0 16px;
font-family: inherit;
font-size: 13px;
font-weight: 600;
letter-spacing: .2px;
white-space: nowrap;
cursor: pointer;
user-select: none;
border-radius: 8px; /* 圆角矩形——按钮禁胶囊 */
border: 1px solid var(--zzm-key-line);
color: var(--zzm-key-ink);
background: var(--zzm-key-face);
box-shadow: var(--zzm-key-shadow); /* ④光晕 ③近影远影 ②顶部反光 ①底缘收沉 */
transition: box-shadow .16s ease, transform .16s ease, background .16s ease,
border-color .16s ease, filter .16s ease, opacity .16s ease;
}
.zzm-v4 .zzm-btn:hover {
transform: translateY(-1px);
border-color: var(--zzm-key-line-hover);
box-shadow: var(--zzm-key-shadow-hover);
}
.zzm-v4 .zzm-btn:active {
transform: translateY(0);
background: var(--zzm-key-face-active); /* ⑤ 凹面翻转 */
box-shadow: var(--zzm-key-shadow-active);
}
.zzm-v4 .zzm-btn:focus-visible {
outline: none;
box-shadow: var(--zzm-key-shadow-focus); /* 键盘焦点=朱色光晕 */
}
.zzm-v4 .zzm-btn:disabled {
cursor: not-allowed;
transform: none;
}
.zzm-v4 .zzm-btn:disabled:not(.zzm-btn--busy) {
color: var(--zzm-muted-2);
background: var(--zzm-key-off);
border-color: var(--zzm-key-off-line);
box-shadow: var(--zzm-key-off-shadow);
}
.zzm-v4 .zzm-btn--accent {
color: #FFFFFF;
border-color: rgba(122, 42, 29, .9);
background: linear-gradient(180deg, #C25743 0%, #A6402F 56%, #99392A 100%);
box-shadow:
0 0 0 3px rgba(166, 64, 47, .10), /* 朱色反光光晕 */
0 1px 2px rgba(0, 0, 0, .14),
0 3px 10px rgba(166, 64, 47, .28),
inset 0 1px 0 rgba(255, 255, 255, .32),
inset 0 -1px 0 rgba(0, 0, 0, .20);
}
.zzm-v4 .zzm-btn--accent:hover {
filter: brightness(1.06);
border-color: rgba(122, 42, 29, .9);
box-shadow:
0 0 0 4px rgba(166, 64, 47, .16),
0 2px 4px rgba(0, 0, 0, .16),
0 5px 14px rgba(166, 64, 47, .34),
inset 0 1px 0 rgba(255, 255, 255, .36),
inset 0 -1px 0 rgba(0, 0, 0, .20);
}
.zzm-v4 .zzm-btn--accent:active {
filter: none;
background: linear-gradient(180deg, #8E3425 0%, #A03D2C 100%);
box-shadow:
0 0 0 3px rgba(166, 64, 47, .10),
inset 0 2px 5px rgba(0, 0, 0, .34),
inset 0 1px 2px rgba(0, 0, 0, .24);
}
.zzm-v4 .zzm-btn--sm { height: 28px; padding: 0 12px; font-size: 12px; gap: 4px; }
.zzm-v4 .zzm-btn--icon.zzm-btn--sm { width: 28px; }
@media (pointer: coarse) {
.zzm-v4 .zzm-btn--sm:not(.zzm-btn--busy) { position: relative; }
}
@media (pointer: coarse) {
.zzm-v4 .zzm-btn--sm:not(.zzm-btn--busy)::after { content: ""; position: absolute; inset: -8px; }
}
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}
.zzm-v4 .zzm-cardlink--soon { cursor: default; }
.zzm-v4 .zzm-cardlink--soon:hover {
transform: none;
border-color: var(--zzm-hairline-2);
box-shadow: var(--zzm-rest-shadow);
}
.zzm-v4 .zzm-cardlink--soon.zzm-cardlink--done:hover { border-color: var(--zzm-accent-line); }
.zzm-v4 .zzm-cardlink--soon.zzm-cardlink--current:hover {
border-color: var(--zzm-accent);
box-shadow: 0 0 0 1px var(--zzm-accent), var(--zzm-rest-shadow);
}
.zzm-v4 .zzm-soon {
position: absolute;
inset: 0;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
background: rgba(0, 0, 0, .5);
cursor: default;
}
.zzm-v4 .zzm-soon__remind { letter-spacing: 1px; }
.zzm-v4 .zzm-pill-shine {
position: relative;
overflow: hidden;
}
.zzm-v4 .zzm-pill-shine::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
transform: translateX(-180%);
background: linear-gradient(105deg, transparent 34%, var(--zzm-shine) 50%, transparent 66%);
animation: zzmPillShine 4.6s ease-in-out infinite;
animation-delay: var(--zzm-shine-delay, 0s);
}
/* keyframes */
@keyframes zzmPillShine { 0% { transform: translateX(-180%) } 14% { transform: translateX(180%) } 100% { transform: translateX(180%) } }会员工作流与自动化
import { LessonCard } from './screens/v4/course/LessonCard.jsx'
// 课节位置数组:[标题, 时长, 简介, md, 体验课, 源, uid, 课节ID, 行数据]
const lesson = (id, title, level, row = {}) => [title, '15:32', '让想法第一次连起来。', '', level < 2 ? 1 : 0, '', '', id, { cover_url: null, required_level: level, ...row }]
const OPEN = { canWatchCourse: () => true, canWatchLesson: () => true }
const GUEST = { canWatchCourse: () => false, canWatchLesson: (a) => (a[8]?.required_level ?? 0) < 2 }
export function Voted() {
return (
<div style={{ width: 280 }}>
<LessonCard si={0} li={6} a={lesson('l-7', '工作流与自动化', 2, { has_video: false })} plan={OPEN} done={false} tierTag
remind={{ count: 13, mine: true, onRemind: () => {} }} />
</div>
)
}<div style="width: 280px">
<div
aria-disabled="true"
title="敬请期待:本节视频还未上线"
class="zzm-cardlink zzm-cardlink--soon"
>
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
position: relative;
"
>
<div
style="
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 9px;
"
>
<svg
viewBox="0 0 240 135"
style="position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5"
>
<polyline
points="18,110 62,38 120,84 178,30 224,96"
fill="none"
stroke="rgba(255,255,255,.09)"
stroke-width="1"
></polyline>
<circle cx="62" cy="38" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="120" cy="84" r="2" fill="rgba(255,255,255,.18)"></circle>
<circle cx="178" cy="30" r="2" fill="rgba(255,255,255,.18)"></circle>
</svg>
</div>
<div
style="
position: absolute;
top: 8px;
left: 9px;
font-family: var(--zzm-mono);
font-size: 9.5px;
letter-spacing: 1px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.55);
color: rgba(255, 255, 255, 0.82);
"
>
S1 · E07
</div>
<div
style="
position: absolute;
bottom: 8px;
right: 9px;
font-family: var(--zzm-mono);
font-size: 10.5px;
padding: 3px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.88);
"
>
15:32
</div>
<div style="position: absolute; top: 8px; right: 9px; display: flex; gap: 5px">
<span
style="
font-size: 9.5px;
font-weight: 600;
letter-spacing: 1px;
padding: 3px 7px;
border-radius: 4px;
background: transparent;
color: transparent;
opacity: 0;
"
>
会员
</span>
</div>
<div class="zzm-soon">
<span class="zzm-soon__voted" role="status" title="催更:按催更人数从高到低安排录制">
✓ 已催更 · 13 人
</span>
</div>
</div>
<div style="margin: 11px 2px 3px; display: flex; align-items: flex-start; gap: 7px">
<span style="flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.45">
<span
class="zzm-pill-shine"
style="
display: inline-block;
vertical-align: middle;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.5px;
padding: 2px 7px;
border-radius: 4px;
background: var(--zzm-tier-member-bg);
color: var(--zzm-tier-member-ink);
--zzm-shine-delay: 4.199999999999999s;
margin-right: 6px;
"
>
会员
</span>
工作流与自动化
</span>
</div>
<div
style="
margin: 0 2px;
font-size: 12.5px;
color: var(--zzm-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
"
>
让想法第一次连起来。
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-mono: ui-monospace, "SF Mono", Menlo, monospace;
--zzm-tier-member-bg: rgba(240, 169, 40, 0.16);
--zzm-tier-member-ink: #F0B44C;
--zzm-muted: #8D8C86;
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
--zzm-accent-line: rgba(226, 125, 103, 0.42);
--zzm-accent: #A6402F;
--zzm-shine: rgba(255, 255, 255, .22);
}
/* controls.css */
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}
.zzm-v4 .zzm-cardlink--soon { cursor: default; }
.zzm-v4 .zzm-cardlink--soon:hover {
transform: none;
border-color: var(--zzm-hairline-2);
box-shadow: var(--zzm-rest-shadow);
}
.zzm-v4 .zzm-cardlink--soon.zzm-cardlink--done:hover { border-color: var(--zzm-accent-line); }
.zzm-v4 .zzm-cardlink--soon.zzm-cardlink--current:hover {
border-color: var(--zzm-accent);
box-shadow: 0 0 0 1px var(--zzm-accent), var(--zzm-rest-shadow);
}
.zzm-v4 .zzm-soon {
position: absolute;
inset: 0;
z-index: 2;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 8px;
background: rgba(0, 0, 0, .5);
cursor: default;
}
.zzm-v4 .zzm-soon__voted {
padding: 5px 12px;
border: 1px solid rgba(255, 255, 255, .56);
border-radius: 999px;
background: rgba(0, 0, 0, .24);
color: #FFFFFF;
font-size: 12px;
font-weight: 600;
line-height: 16px;
letter-spacing: 1px;
white-space: nowrap;
text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
animation: zzmFade .24s ease both;
}
.zzm-v4 .zzm-soon--lg .zzm-soon__voted { padding: 7px 16px; font-size: 14px; line-height: 20px; }
.zzm-v4 .zzm-pill-shine {
position: relative;
overflow: hidden;
}
.zzm-v4 .zzm-pill-shine::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
transform: translateX(-180%);
background: linear-gradient(105deg, transparent 34%, var(--zzm-shine) 50%, transparent 66%);
animation: zzmPillShine 4.6s ease-in-out infinite;
animation-delay: var(--zzm-shine-delay, 0s);
}
/* keyframes */
@keyframes zzmFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes zzmPillShine { 0% { transform: translateX(-180%) } 14% { transform: translateX(180%) } 100% { transform: translateX(180%) } }import { LessonCard } from './screens/v4/course/LessonCard.jsx'
export function Loading() {
return (
<div style={{ width: 280 }}>
<LessonCard loading />
</div>
)
}<div style="width: 280px">
<div class="zzm-cardlink">
<div
style="
aspect-ratio: 16/9;
border-radius: 12px;
background: var(--zzm-dark-card);
overflow: hidden;
"
></div>
<div style="margin: 11px 2px 3px">
<div class="zzm-skel" style="width: 72%; height: 14px; border-radius: 8px"></div>
</div>
<div style="margin: 0 2px">
<div class="zzm-skel" style="width: 48%; height: 12.5px; border-radius: 8px"></div>
</div>
</div>
</div>/* tokens.css · 用到的令牌 */
:root {
--zzm-dark-card: #0F0F10;
--zzm-chip: #272725;
--zzm-shimmer: rgba(255, 255, 255, .05);
--zzm-surface: #1C1C1B;
--zzm-hairline-2: rgba(255, 255, 255, 0.1);
--zzm-rest-shadow: 0 1px 2px rgba(0, 0, 0, .3);
--zzm-line-hover: rgba(255, 255, 255, 0.3);
--zzm-lift-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
}
/* base.css */
.zzm-v4 .zzm-skel {
position: relative;
overflow: hidden;
background: var(--zzm-chip);
border-radius: 8px;
}
.zzm-v4 .zzm-skel::after {
content: '';
position: absolute;
inset: 0;
transform: translateX(-100%);
background: linear-gradient(90deg, transparent, var(--zzm-shimmer), transparent);
animation: zzmShimmer 1.4s ease infinite;
}
/* controls.css */
.zzm-v4 .zzm-cardlink {
background: var(--zzm-surface);
border: 1px solid var(--zzm-hairline-2);
border-radius: 16px;
padding: 12px;
cursor: pointer;
box-shadow: var(--zzm-rest-shadow);
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zzm-v4 .zzm-cardlink:hover {
transform: translateY(-3px);
border-color: var(--zzm-line-hover);
box-shadow: var(--zzm-lift-shadow);
}
/* keyframes */
@keyframes zzmShimmer { 100% { transform: translateX(100%) } }属性
| 属性 | 取值 | 默认 | 说明 |
|---|---|---|---|
| si / li | number | — | 系列下标 / 课节下标,生成左上 S1 · E04 编号 |
| a | 课节位置数组 | — | 见下表 |
| plan | { canWatchCourse(ci), canWatchLesson(a) } | — | 权限视图:决定角标显隐与是否上锁 |
| done | boolean | — | 已完成 → 整卡朱染 |
| tierTag | boolean | false | 标题前显档位胶囊(带反光) |
| desc | boolean | true | false 时不显简介脚注 |
| current | boolean | false | 正在播放 → 朱环 +「▶ 播放中」,先于完成 chip |
| remind | { count, mine, failed?, onRemind } | — | 敬请期待时罩里的催更键(见 SoonVeil);count 只在 mine 为真时显示;不传就只有「敬请期待」签 |
| catName | string | — | 脚注前缀系列名 |
| ci | number | 0 | 课程下标(传给 canWatchCourse) |
| loading | boolean | false | 骨架态 |
课节位置数组 a
| 下标 | 含义 |
|---|---|
| 0 | 标题;无封面时截首段(「:」前,≤ 12 字)作卡面短标题 |
| 1 | 时长文字,右下角显示 |
| 2 | 简介,作脚注 |
| 3 | Markdown 笔记(卡片不用) |
| 4 | 是否体验课(required_level < 2) |
| 5 / 6 | 视频源标签 / 播放器 uid(卡片不用) |
| 7 | 课节 ID |
| 8 | 行数据:cover_url、required_level、source、duration_minutes、has_video |
敬请期待
课节还没有绑定视频时,卡片进入敬请期待态。判定只有一条,写在 domain/v4/lessonSoon.js 的 isSoon(a):a[8].has_video === false。字段缺失一律当作有视频——宁可放行到课时页由服务端说明「尚未上线」,也不把已上线的课误锁。
这一态由数据决定,不是属性:卡片自己不挂 onClick、不预取播放凭证,根节点加 .zzm-cardlink--soon 撤掉悬停的上浮与描边,aria-disabled 告诉读屏器不可用。无封面时兜底面只留星座线稿、不叠短标题——罩中央已经是签,两行字会压在一起;课名在卡片下方照常显示。封面上的罩是独立的 .zzm-soon 类,导学封面、播放舞台这类大画面用 .zzm-soon--lg,见「视频播放键」页。
在 edu 里,悬停可看的课节会预取播放凭证(hoverPrefetchProps)。设计系统站用 src/stubs/playUrlCache.js 的空实现顶替,源文件一字未改。
铁律
✓ 要四角元素(编号、时长、角标)各自带深色小底
✗ 不要给整张封面加暗色蒙层
✓ 要有封面就不叠短标题——封面图自己写着课名
✗ 不要锁定用 backdrop 模糊(同屏几十张卡,GPU 吃不消)
✓ 要敬请期待的罩比锁罩浅(.5 对 .7),封面要看得清
✗ 不要把没有视频的课做成可点、进去再报错
✓ 要催更键点了只催更:不冒泡,不把人带进课时页