Align Taro pages with Next hub/nav/book/community/VIP, pack the single-index Xiaohongshu portal with host-chrome safe areas, and refresh shared book content plus portal README constraints. Co-authored-by: Cursor <cursoragent@cursor.com>
1215 lines
22 KiB
CSS
1215 lines
22 KiB
CSS
:root,
|
||
[data-theme="light"] {
|
||
--bg: #e9eef4;
|
||
--bg-elevated: #f7fafc;
|
||
--ink: #15202b;
|
||
--ink-muted: #5b6b7c;
|
||
--ink-faint: #8a98a8;
|
||
--line: rgba(21, 32, 43, 0.08);
|
||
--surface: rgba(255, 255, 255, 0.88);
|
||
--surface-solid: #ffffff;
|
||
--accent: #0d8f7b;
|
||
--accent-deep: #0a6e5f;
|
||
--accent-soft: rgba(13, 143, 123, 0.12);
|
||
--glow-a: rgba(13, 143, 123, 0.2);
|
||
--glow-b: rgba(56, 120, 180, 0.14);
|
||
--shadow: 0 8px 24px rgba(21, 32, 43, 0.08);
|
||
--shadow-card: 0 1px 2px rgba(21, 32, 43, 0.04), 0 6px 16px rgba(21, 32, 43, 0.04);
|
||
--toast-bg: #15202b;
|
||
--toast-ink: #f4f7fa;
|
||
--chip: rgba(21, 32, 43, 0.045);
|
||
--chip-active: #15202b;
|
||
--chip-active-ink: #f7fafc;
|
||
--topbar-bg: rgba(233, 238, 244, 0.9);
|
||
--font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
|
||
"Microsoft YaHei", "Noto Sans SC", sans-serif;
|
||
--radius: 14px;
|
||
--app-pad-top: 88px;
|
||
--app-pad-left: 16px;
|
||
--safe-bottom: env(safe-area-inset-bottom, 0px);
|
||
}
|
||
|
||
[data-theme="dark"] {
|
||
--bg: #0a0f14;
|
||
--bg-elevated: #121820;
|
||
--ink: #e8eef4;
|
||
--ink-muted: #8b99a8;
|
||
--ink-faint: #5d6c7c;
|
||
--line: rgba(232, 238, 244, 0.1);
|
||
--surface: rgba(18, 24, 32, 0.92);
|
||
--surface-solid: #121820;
|
||
--accent: #3dceb8;
|
||
--accent-deep: #2aa892;
|
||
--accent-soft: rgba(61, 206, 184, 0.14);
|
||
--glow-a: rgba(61, 206, 184, 0.14);
|
||
--glow-b: rgba(70, 130, 200, 0.12);
|
||
--shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
|
||
--shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 20px rgba(0, 0, 0, 0.28);
|
||
--toast-bg: #e8eef4;
|
||
--toast-ink: #0a0f14;
|
||
--chip: rgba(232, 238, 244, 0.06);
|
||
--chip-active: #e8eef4;
|
||
--chip-active-ink: #0a0f14;
|
||
--topbar-bg: rgba(10, 15, 20, 0.9);
|
||
}
|
||
|
||
*,
|
||
*::before,
|
||
*::after {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
html,
|
||
body {
|
||
margin: 0;
|
||
min-height: 100%;
|
||
background: var(--bg);
|
||
color: var(--ink);
|
||
font-family: var(--font);
|
||
-webkit-font-smoothing: antialiased;
|
||
-webkit-tap-highlight-color: transparent;
|
||
}
|
||
|
||
button {
|
||
font: inherit;
|
||
color: inherit;
|
||
border: none;
|
||
background: none;
|
||
padding: 0;
|
||
cursor: pointer;
|
||
}
|
||
|
||
img {
|
||
display: block;
|
||
}
|
||
|
||
.app-shell {
|
||
position: relative;
|
||
min-height: 100vh;
|
||
isolation: isolate;
|
||
}
|
||
|
||
.bg-glow {
|
||
position: fixed;
|
||
inset: 0;
|
||
pointer-events: none;
|
||
z-index: -1;
|
||
overflow: hidden;
|
||
/* 禁止不透明底:否则会盖住全部 .view(此前首页只剩背景色) */
|
||
background:
|
||
radial-gradient(680px 380px at 8% -12%, var(--glow-a), transparent 58%),
|
||
radial-gradient(560px 320px at 100% 4%, var(--glow-b), transparent 55%);
|
||
}
|
||
|
||
.orb {
|
||
position: absolute;
|
||
border-radius: 50%;
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.orb-a {
|
||
width: 200px;
|
||
height: 200px;
|
||
left: -60px;
|
||
top: 18%;
|
||
background: radial-gradient(circle, var(--glow-a), transparent 70%);
|
||
}
|
||
|
||
.orb-b {
|
||
width: 240px;
|
||
height: 240px;
|
||
right: -80px;
|
||
top: 42%;
|
||
background: radial-gradient(circle, var(--glow-b), transparent 70%);
|
||
}
|
||
|
||
.topbar {
|
||
/* fixed 从屏幕顶开始,padding-top 让出宿主壳;实色底遮住上滑内容 */
|
||
position: fixed;
|
||
top: 0 !important;
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 1000;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 88px 12px 10px 16px;
|
||
padding-top: var(--app-pad-top, 88px);
|
||
background: #0a0f14;
|
||
border-bottom: 1px solid var(--line);
|
||
box-sizing: border-box;
|
||
}
|
||
.topbar #btn-menu {
|
||
order: 0;
|
||
flex-shrink: 0;
|
||
}
|
||
.topbar .brand-mark {
|
||
order: 1;
|
||
}
|
||
.topbar #btn-theme {
|
||
order: 2;
|
||
margin-left: auto;
|
||
}
|
||
[data-theme="light"] .topbar,
|
||
html[data-theme="light"] .topbar {
|
||
background: #e9eef4;
|
||
}
|
||
|
||
/* 导航页:内容避开 fixed 顶栏(安全区 + 约 52px 操作行) */
|
||
#view-nav {
|
||
padding-top: 0 !important;
|
||
box-sizing: border-box;
|
||
}
|
||
#view-nav .page {
|
||
padding-top: calc(var(--app-pad-top, 88px) + 52px);
|
||
}
|
||
|
||
/* 对齐微信 nav:菜单 + nomadro · 导航 */
|
||
.topbar .brand-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
width: 100%;
|
||
min-height: 44px;
|
||
}
|
||
.nav-portal-logo {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
cursor: pointer;
|
||
-webkit-tap-highlight-color: transparent;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.nav-portal-mark {
|
||
width: 28px;
|
||
height: 28px;
|
||
display: block;
|
||
flex-shrink: 0;
|
||
}
|
||
.nav-portal-brand {
|
||
font-weight: 800;
|
||
font-size: 1.05rem;
|
||
color: var(--ink);
|
||
}
|
||
.nav-portal-sep {
|
||
color: var(--ink-muted, #94a3b8);
|
||
font-weight: 600;
|
||
}
|
||
.nav-portal-section {
|
||
font-weight: 700;
|
||
font-size: 0.95rem;
|
||
color: var(--ink);
|
||
}
|
||
.pc-section-label {
|
||
font-size: 0.78rem;
|
||
color: var(--ink-muted, #94a3b8);
|
||
white-space: nowrap;
|
||
max-width: 5.5em;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.icon-btn {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 11px;
|
||
background: var(--surface);
|
||
border: 1px solid var(--line);
|
||
box-shadow: var(--shadow-card);
|
||
display: grid;
|
||
place-items: center;
|
||
flex-shrink: 0;
|
||
font-size: 1rem;
|
||
}
|
||
|
||
.icon-btn:active {
|
||
transform: scale(0.94);
|
||
}
|
||
|
||
.menu-bars {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 3.5px;
|
||
width: 14px;
|
||
}
|
||
|
||
.menu-bars i {
|
||
display: block;
|
||
height: 1.5px;
|
||
border-radius: 1px;
|
||
background: var(--ink);
|
||
}
|
||
|
||
.brand-mark {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.brand-logo {
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 8px;
|
||
object-fit: cover;
|
||
border: 1px solid var(--line);
|
||
}
|
||
|
||
.brand-text {
|
||
min-width: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
justify-content: center;
|
||
gap: 2px;
|
||
}
|
||
|
||
.brand-name {
|
||
margin: 0;
|
||
font-size: 1rem;
|
||
font-weight: 700;
|
||
letter-spacing: -0.02em;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.brand-current {
|
||
margin: 0;
|
||
max-width: 100%;
|
||
font-size: 0.72rem;
|
||
font-weight: 600;
|
||
letter-spacing: -0.01em;
|
||
line-height: 1.25;
|
||
color: var(--accent-deep);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
[data-theme="dark"] .brand-current {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.page {
|
||
position: relative;
|
||
z-index: 1;
|
||
padding: 12px 12px calc(72px + var(--safe-bottom));
|
||
}
|
||
|
||
.cat-panel + .cat-panel {
|
||
margin-top: 22px;
|
||
}
|
||
|
||
.cat-panel {
|
||
scroll-margin-top: calc(var(--app-pad-top) + 52px);
|
||
}
|
||
|
||
.cat-heading {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin: 0 0 10px;
|
||
padding-left: 10px;
|
||
position: relative;
|
||
}
|
||
|
||
.cat-heading::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0.25em;
|
||
bottom: 0.25em;
|
||
width: 3px;
|
||
border-radius: 99px;
|
||
background: var(--accent);
|
||
}
|
||
|
||
.cat-heading h2 {
|
||
margin: 0;
|
||
font-size: 1.05rem;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.cat-count {
|
||
font-size: 0.66rem;
|
||
font-weight: 700;
|
||
color: var(--accent-deep);
|
||
background: var(--accent-soft);
|
||
padding: 2px 7px;
|
||
border-radius: 999px;
|
||
}
|
||
|
||
[data-theme="dark"] .cat-count {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.group-block + .group-block {
|
||
margin-top: 12px;
|
||
}
|
||
|
||
.group-title {
|
||
margin: 0 0 7px;
|
||
font-size: 0.7rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
color: var(--ink-faint);
|
||
}
|
||
|
||
.link-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||
gap: 7px;
|
||
}
|
||
|
||
.link-card {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
width: 100%;
|
||
min-width: 0;
|
||
text-align: left;
|
||
padding: 9px;
|
||
border-radius: var(--radius);
|
||
background: var(--surface);
|
||
border: 1px solid var(--line);
|
||
box-shadow: var(--shadow-card);
|
||
}
|
||
|
||
.link-card:active {
|
||
transform: scale(0.978);
|
||
}
|
||
|
||
.link-icon-wrap {
|
||
width: 34px;
|
||
height: 34px;
|
||
border-radius: 10px;
|
||
overflow: hidden;
|
||
border: 1px solid var(--line);
|
||
background: var(--chip);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.link-icon {
|
||
width: 100%;
|
||
height: 100%;
|
||
object-fit: cover;
|
||
}
|
||
|
||
.link-meta {
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.link-title {
|
||
display: block;
|
||
font-size: 0.82rem;
|
||
font-weight: 700;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.link-desc {
|
||
display: block;
|
||
margin-top: 2px;
|
||
font-size: 0.65rem;
|
||
color: var(--ink-muted);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.footer {
|
||
margin-top: 28px;
|
||
padding-top: 14px;
|
||
border-top: 1px solid var(--line);
|
||
text-align: center;
|
||
font-size: 0.7rem;
|
||
color: var(--ink-faint);
|
||
}
|
||
|
||
.drawer-root {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 60;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.drawer-root.open {
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.drawer-mask {
|
||
position: absolute;
|
||
inset: 0;
|
||
background: rgba(8, 12, 18, 0.46);
|
||
opacity: 0;
|
||
transition: opacity 0.22s ease;
|
||
}
|
||
|
||
.drawer-root.open .drawer-mask {
|
||
opacity: 1;
|
||
}
|
||
|
||
.drawer-panel {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
bottom: 0;
|
||
width: min(80vw, 300px);
|
||
background: var(--bg-elevated);
|
||
border-right: 1px solid var(--line);
|
||
box-shadow: var(--shadow);
|
||
transform: translateX(-104%);
|
||
transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: calc(var(--app-pad-top) + 4px) 0 calc(16px + var(--safe-bottom));
|
||
}
|
||
|
||
.drawer-root.open .drawer-panel {
|
||
transform: translateX(0);
|
||
}
|
||
|
||
.drawer-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
padding: 4px 12px 12px;
|
||
border-bottom: 1px solid var(--line);
|
||
}
|
||
|
||
.drawer-brand-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.drawer-brand-wrap img {
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 8px;
|
||
object-fit: cover;
|
||
border: 1px solid var(--line);
|
||
}
|
||
|
||
.drawer-brand {
|
||
display: block;
|
||
font-weight: 700;
|
||
font-size: 1rem;
|
||
}
|
||
|
||
.drawer-sub {
|
||
display: block;
|
||
margin-top: 2px;
|
||
font-size: 0.68rem;
|
||
color: var(--ink-muted);
|
||
}
|
||
|
||
.drawer-nav {
|
||
padding: 12px 10px;
|
||
overflow-y: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
}
|
||
|
||
.drawer-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
width: 100%;
|
||
text-align: left;
|
||
padding: 12px;
|
||
border-radius: 12px;
|
||
color: var(--ink-muted);
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.drawer-item.active {
|
||
background: var(--accent-soft);
|
||
color: var(--accent);
|
||
}
|
||
|
||
.drawer-item-title {
|
||
flex: 1;
|
||
font-size: 0.92rem;
|
||
font-weight: 600;
|
||
color: inherit;
|
||
}
|
||
|
||
.drawer-item.active .drawer-item-title {
|
||
color: var(--ink);
|
||
}
|
||
|
||
.drawer-item-count {
|
||
font-size: 0.68rem;
|
||
font-weight: 650;
|
||
background: var(--chip);
|
||
color: var(--ink-faint);
|
||
padding: 2px 7px;
|
||
border-radius: 999px;
|
||
}
|
||
|
||
.back-top {
|
||
position: fixed;
|
||
right: 14px;
|
||
bottom: calc(18px + var(--safe-bottom));
|
||
width: 40px;
|
||
height: 40px;
|
||
border-radius: 14px;
|
||
background: var(--chip-active);
|
||
color: var(--chip-active-ink);
|
||
box-shadow: var(--shadow);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transform: translateY(8px);
|
||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||
z-index: 40;
|
||
font-size: 1rem;
|
||
}
|
||
|
||
.back-top.show {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
/* Link detail sheet */
|
||
.sheet-root {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 70;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.sheet-root.open {
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.sheet-mask {
|
||
position: absolute;
|
||
inset: 0;
|
||
background: rgba(8, 12, 18, 0.48);
|
||
opacity: 0;
|
||
transition: opacity 0.22s ease;
|
||
}
|
||
|
||
.sheet-root.open .sheet-mask {
|
||
opacity: 1;
|
||
}
|
||
|
||
.sheet-panel {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
max-height: min(86vh, 640px);
|
||
overflow-y: auto;
|
||
-webkit-overflow-scrolling: touch;
|
||
background: var(--bg-elevated);
|
||
border-radius: 20px 20px 0 0;
|
||
border: 1px solid var(--line);
|
||
border-bottom: none;
|
||
box-shadow: var(--shadow);
|
||
padding: 10px 16px calc(16px + var(--safe-bottom));
|
||
transform: translateY(108%);
|
||
transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
}
|
||
|
||
.sheet-root.open .sheet-panel {
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.sheet-handle {
|
||
width: 36px;
|
||
height: 4px;
|
||
border-radius: 99px;
|
||
background: var(--chip);
|
||
margin: 0 auto 4px;
|
||
}
|
||
|
||
.sheet-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
}
|
||
|
||
.sheet-icon {
|
||
width: 44px;
|
||
height: 44px;
|
||
border-radius: 12px;
|
||
object-fit: cover;
|
||
border: 1px solid var(--line);
|
||
background: var(--chip);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.sheet-head-text {
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.sheet-title {
|
||
margin: 0;
|
||
font-size: 1.05rem;
|
||
font-weight: 700;
|
||
letter-spacing: -0.02em;
|
||
}
|
||
|
||
.sheet-sub {
|
||
margin: 4px 0 0;
|
||
font-size: 0.78rem;
|
||
color: var(--ink-muted);
|
||
line-height: 1.35;
|
||
}
|
||
|
||
/* Visual guide steps */
|
||
.guide-steps {
|
||
list-style: none;
|
||
margin: 0;
|
||
padding: 10px;
|
||
border-radius: 14px;
|
||
background: var(--chip);
|
||
border: 1px solid var(--line);
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
}
|
||
|
||
.guide-step {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
opacity: 0.42;
|
||
transition: opacity 0.25s ease, transform 0.25s ease;
|
||
transform: translateX(0);
|
||
}
|
||
|
||
.guide-step.is-active {
|
||
opacity: 1;
|
||
transform: translateX(2px);
|
||
}
|
||
|
||
.guide-step.is-done {
|
||
opacity: 0.78;
|
||
}
|
||
|
||
.guide-step.is-done .guide-num {
|
||
background: var(--accent);
|
||
color: #fff;
|
||
}
|
||
|
||
.guide-num {
|
||
width: 24px;
|
||
height: 24px;
|
||
border-radius: 50%;
|
||
flex-shrink: 0;
|
||
display: grid;
|
||
place-items: center;
|
||
font-size: 0.75rem;
|
||
font-weight: 800;
|
||
background: var(--surface-solid);
|
||
border: 1px solid var(--line);
|
||
color: var(--ink-muted);
|
||
}
|
||
|
||
.guide-step.is-active .guide-num {
|
||
background: var(--chip-active);
|
||
color: var(--chip-active-ink);
|
||
border-color: transparent;
|
||
box-shadow: 0 0 0 4px var(--accent-soft);
|
||
animation: num-pop 0.35s ease;
|
||
}
|
||
|
||
.guide-text {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
min-width: 0;
|
||
padding-top: 1px;
|
||
}
|
||
|
||
.guide-text strong {
|
||
font-size: 0.84rem;
|
||
font-weight: 750;
|
||
color: var(--ink);
|
||
}
|
||
|
||
.guide-text em {
|
||
font-style: normal;
|
||
font-size: 0.72rem;
|
||
color: var(--ink-muted);
|
||
}
|
||
|
||
.sheet-label {
|
||
margin: 0 0 8px;
|
||
font-size: 0.7rem;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
color: var(--ink-faint);
|
||
}
|
||
|
||
.url-stage {
|
||
position: relative;
|
||
}
|
||
|
||
.sheet-url-wrap {
|
||
position: relative;
|
||
}
|
||
|
||
.sheet-url-box {
|
||
padding: 14px 12px;
|
||
border-radius: 14px;
|
||
background: color-mix(in srgb, var(--accent) 8%, var(--surface-solid));
|
||
border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--line));
|
||
font-size: 0.86rem;
|
||
line-height: 1.5;
|
||
word-break: break-all;
|
||
user-select: text;
|
||
-webkit-user-select: text;
|
||
color: var(--ink);
|
||
transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
|
||
.sheet-url-box.is-pulse {
|
||
animation: url-pulse 1.4s ease-in-out infinite;
|
||
}
|
||
|
||
.sheet-url-box.is-selected {
|
||
border-color: var(--accent);
|
||
background: color-mix(in srgb, var(--accent) 16%, var(--surface-solid));
|
||
box-shadow: 0 0 0 4px var(--accent-soft);
|
||
animation: none;
|
||
}
|
||
|
||
.finger-ico {
|
||
font-size: 1.75rem;
|
||
line-height: 1;
|
||
filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
|
||
}
|
||
|
||
.finger-btn.is-hidden,
|
||
.finger-url.is-hidden {
|
||
display: none !important;
|
||
}
|
||
|
||
/* 第一步:仅小手,悬浮在绿色按钮上方,朝下指 */
|
||
.sheet-actions-wrap {
|
||
position: relative;
|
||
padding-top: 36px;
|
||
}
|
||
|
||
.finger-btn {
|
||
position: absolute;
|
||
left: 22%;
|
||
top: 0;
|
||
z-index: 3;
|
||
pointer-events: none;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
animation: finger-bounce-down 1.1s ease-in-out infinite;
|
||
}
|
||
|
||
.finger-btn .finger-ico {
|
||
display: block;
|
||
}
|
||
|
||
/* 第二步:小手紧贴网址区下沿朝上指,文案在右边 */
|
||
.sheet-url-wrap.is-pointing {
|
||
padding-bottom: 34px;
|
||
}
|
||
|
||
.finger-url {
|
||
position: absolute;
|
||
left: 6px;
|
||
top: auto;
|
||
bottom: 0;
|
||
z-index: 3;
|
||
pointer-events: none;
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
gap: 8px;
|
||
max-width: calc(100% - 12px);
|
||
animation: finger-nudge-up 1.05s ease-in-out infinite;
|
||
}
|
||
|
||
.finger-url .finger-ico {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.finger-url .finger-bubble {
|
||
max-width: 150px;
|
||
padding: 6px 9px;
|
||
border-radius: 10px;
|
||
background: var(--chip-active);
|
||
color: var(--chip-active-ink);
|
||
font-size: 0.68rem;
|
||
font-weight: 700;
|
||
line-height: 1.3;
|
||
text-align: left;
|
||
box-shadow: var(--shadow);
|
||
position: relative;
|
||
}
|
||
|
||
.finger-url .finger-bubble::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: -4px;
|
||
top: 50%;
|
||
width: 8px;
|
||
height: 8px;
|
||
background: var(--chip-active);
|
||
transform: translateY(-50%) rotate(45deg);
|
||
}
|
||
|
||
.sheet-status {
|
||
margin: 10px 0 0;
|
||
min-height: 1.2em;
|
||
font-size: 0.78rem;
|
||
font-weight: 650;
|
||
color: var(--accent-deep);
|
||
line-height: 1.4;
|
||
}
|
||
|
||
[data-theme="dark"] .sheet-status {
|
||
color: var(--accent);
|
||
}
|
||
|
||
.sheet-status.is-error {
|
||
color: #c44;
|
||
}
|
||
|
||
.sheet-actions {
|
||
display: grid;
|
||
grid-template-columns: 1.7fr 0.9fr;
|
||
gap: 8px;
|
||
}
|
||
|
||
.sheet-btn {
|
||
min-height: 48px;
|
||
border-radius: 14px;
|
||
border: 1px solid var(--line);
|
||
background: var(--surface);
|
||
font-size: 0.9rem;
|
||
font-weight: 650;
|
||
padding: 8px 10px;
|
||
}
|
||
|
||
.sheet-btn.primary {
|
||
background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent-deep));
|
||
color: #fff;
|
||
border-color: transparent;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 2px;
|
||
}
|
||
|
||
.sheet-btn.primary.pulse {
|
||
animation: cta-pulse 1.5s ease-in-out infinite;
|
||
}
|
||
|
||
.sheet-btn.primary.is-done {
|
||
animation: none;
|
||
background: var(--chip);
|
||
color: var(--ink);
|
||
border: 1px solid var(--line);
|
||
}
|
||
|
||
.sheet-btn-main {
|
||
font-size: 0.92rem;
|
||
font-weight: 800;
|
||
}
|
||
|
||
.sheet-btn-sub {
|
||
font-size: 0.66rem;
|
||
font-weight: 600;
|
||
opacity: 0.88;
|
||
}
|
||
|
||
.sheet-btn:active {
|
||
transform: scale(0.98);
|
||
}
|
||
|
||
@keyframes url-pulse {
|
||
0%,
|
||
100% {
|
||
box-shadow: 0 0 0 0 var(--accent-soft);
|
||
}
|
||
50% {
|
||
box-shadow: 0 0 0 6px var(--accent-soft);
|
||
}
|
||
}
|
||
|
||
@keyframes cta-pulse {
|
||
0%,
|
||
100% {
|
||
transform: scale(1);
|
||
box-shadow: 0 0 0 0 rgba(13, 143, 123, 0.35);
|
||
}
|
||
50% {
|
||
transform: scale(1.015);
|
||
box-shadow: 0 0 0 8px rgba(13, 143, 123, 0);
|
||
}
|
||
}
|
||
|
||
@keyframes finger-bounce-down {
|
||
0%,
|
||
100% {
|
||
transform: translateY(0);
|
||
}
|
||
50% {
|
||
transform: translateY(6px);
|
||
}
|
||
}
|
||
|
||
@keyframes finger-nudge-up {
|
||
0%,
|
||
100% {
|
||
transform: translateY(0);
|
||
}
|
||
50% {
|
||
transform: translateY(-6px);
|
||
}
|
||
}
|
||
|
||
@keyframes num-pop {
|
||
from {
|
||
transform: scale(0.7);
|
||
}
|
||
to {
|
||
transform: scale(1);
|
||
}
|
||
}
|
||
|
||
.toast {
|
||
position: fixed;
|
||
left: 50%;
|
||
bottom: calc(28px + var(--safe-bottom));
|
||
transform: translateX(-50%) translateY(10px);
|
||
padding: 9px 16px;
|
||
border-radius: 999px;
|
||
background: var(--toast-bg);
|
||
color: var(--toast-ink);
|
||
font-size: 0.8rem;
|
||
font-weight: 600;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||
z-index: 80;
|
||
box-shadow: var(--shadow);
|
||
}
|
||
|
||
.toast.show {
|
||
opacity: 1;
|
||
transform: translateX(-50%) translateY(0);
|
||
}
|
||
|
||
/* ===== nomadro 门户首页 ===== */
|
||
.view {
|
||
display: none;
|
||
position: relative;
|
||
z-index: 1;
|
||
min-height: 100vh;
|
||
}
|
||
.view.is-active {
|
||
display: block;
|
||
}
|
||
.is-hidden {
|
||
display: none !important;
|
||
}
|
||
.home-top {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: var(--app-pad-top) 20px 8px;
|
||
}
|
||
.home-brand {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
}
|
||
.home-logo {
|
||
width: 40px;
|
||
height: 40px;
|
||
}
|
||
.home-name {
|
||
margin: 0;
|
||
font-size: 1.45rem;
|
||
font-weight: 800;
|
||
letter-spacing: -0.03em;
|
||
color: var(--ink);
|
||
background: linear-gradient(135deg, #ff6b6b, #ffe66d 50%, #4ecdc4);
|
||
-webkit-background-clip: text;
|
||
background-clip: text;
|
||
}
|
||
@supports (-webkit-background-clip: text) or (background-clip: text) {
|
||
.home-name {
|
||
color: transparent;
|
||
}
|
||
}
|
||
.home-tag {
|
||
margin: 2px 0 0;
|
||
font-size: 0.78rem;
|
||
color: var(--ink-muted);
|
||
}
|
||
.home-lead {
|
||
margin: 8px 20px 4px;
|
||
color: var(--ink-muted);
|
||
font-size: 0.9rem;
|
||
}
|
||
.home-badge {
|
||
margin: 0 20px 16px;
|
||
font-size: 0.75rem;
|
||
color: var(--accent);
|
||
}
|
||
.home-cards {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 12px;
|
||
padding: 0 20px 40px;
|
||
}
|
||
.home-card {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
width: 100%;
|
||
text-align: left;
|
||
padding: 16px 16px;
|
||
border-radius: 18px;
|
||
border: 1px solid var(--line);
|
||
background: var(--surface);
|
||
color: var(--ink);
|
||
box-shadow: var(--shadow-card);
|
||
min-height: 72px;
|
||
}
|
||
.home-card-main {
|
||
border-color: rgba(78, 205, 196, 0.35);
|
||
background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(78, 205, 196, 0.12));
|
||
}
|
||
.home-card-emoji {
|
||
font-size: 1.6rem;
|
||
}
|
||
.home-card-body {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
.home-card-body strong {
|
||
font-size: 1.05rem;
|
||
}
|
||
.home-card-body em {
|
||
font-style: normal;
|
||
font-size: 0.8rem;
|
||
color: var(--ink-muted);
|
||
}
|
||
.home-card-go {
|
||
color: var(--accent);
|
||
font-size: 1.2rem;
|
||
}
|
||
.home-foot {
|
||
text-align: center;
|
||
padding: 8px 20px calc(24px + var(--safe-bottom));
|
||
color: var(--ink-faint);
|
||
font-size: 0.75rem;
|
||
}
|
||
.sub-page {
|
||
padding: 12px 16px calc(32px + var(--safe-bottom));
|
||
}
|
||
.module-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
.module-hero {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
padding: 8px 4px 12px;
|
||
}
|
||
.module-hero strong {
|
||
font-size: 1.1rem;
|
||
}
|
||
.module-hero em {
|
||
font-style: normal;
|
||
color: var(--ink-muted);
|
||
font-size: 0.8rem;
|
||
}
|
||
.module-item {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
width: 100%;
|
||
text-align: left;
|
||
padding: 14px 14px;
|
||
border-radius: 14px;
|
||
border: 1px solid var(--line);
|
||
background: var(--surface);
|
||
color: var(--ink);
|
||
}
|
||
.module-item-static {
|
||
align-items: flex-start;
|
||
}
|
||
.mi-emoji {
|
||
font-size: 1.4rem;
|
||
}
|
||
.mi-body {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
.mi-body em {
|
||
font-style: normal;
|
||
color: var(--ink-muted);
|
||
font-size: 0.78rem;
|
||
}
|
||
.mi-body p {
|
||
margin: 4px 0 0;
|
||
font-size: 0.85rem;
|
||
color: var(--ink-muted);
|
||
}
|
||
.book-reader {
|
||
padding: 8px 4px 40px;
|
||
line-height: 1.7;
|
||
}
|
||
.book-reader h2 {
|
||
margin: 12px 0;
|
||
}
|
||
.book-body {
|
||
color: var(--ink);
|
||
font-size: 0.95rem;
|
||
}
|
||
.text-back {
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--accent);
|
||
padding: 0;
|
||
font-size: 0.9rem;
|
||
}
|
||
.empty-hint {
|
||
padding: 24px 8px;
|
||
color: var(--ink-muted);
|
||
text-align: center;
|
||
}
|
||
.sheet-hint {
|
||
margin: 0 16px 8px;
|
||
font-size: 0.78rem;
|
||
color: var(--ink-muted);
|
||
}
|
||
|