Collapse portal under src/, unify pnpm workspace/scripts, thin VIP topic re-exports, drop orphan vip scaffolds and one-shot scripts, ignore xhs/release, document root commands. Co-authored-by: Cursor <cursoragent@cursor.com>
364 lines
6.3 KiB
SCSS
364 lines
6.3 KiB
SCSS
/* 电子书 H5 封面 — 对齐社群 / 门户首页:community tokens + hero 动效 */
|
||
@import '../../styles/community.scss';
|
||
@import '../../styles/community-navbar.scss';
|
||
@import '../../styles/portal-nav-h5';
|
||
@import '../../styles/weapp-parity.scss';
|
||
|
||
.book-flow.home-flow--hero-only {
|
||
min-height: 100vh;
|
||
overflow-x: hidden;
|
||
overflow-y: hidden;
|
||
}
|
||
|
||
.book-flow--error {
|
||
min-height: 100vh;
|
||
}
|
||
|
||
.book-error {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-height: calc(100vh - 72px);
|
||
padding: 2rem 1.25rem;
|
||
text-align: center;
|
||
gap: 0.75rem;
|
||
}
|
||
|
||
.book-error-title {
|
||
font-size: 1.25rem;
|
||
font-weight: 700;
|
||
color: var(--text-primary);
|
||
}
|
||
|
||
.book-error-hint {
|
||
font-size: 0.9rem;
|
||
color: var(--text-secondary);
|
||
margin-bottom: 0.5rem;
|
||
}
|
||
|
||
.book-flow.home-flow--hero-only .hero {
|
||
min-height: calc(100vh - 64px) !important;
|
||
display: flex !important;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
box-sizing: border-box;
|
||
padding: calc(var(--nav-height, 64px) + 12px) 16px
|
||
calc(128px + env(safe-area-inset-bottom, 0px)) !important;
|
||
}
|
||
|
||
.book-flow .hero-top {
|
||
gap: 12px !important;
|
||
}
|
||
|
||
.book-hero-title {
|
||
margin-bottom: 0 !important;
|
||
text-align: center;
|
||
}
|
||
|
||
.book-title-brand {
|
||
font-size: clamp(2.35rem, 9vw, 3.4rem) !important;
|
||
letter-spacing: -0.03em;
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.book-hero-title .book-tagline {
|
||
font-size: clamp(1.05rem, 4.2vw, 1.45rem) !important;
|
||
font-weight: 700;
|
||
letter-spacing: 0.01em;
|
||
color: var(--text-primary);
|
||
display: block;
|
||
line-height: 1.35;
|
||
}
|
||
|
||
.book-hero-title .gradient-text {
|
||
-webkit-text-fill-color: transparent;
|
||
}
|
||
|
||
.book-flow .hero-title-spark {
|
||
display: block;
|
||
margin-top: 6px;
|
||
font-size: 1.1rem;
|
||
line-height: 1;
|
||
letter-spacing: 0.08em;
|
||
text-align: center;
|
||
}
|
||
|
||
.book-typewriter {
|
||
display: block !important;
|
||
margin: 10px auto 0 !important;
|
||
padding: 0 12px !important;
|
||
max-width: min(100%, 26em) !important;
|
||
min-height: 2.8em !important;
|
||
box-sizing: border-box;
|
||
font-size: 0.88rem !important;
|
||
line-height: 1.55 !important;
|
||
white-space: normal !important;
|
||
overflow: hidden;
|
||
text-align: center !important;
|
||
color: var(--text-secondary);
|
||
}
|
||
|
||
.typewriter-cursor {
|
||
display: inline;
|
||
margin-left: 1px;
|
||
color: var(--accent-3);
|
||
animation: bookBlink 1s step-end infinite;
|
||
font-weight: 400;
|
||
}
|
||
|
||
.book-visual {
|
||
position: relative;
|
||
width: 100%;
|
||
max-width: 320px;
|
||
margin: 4px auto 0;
|
||
overflow: visible;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.book-visual-host {
|
||
width: 100%;
|
||
line-height: 0;
|
||
}
|
||
|
||
.book-visual-host svg,
|
||
.book-visual-svg {
|
||
width: 100%;
|
||
height: auto;
|
||
display: block;
|
||
animation: bookMeshFloat 7s ease-in-out infinite;
|
||
}
|
||
|
||
.book-body {
|
||
transform-origin: 200px 200px;
|
||
animation: bookTilt 6.5s ease-in-out infinite;
|
||
}
|
||
|
||
.book-shadow {
|
||
animation: bookShadowPulse 6.5s ease-in-out infinite;
|
||
}
|
||
|
||
.book-line {
|
||
stroke-dasharray: 4 8;
|
||
animation: bookDash 2.8s linear infinite;
|
||
}
|
||
|
||
.book-spark {
|
||
animation: bookSpark 2.4s ease-in-out infinite;
|
||
}
|
||
|
||
.book-float-chips .social-chip {
|
||
position: absolute;
|
||
padding: 8px 14px;
|
||
background: var(--bg-card, rgba(17, 24, 39, 0.88));
|
||
border: var(--border-glass, 1px solid rgba(255, 255, 255, 0.1));
|
||
border-radius: 999px;
|
||
font-size: 0.78rem;
|
||
font-weight: 600;
|
||
backdrop-filter: blur(16px);
|
||
animation: bookChipFloat 4.2s ease-in-out infinite;
|
||
white-space: nowrap;
|
||
color: var(--text-primary, #f1f5f9);
|
||
box-shadow: var(--shadow-card);
|
||
}
|
||
|
||
.book-flow .sc-1 {
|
||
top: 6%;
|
||
right: -4%;
|
||
}
|
||
|
||
.book-flow .sc-2 {
|
||
top: 44%;
|
||
left: -10%;
|
||
animation-delay: -1.4s;
|
||
}
|
||
|
||
.book-flow .sc-3 {
|
||
bottom: 10%;
|
||
right: -2%;
|
||
animation-delay: -2.2s;
|
||
}
|
||
|
||
.book-flow .hero-bottom {
|
||
margin-top: 12px;
|
||
min-height: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.book-flow .hero-bottom .hero-actions {
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.book-actions {
|
||
position: fixed;
|
||
left: 16px;
|
||
right: 16px;
|
||
bottom: calc(28px + env(safe-area-inset-bottom, 0px));
|
||
z-index: 40;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
gap: 8px;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
/* 微信/抖音有原生 tabBar,固定 CTA 上抬避免被挡 */
|
||
.page-shell--with-tabbar .book-actions {
|
||
bottom: calc(28px + 52px + env(safe-area-inset-bottom, 0px));
|
||
}
|
||
|
||
.book-cta {
|
||
width: 100%;
|
||
justify-content: center;
|
||
min-height: 48px;
|
||
font-size: 1rem !important;
|
||
font-weight: 700 !important;
|
||
letter-spacing: 0.02em;
|
||
animation: bookCtaPulse 2.8s ease-in-out infinite;
|
||
}
|
||
|
||
.book-cta::after {
|
||
border: none;
|
||
}
|
||
|
||
.book-cta-hint {
|
||
display: block;
|
||
text-align: center;
|
||
font-size: 0.78rem;
|
||
color: var(--text-muted);
|
||
letter-spacing: 0.02em;
|
||
}
|
||
|
||
@keyframes bookFadeUp {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(14px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
@keyframes bookBlink {
|
||
0%,
|
||
100% {
|
||
opacity: 1;
|
||
}
|
||
50% {
|
||
opacity: 0;
|
||
}
|
||
}
|
||
|
||
@keyframes bookMeshFloat {
|
||
0%,
|
||
100% {
|
||
transform: translateY(0);
|
||
}
|
||
50% {
|
||
transform: translateY(-12px);
|
||
}
|
||
}
|
||
|
||
@keyframes bookTilt {
|
||
0%,
|
||
100% {
|
||
transform: rotate(-1.5deg) translateY(0);
|
||
}
|
||
50% {
|
||
transform: rotate(1.8deg) translateY(-4px);
|
||
}
|
||
}
|
||
|
||
@keyframes bookShadowPulse {
|
||
0%,
|
||
100% {
|
||
opacity: 0.35;
|
||
transform: scaleX(1);
|
||
}
|
||
50% {
|
||
opacity: 0.22;
|
||
transform: scaleX(0.92);
|
||
}
|
||
}
|
||
|
||
@keyframes bookDash {
|
||
to {
|
||
stroke-dashoffset: -36;
|
||
}
|
||
}
|
||
|
||
@keyframes bookSpark {
|
||
0%,
|
||
100% {
|
||
opacity: 0.9;
|
||
transform: scale(1);
|
||
}
|
||
50% {
|
||
opacity: 0.35;
|
||
transform: scale(1.4);
|
||
}
|
||
}
|
||
|
||
@keyframes bookChipFloat {
|
||
0%,
|
||
100% {
|
||
transform: translateY(0);
|
||
}
|
||
50% {
|
||
transform: translateY(-8px);
|
||
}
|
||
}
|
||
|
||
@keyframes bookCtaPulse {
|
||
0%,
|
||
100% {
|
||
box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
|
||
}
|
||
50% {
|
||
box-shadow: 0 8px 32px rgba(78, 205, 196, 0.35);
|
||
}
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.book-visual {
|
||
max-width: 260px;
|
||
}
|
||
|
||
.book-float-chips .social-chip {
|
||
font-size: 0.7rem;
|
||
padding: 6px 10px;
|
||
}
|
||
|
||
.book-flow .sc-1 {
|
||
display: none;
|
||
}
|
||
|
||
.book-flow .sc-2 {
|
||
left: -6%;
|
||
}
|
||
|
||
.book-typewriter {
|
||
min-height: 3.2em !important;
|
||
font-size: 0.82rem !important;
|
||
}
|
||
}
|
||
|
||
@media (min-width: 900px) {
|
||
.book-flow.home-flow--hero-only .hero {
|
||
padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
|
||
}
|
||
|
||
.book-actions {
|
||
left: 50%;
|
||
right: auto;
|
||
width: min(420px, calc(100% - 32px));
|
||
transform: translateX(-50%);
|
||
}
|
||
|
||
.book-visual {
|
||
max-width: 360px;
|
||
}
|
||
}
|