.reader { position: relative; min-height: 100vh; background: #0c0b12; display: flex; flex-direction: column; /* 必须允许页面滚动,目录跳转依赖 pageScrollTo */ overflow: visible; --r-bg: #0c0b12; --r-bg2: #15101f; --r-text: #f3eefc; --r-muted: #b4a9c8; --r-accent: #ff7ab6; --r-accent2: #a78bfa; --r-soft: rgba(255, 255, 255, 0.06); --r-border: rgba(255, 255, 255, 0.1); --r-paper: rgba(28, 22, 45, 0.92); --r-chrome: rgba(12, 11, 18, 0.94); } .reader.theme-sepia { background: #f3e9d7; --r-bg: #f3e9d7; --r-bg2: #e8dcc4; --r-text: #3d2f1f; --r-muted: #8a7358; --r-accent: #c2410c; --r-accent2: #b45309; --r-soft: rgba(120, 80, 40, 0.08); --r-border: rgba(120, 80, 40, 0.16); --r-paper: rgba(255, 252, 245, 0.95); --r-chrome: rgba(243, 233, 215, 0.96); } .reader.theme-light { background: #f7f4fb; --r-bg: #f7f4fb; --r-bg2: #eee8f6; --r-text: #1e1630; --r-muted: #6d6286; --r-accent: #db2777; --r-accent2: #7c3aed; --r-soft: rgba(30, 22, 48, 0.05); --r-border: rgba(30, 22, 48, 0.1); --r-paper: rgba(255, 255, 255, 0.96); --r-chrome: rgba(247, 244, 251, 0.96); } .reader-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 260px at 10% -8%, rgba(167, 139, 250, 0.22), transparent 55%), radial-gradient(480px 240px at 100% 0%, rgba(244, 114, 182, 0.18), transparent 50%), linear-gradient(180deg, var(--r-bg2), var(--r-bg)); } .theme-sepia .reader-bg { background: radial-gradient(520px 260px at 12% -8%, rgba(194, 65, 12, 0.1), transparent 55%), linear-gradient(180deg, var(--r-bg2), var(--r-bg)); } .theme-light .reader-bg { background: radial-gradient(520px 260px at 12% -8%, rgba(219, 39, 119, 0.08), transparent 55%), linear-gradient(180deg, var(--r-bg2), var(--r-bg)); } .orb { position: absolute; border-radius: 50%; opacity: 0.35; animation: float-y 9s ease-in-out infinite; } .orb-a { width: 160px; height: 160px; left: -48px; top: 90px; background: radial-gradient(circle, rgba(167, 139, 250, 0.45), transparent 70%); } .orb-b { width: 180px; height: 180px; right: -56px; top: 400px; background: radial-gradient(circle, rgba(244, 114, 182, 0.35), transparent 70%); animation-delay: 1.2s; } .theme-sepia .orb-a, .theme-sepia .orb-b, .theme-light .orb-a, .theme-light .orb-b { opacity: 0.12; } .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; padding: calc(8px + var(--safe-status-bar, 0px)) 12px 8px; padding-right: max(12px, var(--safe-menu-pad, 12px)); display: flex; align-items: center; gap: 8px; background: var(--r-chrome); border-bottom: 1px solid var(--r-border); box-sizing: border-box; } .topbar-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--r-soft); overflow: hidden; } .topbar-progress-fill { height: 100%; background: linear-gradient(90deg, var(--r-accent), var(--r-accent2)); } .top-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--r-soft); border: 1px solid var(--r-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .top-ico { font-size: 22px; color: var(--r-text); line-height: 1; font-weight: 600; } .top-center { flex: 1; min-width: 0; } .top-title { display: block; font-size: 22px; color: var(--r-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; } .top-sub { display: block; margin-top: 1px; font-size: 16px; color: var(--r-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .content { position: relative; z-index: 2; box-sizing: border-box; width: 100%; } .paper { background: var(--r-paper); border: 1px solid var(--r-border); border-radius: 20px; margin: 68px 16px 36px; padding: 16px 14px 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); } .hero-card { padding: 4px 2px 12px; margin-bottom: 8px; border-bottom: 1px dashed var(--r-border); animation: fade-up 0.4s ease both; } .hero-emoji { display: block; font-size: 34px; line-height: 1; } .hero-title { display: block; margin-top: 6px; font-size: 30px; font-weight: 700; color: var(--r-text); line-height: 1.25; } .hero-sub { display: block; margin-top: 4px; font-size: 20px; color: var(--r-muted); line-height: 1.4; } .hero-stats { margin-top: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .stat { padding: 8px 2px; border-radius: 12px; background: var(--r-soft); text-align: center; } .stat-n { display: block; font-size: 20px; font-weight: 700; color: var(--r-text); line-height: 1.2; } .stat-l { display: block; margin-top: 1px; font-size: 14px; color: var(--r-muted); } .hero-tip { display: block; margin-top: 10px; text-align: center; font-size: 16px; color: var(--r-muted); } .chapter-block { padding-top: 4px; } .chapter-divider { display: flex; justify-content: center; margin: 18px 0 14px; } .chapter-divider-text { font-size: 18px; letter-spacing: 0.45em; color: var(--r-muted); opacity: 0.65; } .chapter-hero { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--r-border); } .chapter-hero-top { display: flex; align-items: center; justify-content: space-between; } .chapter-hero-emoji { font-size: 36px; line-height: 1; animation: float-y 2.4s ease-in-out infinite; } .chapter-ring { display: flex; align-items: baseline; gap: 2px; padding: 6px 12px; border-radius: 999px; background: var(--r-soft); border: 1px solid var(--r-border); } .chapter-ring-n { font-size: 22px; font-weight: 700; color: var(--r-accent); } .chapter-ring-t { font-size: 16px; color: var(--r-muted); } .chapter-title { display: block; margin-top: 8px; font-size: 28px; font-weight: 700; color: var(--r-text); line-height: 1.3; } .chapter-meta { display: block; margin-top: 4px; font-size: 18px; color: var(--r-muted); } .md-wrap { padding: 0; } .next-peek { margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--r-border); background: var(--r-soft); } .next-peek-label { display: block; font-size: 16px; letter-spacing: 0.12em; color: var(--r-muted); } .next-peek-title { display: block; margin-top: 4px; font-size: 24px; font-weight: 600; color: var(--r-text); line-height: 1.35; } .paywall-breath { margin: 28px 0 8px; text-align: center; } .paywall-breath-text { font-size: 22px; letter-spacing: 0.4em; color: var(--r-muted); opacity: 0.65; } .paywall-spacer { height: 28vh; min-height: 120px; max-height: 240px; } .paywall-gate { height: 1px; width: 100%; margin-top: 48px; opacity: 0; } .paywall { margin-top: 8px; margin-bottom: 24px; } .paywall-soft { animation: paywall-in 720ms ease-out both; } @keyframes paywall-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } } .paywall-card { border-radius: 18px; padding: 22px 16px 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)); border: 1px solid var(--r-border); display: flex; flex-direction: column; align-items: center; } .theme-sepia .paywall-card, .theme-light .paywall-card { background: var(--r-soft); } .paywall-emoji { font-size: 28px; line-height: 1; letter-spacing: 2px; color: var(--r-muted); } .paywall-title { margin-top: 6px; font-size: 26px; font-weight: 700; color: var(--r-text); } .paywall-desc { margin-top: 6px; font-size: 20px; color: var(--r-muted); text-align: center; line-height: 1.45; max-width: 92%; } .unlock-btn { width: 100%; margin-top: 16px; height: 72px; line-height: 72px; border-radius: 999px !important; background: linear-gradient(135deg, #fff, #fce7f3) !important; color: #3b0764 !important; font-size: 26px !important; font-weight: 700 !important; border: none !important; } .unlock-btn::after { border: none; } .paywall-price { margin-top: 8px; font-size: 20px; color: var(--r-accent2); } .fin { margin: 28px 0 8px; padding: 20px 10px 8px; text-align: center; border-top: 1px dashed var(--r-border); } .fin-emoji { display: block; font-size: 32px; } .fin-title { display: block; margin-top: 6px; font-size: 26px; color: var(--r-text); font-weight: 700; } .fin-desc { display: block; margin-top: 4px; font-size: 18px; color: var(--r-muted); font-style: italic; } .fin-actions { margin-top: 14px; display: flex; gap: 10px; justify-content: center; } .fin-btn { padding: 12px 20px; border-radius: 999px; background: linear-gradient(135deg, var(--r-accent), var(--r-accent2)); color: #fff; font-size: 22px; font-weight: 600; } .fin-btn.ghost { background: var(--r-soft); border: 1px solid var(--r-border); color: var(--r-text); } .content-spacer { height: 20px; } .top-fab { position: fixed; right: 18px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--r-paper); border: 1px solid var(--r-border); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); } .top-fab-text { font-size: 26px; color: var(--r-accent); font-weight: 700; } .drawer-mask { position: fixed; inset: 0; background: rgba(8, 6, 14, 0.55); z-index: 100; } .drawer { width: 78%; max-width: 540px; height: 100%; background: radial-gradient(360px 180px at 0% 0%, rgba(167, 139, 250, 0.18), transparent 55%), linear-gradient(180deg, #1a1428, #120e1c 40%, #0c0b12); padding: 22px 0 12px; box-sizing: border-box; animation: drawer-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; display: flex; flex-direction: column; color: #f3eefc; } .drawer.theme-sepia { background: linear-gradient(180deg, #f6edd9, #efe3cb); color: #3d2f1f; } .drawer.theme-light { background: linear-gradient(180deg, #faf8ff, #f0ebf8); color: #1e1630; } @keyframes drawer-in { from { transform: translateX(-100%); } to { transform: translateX(0); } } .drawer-hero { padding: 0 16px 10px; } .drawer-brand { display: block; font-size: 16px; letter-spacing: 1px; color: var(--r-accent); } .drawer-title { display: block; margin-top: 2px; font-size: 28px; font-weight: 700; } .drawer-meter { margin-top: 10px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; } .theme-sepia .drawer-meter, .theme-light .drawer-meter { background: rgba(0, 0, 0, 0.08); } .drawer-meter-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--r-accent), var(--r-accent2)); } .drawer-stats { margin-top: 6px; display: flex; justify-content: space-between; font-size: 16px; color: var(--r-muted); } .drawer-search { margin-top: 10px; height: 56px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--r-border); font-size: 22px; color: inherit; } .theme-sepia .drawer-search, .theme-light .drawer-search { background: rgba(0, 0, 0, 0.04); } .drawer-search-ph { color: var(--r-muted); font-size: 22px; } .drawer-list { flex: 1; height: 0; padding: 4px 10px 24px; box-sizing: border-box; } .drawer-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px; margin-bottom: 2px; border-radius: 12px; } .drawer-item.active { background: rgba(255, 122, 182, 0.12); } .theme-sepia .drawer-item.active { background: rgba(194, 65, 12, 0.1); } .theme-light .drawer-item.active { background: rgba(219, 39, 119, 0.08); } .drawer-item.locked { opacity: 0.48; } .drawer-idx { font-size: 18px; color: var(--r-muted); font-weight: 600; padding-top: 2px; min-width: 36px; } .drawer-body { flex: 1; min-width: 0; } .drawer-name { display: block; font-size: 24px; line-height: 1.35; } .drawer-lock-tip { display: block; margin-top: 2px; font-size: 16px; color: #d4a574; } @keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } @keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* H5:wemini 按 750 稿数值,pxtransform 关闭后需缩到真实 CSS px */ .taro_h5 .reader, .reader.reader--h5 { .chapter-block, #paywall, [data-anchor] { scroll-margin-top: 72px; } .top-btn { width: 40px; height: 40px; border-radius: 10px; } .top-ico, .top-title { font-size: 14px; } .top-sub { font-size: 11px; } .paper { margin: 60px 12px 28px; padding: 14px 12px 16px; border-radius: 16px; } .hero-emoji { font-size: 28px; } .hero-title { font-size: 20px; } .hero-sub { font-size: 13px; } .stat-n { font-size: 14px; } .stat-l, .hero-tip { font-size: 11px; } .chapter-divider-text { font-size: 12px; } .chapter-hero-emoji { font-size: 26px; } .chapter-ring { padding: 4px 10px; } .chapter-ring-n { font-size: 13px; } .chapter-ring-t { font-size: 11px; } .chapter-title { font-size: 18px; } .chapter-meta { font-size: 12px; } .next-peek-label { font-size: 11px; } .next-peek-title { font-size: 14px; } .paywall-breath-text { font-size: 14px; } .paywall-emoji { font-size: 18px; } .paywall-title { font-size: 17px; } .paywall-desc { font-size: 13px; } .unlock-btn { height: 44px !important; line-height: 44px !important; font-size: 15px !important; } .paywall-price { font-size: 13px; } .fin-emoji { font-size: 22px; } .fin-title { font-size: 17px; } .fin-desc { font-size: 13px; } .fin-btn { padding: 10px 16px; font-size: 13px; } .top-fab { width: 44px; height: 44px; right: 14px; } .top-fab-text { font-size: 18px; } .drawer-brand { font-size: 11px; } .drawer-title { font-size: 18px; } .drawer-stats { font-size: 12px; } .drawer-search { height: 40px; font-size: 14px; } .drawer-search-ph { font-size: 14px; } .drawer-idx { font-size: 12px; min-width: 28px; } .drawer-name { font-size: 14px; } .drawer-lock-tip { font-size: 11px; } .drawer-item { padding: 10px 8px; } }