sync update from LAN repo (source master @ ca48c4ec)

This commit is contained in:
gozeros committed 2026-11-05 10:53:54 +08:00
1 parent 8bc8b0e082
commit ea9dcff9c0
873 files changed
+107866 -14011

No files matched your search

@@ -0,0 +1,364 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#08080a" />
<meta name="description" content="TikTok 风格的可编辑沉浸式短视频信息流。" />
<title>TikTok · 刷新此刻</title>
<style>
:root {
color-scheme: dark;
--bg: #08080a;
--surface: #121216;
--surface-2: #1b1b21;
--surface-3: #24242b;
--text: #f7f7f8;
--muted: #a7a7b1;
--line: rgba(255,255,255,.1);
--pink: #ff2d55;
--cyan: #22d3ee;
--accent: #ff3b5c;
--focus: 0 0 0 3px rgba(34,211,238,.42);
--header-h: 64px;
--side-w: 224px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; overflow: hidden; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.45; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, [role="button"] { cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: none; box-shadow: var(--focus); }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 500; left: 14px; top: calc(var(--df-generated-header-height, 0px) + 10px); padding: 10px 15px; border-radius: 10px; color: #fff; background: var(--pink); transform: translateY(-160%); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.app-header { position: fixed; z-index: 80; inset: var(--df-generated-header-height, 0px) 0 auto; height: var(--header-h); padding: 0 22px; display: grid; grid-template-columns: 1fr minmax(280px, 450px) 1fr; align-items: center; gap: 24px; background: rgba(8,8,10,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 23px; font-weight: 850; letter-spacing: -.7px; }
.brand-mark { position: relative; width: 32px; height: 32px; display: grid; place-items: center; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 18px; height: 22px; border: 4px solid currentColor; border-radius: 5px 9px 11px 6px; transform: rotate(-7deg); }
.brand-mark::before { color: var(--cyan); translate: -3px 1px; }
.brand-mark::after { color: var(--pink); translate: 3px -1px; }
.brand-mark span { position: relative; z-index: 2; width: 17px; height: 21px; border: 4px solid #fff; border-top-color: transparent; border-radius: 4px 8px 10px 5px; transform: rotate(-7deg); }
.search-wrap { position: relative; width: 100%; }
.search-wrap svg { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; color: var(--muted); transform: translateY(-50%); }
.search-input { width: 100%; height: 44px; padding: 0 16px 0 45px; border: 1px solid transparent; border-radius: 999px; color: var(--text); background: var(--surface-2); outline: 0; font-size: 16px; transition: border-color .18s, background .18s; }
.search-input:focus { border-color: var(--cyan); background: var(--surface); }
.header-actions { padding-right: 52px; justify-self: end; display: flex; align-items: center; gap: 9px; }
.upload-button { min-height: 44px; padding: 0 17px; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; display: flex; align-items: center; gap: 7px; color: var(--text); background: transparent; font-weight: 700; transition: background .18s; }
.upload-button:hover { background: var(--surface-2); }
.upload-button svg { width: 18px; height: 18px; }
.icon-button { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: transparent; transition: background .18s, transform .18s; }
.icon-button:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-button svg { width: 22px; height: 22px; }
.header-badge { position: absolute; right: 2px; top: 1px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--pink); border: 2px solid var(--bg); font-size: 9px; font-weight: 800; }
.avatar { --a:#764cff; --b:#ff3b8d; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,var(--a),var(--b)); font-size: 14px; font-weight: 850; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }
.avatar-lg { width: 48px; height: 48px; }
.left-sidebar { position: fixed; z-index: 45; left: 0; top: calc(var(--df-generated-header-height, 0px) + var(--header-h)); bottom: 0; width: var(--side-w); padding: 18px 12px 18px 16px; overflow-y: auto; background: var(--bg); border-right: 1px solid var(--line); scrollbar-width: none; }
.left-sidebar::-webkit-scrollbar { display: none; }
.side-nav { display: grid; gap: 4px; }
.nav-link { min-height: 50px; padding: 0 13px; border-radius: 9px; display: flex; align-items: center; gap: 13px; color: var(--text); text-decoration: none; font-size: 17px; font-weight: 650; transition: background .18s; }
.nav-link:hover { background: var(--surface-2); }
.nav-link.active { color: var(--pink); background: rgba(255,45,85,.09); }
.nav-link svg { width: 23px; height: 23px; }
.login-card { margin-top: 16px; padding: 17px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.login-card p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.login-button { width: 100%; height: 44px; border: 1px solid var(--pink); border-radius: 8px; color: var(--pink); background: transparent; font-weight: 750; transition: color .18s, background .18s; }
.login-button:hover { color: #fff; background: var(--pink); }
.side-section { padding: 18px 4px 0; }
.side-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.following-row { min-height: 50px; padding: 7px 8px; display: flex; align-items: center; gap: 10px; border-radius: 9px; }
.following-row:hover { background: var(--surface-2); }
.following-copy { min-width: 0; }
.following-copy strong, .following-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.following-copy strong { font-size: 13px; }
.following-copy span { color: var(--muted); font-size: 11px; }
.side-footer { margin-top: 22px; padding: 0 9px; color: #6e6e78; font-size: 11px; line-height: 1.7; }
.channel-tabs { position: fixed; z-index: 55; top: calc(var(--df-generated-header-height, 0px) + var(--header-h) + 10px); left: calc(var(--side-w) + 50%); transform: translateX(-50%); height: 46px; padding: 4px; display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,18,22,.82); backdrop-filter: blur(12px); }
.channel-tab { position: relative; height: 42px; min-width: 80px; padding: 0 15px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-weight: 650; }
.channel-tab.active { color: #fff; background: var(--surface-3); }
.feed-shell { height: calc(100dvh - var(--df-generated-header-height, 0px)); padding-top: var(--header-h); padding-left: var(--side-w); background: radial-gradient(circle at 52% 30%, rgba(45,43,61,.5), transparent 38%); }
.feed-scroll { position: relative; height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-width: none; }
.feed-scroll::-webkit-scrollbar { display: none; }
.video-section { position: relative; min-height: calc(100dvh - var(--df-generated-header-height, 0px) - var(--header-h)); scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; padding: 18px 120px 18px 40px; }
.video-layout { position: relative; height: min(790px, calc(100dvh - 100px)); aspect-ratio: 9/16; }
.video-card { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 15px; background: #111; box-shadow: 0 24px 65px rgba(0,0,0,.45); isolation: isolate; }
.video-card::after { content: ""; position: absolute; z-index: 2; inset: 34% 0 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(0,0,0,.06) 24%, rgba(0,0,0,.82)); }
.video-visual { position: absolute; inset: 0; z-index: 0; }
.video-visual svg { width: 100%; height: 100%; }
.video-card.paused .animate, .video-card.paused .float, .video-card.paused .drift, .video-card.paused .pulse { animation-play-state: paused !important; }
.float { transform-box: fill-box; transform-origin: center; animation: float 4.8s ease-in-out infinite alternate; }
.drift { transform-box: fill-box; transform-origin: center; animation: drift 6s ease-in-out infinite alternate; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-in-out infinite; }
.animate { transform-box: fill-box; transform-origin: center; animation: slow-rotate 20s linear infinite; }
@keyframes float { from { transform: translateY(-8px) rotate(-1deg); } to { transform: translateY(15px) rotate(2deg); } }
@keyframes drift { from { transform: translateX(-20px); } to { transform: translateX(24px); } }
@keyframes pulse { 0%,100% { transform: scale(.92); opacity:.7; } 50% { transform: scale(1.08); opacity:1; } }
@keyframes slow-rotate { to { transform: rotate(360deg); } }
.video-top { position: absolute; z-index: 5; top: 12px; right: 12px; display: flex; gap: 7px; }
.glass-button { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(10,10,12,.38); backdrop-filter: blur(10px); }
.glass-button:hover { background: rgba(10,10,12,.62); }
.glass-button svg { width: 19px; height: 19px; }
.play-indicator { position: absolute; z-index: 6; left: 50%; top: 50%; width: 72px; height: 72px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.36); backdrop-filter: blur(8px); opacity: 0; transform: translate(-50%,-50%) scale(.8); pointer-events: none; transition: opacity .2s, transform .2s; }
.video-card.paused .play-indicator { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.play-indicator svg { width: 30px; height: 30px; fill: currentColor; }
.video-copy { position: absolute; z-index: 5; left: 18px; right: 70px; bottom: 20px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.author-line { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.author-line strong { font-size: 16px; }
.follow-inline { min-width: 58px; height: 44px; padding: 0 10px; border: 1px solid rgba(255,255,255,.78); border-radius: 7px; color: #fff; background: rgba(0,0,0,.14); font-size: 12px; font-weight: 750; }
.follow-inline.following { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.16); }
.video-copy p { margin: 0 0 9px; font-size: 14px; line-height: 1.5; }
.video-copy a { color: #fff; font-weight: 750; text-decoration: none; }
.music-line { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.music-line svg { width: 15px; height: 15px; }
.progress { position: absolute; z-index: 6; left: 10px; right: 10px; bottom: 4px; height: 2px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.26); }
.progress span { display: block; width: 0; height: 100%; background: #fff; animation: progress 14s linear infinite; }
.video-card.paused .progress span { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.action-rail { position: absolute; z-index: 10; left: calc(100% + 16px); bottom: 14px; width: 64px; display: grid; justify-items: center; gap: 11px; }
.creator-action { position: relative; margin-bottom: 3px; }
.creator-action .avatar { width: 52px; height: 52px; border: 2px solid #fff; }
.follow-plus { position: absolute; left: 50%; bottom: -20px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: transparent; transform: translateX(-50%); }
.follow-plus::before { content: ""; position: absolute; inset: 10px; border: 2px solid #101014; border-radius: 50%; background: var(--pink); }
.follow-plus svg { position: relative; z-index: 1; width: 12px; height: 12px; }
.rail-button { min-width: 58px; border: 0; display: grid; justify-items: center; gap: 4px; color: #fff; background: transparent; font-size: 11px; }
.rail-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); box-shadow: 0 5px 15px rgba(0,0,0,.2); transition: transform .18s, background .18s; }
.rail-button:hover .rail-icon { transform: translateY(-2px); background: #30303a; }
.rail-button svg { width: 24px; height: 24px; }
.rail-button.liked .rail-icon { color: var(--pink); }
.rail-button.liked svg, .rail-button.saved svg { fill: currentColor; }
.rail-count { font-variant-numeric: tabular-nums; }
.record { width: 48px; height: 48px; margin-top: 3px; border-radius: 50%; display: grid; place-items: center; background: repeating-radial-gradient(circle,#17171b 0 3px,#303038 4px 6px); box-shadow: 0 0 0 7px rgba(255,255,255,.07); animation: slow-rotate 4s linear infinite; }
.record .avatar { width: 25px; height: 25px; font-size: 9px; }
.feed-arrow { position: fixed; z-index: 40; right: 28px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(27,27,33,.8); backdrop-filter: blur(8px); }
.feed-arrow:hover { background: var(--surface-3); }
.feed-arrow svg { width: 22px; height: 22px; }
.feed-prev { top: 45%; transform: translateY(-62px); }
.feed-next { top: 45%; transform: translateY(8px); }
.comments-backdrop { position: fixed; z-index: 110; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.comments-backdrop.open { opacity: 1; visibility: visible; }
.comments-drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(430px, 100%); display: flex; flex-direction: column; background: #111115; border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .24s ease-out; }
.comments-backdrop.open .comments-drawer { transform: translateX(0); }
.drawer-head { min-height: 64px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 17px; }
.comments-list { flex: 1; overflow-y: auto; padding: 14px 16px; }
.comment { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; padding: 10px 0; }
.comment-copy { min-width: 0; }
.comment-copy strong { font-size: 13px; }
.comment-copy p { margin: 3px 0 4px; font-size: 14px; }
.comment-copy time { color: var(--muted); font-size: 11px; }
.comment-like { width: 44px; height: 44px; border: 0; display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--muted); background: transparent; font-size: 9px; }
.comment-like svg { width: 16px; height: 16px; }
.comment-like.liked { color: var(--pink); }
.comment-like.liked svg { fill: currentColor; }
.comment-form { padding: 12px 14px max(12px,env(safe-area-inset-bottom)); display: flex; gap: 8px; border-top: 1px solid var(--line); }
.comment-form input { flex: 1; min-width: 0; height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); background: var(--surface-2); outline: 0; font-size: 16px; }
.comment-send { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--pink); }
.comment-send svg { width: 19px; height: 19px; }
.share-sheet { position: fixed; z-index: 125; left: 50%; bottom: 26px; width: min(460px, calc(100vw - 28px)); padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); box-shadow: 0 22px 70px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translate(-50%,18px); transition: opacity .2s, visibility .2s, transform .2s; }
.share-sheet.open { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.share-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.share-head h2 { margin: 0; font-size: 17px; }
.share-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.share-option { min-height: 78px; padding: 8px 4px; border: 0; border-radius: 12px; display: grid; justify-items: center; align-content: center; gap: 7px; color: var(--text); background: var(--surface-3); font-size: 11px; }
.share-option:hover { background: #30303a; }
.share-option svg { width: 23px; height: 23px; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 25px; padding: 10px 16px; border-radius: 8px; color: #fff; background: #24242b; box-shadow: 0 12px 35px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translate(-50%,12px); transition: opacity .18s, visibility .18s, transform .18s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.heart-burst { position: absolute; z-index: 8; left: 50%; top: 50%; color: var(--pink); opacity: 0; pointer-events: none; transform: translate(-50%,-50%) scale(.4) rotate(-12deg); }
.heart-burst svg { width: 110px; height: 110px; fill: currentColor; filter: drop-shadow(0 9px 18px rgba(0,0,0,.35)); }
.heart-burst.show { animation: heart-pop .7s ease-out; }
@keyframes heart-pop { 0% { opacity:0; transform:translate(-50%,-50%) scale(.35) rotate(-15deg); } 40% { opacity:1; transform:translate(-50%,-50%) scale(1.15) rotate(6deg); } 75% { opacity:1; transform:translate(-50%,-50%) scale(.95); } 100% { opacity:0; transform:translate(-50%,-50%) scale(1); } }
.mobile-nav { display: none; }
@media (max-width: 1040px) {
:root { --side-w: 78px; }
.left-sidebar { padding-inline: 10px; }
.nav-link { padding: 0; justify-content: center; }
.nav-link span, .login-card, .side-section, .side-footer { display: none; }
.channel-tabs { left: calc(var(--side-w) + 50%); }
}
@media (max-width: 720px) {
:root { --header-h: 0px; --side-w: 0px; }
.app-header, .left-sidebar, .feed-arrow { display: none; }
.feed-shell { height: calc(100dvh - var(--df-generated-header-height, 0px)); padding: 0; }
.feed-scroll { height: 100dvh; }
.video-section { min-height: calc(100dvh - var(--df-generated-header-height, 0px)); padding: 0; }
.video-layout { width: 100%; height: 100dvh; aspect-ratio: auto; }
.video-card { border-radius: 0; box-shadow: none; }
.video-card::after { inset: 34% 0 0; }
.channel-tabs { top: calc(var(--df-generated-header-height, 0px) + max(10px,env(safe-area-inset-top))); left: 50%; border: 0; background: transparent; backdrop-filter: none; }
.channel-tab { min-width: 72px; color: rgba(255,255,255,.72); text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.channel-tab.active { color: #fff; background: rgba(0,0,0,.28); backdrop-filter: blur(7px); }
.video-top { top: max(62px,calc(env(safe-area-inset-top) + 55px)); }
.video-copy { left: 14px; right: 78px; bottom: calc(72px + env(safe-area-inset-bottom)); }
.video-copy p { font-size: 14px; }
.action-rail { position: absolute; left: auto; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); width: 58px; gap: 8px; }
.rail-icon { width: 46px; height: 46px; background: rgba(20,20,24,.55); backdrop-filter: blur(6px); }
.record { width: 44px; height: 44px; }
.mobile-nav { position: fixed; z-index: 70; inset: auto 0 0; height: calc(58px + env(safe-area-inset-bottom)); padding: 2px 8px max(3px,env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); background: linear-gradient(180deg,transparent,rgba(0,0,0,.72) 38%,rgba(0,0,0,.94)); }
.mobile-nav button { min-height: 50px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: rgba(255,255,255,.72); background: transparent; font-size: 10px; }
.mobile-nav button.active { color: #fff; }
.mobile-nav svg { width: 22px; height: 22px; }
.mobile-create { width: 46px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: #08080a; background: #fff; box-shadow: -4px 0 var(--cyan),4px 0 var(--pink); }
.mobile-create svg { width: 17px; height: 17px; }
.comments-drawer { top: auto; width: 100%; height: min(72dvh,640px); border-left: 0; border-radius: 18px 18px 0 0; transform: translateY(100%); }
.comments-backdrop.open .comments-drawer { transform: translateY(0); }
.share-sheet { bottom: calc(68px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 390px) {
.video-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rail-count { font-size: 10px; }
.creator-action .avatar { width: 48px; height: 48px; }
}
.settings-trigger { position: fixed; z-index: 90; top: calc(var(--df-generated-header-height, 0px) + 16px); right: 18px; width: 46px; height: 46px; border: 1px solid var(--border-strong); border-radius: 50%; display: grid; place-items: center; color: var(--text); background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 8px 24px rgba(15,20,25,.14); backdrop-filter: blur(12px); transition: transform .18s, background .18s; }
.settings-trigger:hover { background: var(--soft); transform: rotate(12deg); }
.settings-trigger svg { width: 21px; height: 21px; }
.settings-backdrop { position: fixed; z-index: 300; inset: 0; padding: 28px; display: grid; place-items: center; background: rgba(15,20,25,.72); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.settings-backdrop.open { opacity: 1; visibility: visible; }
.settings-panel { width: min(1180px, 100%); height: min(780px, calc(100dvh - 56px)); overflow: hidden; display: grid; grid-template-rows: auto minmax(0,1fr) auto; border: 1px solid #536471; border-radius: 18px; color: #e7e9ea; background: #000; box-shadow: 0 32px 100px rgba(0,0,0,.54); }
.settings-head { min-height: 82px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2f3336; }
.settings-kicker { color: #1d9bf0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.settings-head h2 { margin: 2px 0 0; font-size: 26px; }
.settings-close { width: 44px; height: 44px; border: 1px solid #536471; border-radius: 12px; display: grid; place-items: center; color: #e7e9ea; background: #0f1419; }
.settings-close:hover { background: #16181c; }
.settings-close svg { width: 22px; height: 22px; }
.settings-body { min-height: 0; display: grid; grid-template-columns: 250px minmax(0,1fr); }
.module-tabs { min-height: 0; padding: 18px; overflow-y: auto; border-right: 1px solid #2f3336; background: #080808; }
.module-tabs h3 { margin: 0 0 12px; color: #71767b; font-size: 13px; font-weight: 650; }
.module-tab { width: 100%; min-height: 54px; margin-bottom: 8px; padding: 8px 12px; border: 1px solid transparent; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #e7e9ea; background: transparent; text-align: left; }
.module-tab:hover { background: #16181c; }
.module-tab.active { border-color: #1d9bf0; color: #fff; background: #031b2b; }
.module-tab small { color: #71767b; font-size: 11px; }
.editor-pane { min-width: 0; min-height: 0; padding: 18px 20px 16px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 10px; }
.editor-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.editor-title strong { font-size: 17px; }
.editor-title span { color: #71767b; font-size: 13px; }
.json-editor { width: 100%; min-height: 0; padding: 16px; resize: none; border: 1px solid #2f3336; border-radius: 12px; outline: 0; color: #d6f1ff; background: #05090d; font: 14px/1.62 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; tab-size: 2; }
.json-editor:focus { border-color: #1d9bf0; box-shadow: 0 0 0 3px rgba(29,155,240,.18); }
.editor-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #71767b; font-size: 12px; }
.json-status { font-weight: 750; }
.json-status.valid { color: #00ba7c; }
.json-status.invalid { color: #f4212e; }
.settings-actions { min-height: 76px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #2f3336; }
.action-group { display: flex; flex-wrap: wrap; gap: 10px; }
.settings-button { min-height: 44px; padding: 0 17px; border: 1px solid #536471; border-radius: 999px; color: #e7e9ea; background: transparent; font-weight: 700; }
.settings-button:hover { background: #16181c; }
.settings-button.primary { border-color: #1d9bf0; color: #fff; background: #1d9bf0; }
.settings-button.primary:hover { background: #1a8cd8; }
.settings-button.danger { color: #f4212e; }
@media (max-width: 760px) {
.settings-trigger { top: calc(var(--df-generated-header-height, 0px) + 7px); right: 60px; width: 40px; height: 40px; }
.settings-backdrop { padding: 0; }
.settings-panel { width: 100%; height: 100dvh; border: 0; border-radius: 0; }
.settings-head { min-height: 68px; padding: 12px 14px; }
.settings-head h2 { font-size: 21px; }
.settings-body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
.module-tabs { padding: 10px 12px 2px; display: flex; gap: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #2f3336; }
.module-tabs h3 { display: none; }
.module-tab { width: auto; min-width: max-content; min-height: 40px; margin: 0 0 8px; padding: 6px 10px; }
.module-tab small { display: none; }
.editor-pane { padding: 12px; }
.settings-actions { min-height: 70px; padding: 10px 12px; }
.settings-button { min-height: 42px; padding: 0 13px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
.progress span { width: 40%; }
}
.skip-link { transform: translateY(calc(-100% - var(--df-generated-header-height, 0px) - 24px)); }
.skip-link:focus { transform: translateY(0); }
.comments-backdrop { z-index: 1200; }
.share-sheet { z-index: 1250; }
.settings-backdrop { z-index: 1300; }
</style>
</head>
<body>
<a class="skip-link" href="#videoFeed">跳到视频流</a>
<svg aria-hidden="true" width="0" height="0" style="position:absolute">
<symbol id="i-home" viewBox="0 0 24 24"><path d="m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
<symbol id="i-compass" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="2"/><path d="m15.5 8.5-2 5-5 2 2-5Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
<symbol id="i-users" viewBox="0 0 24 24"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm13 10v-2a4 4 0 0 0-3-3.87" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol>
<symbol id="i-live" viewBox="0 0 24 24"><rect x="3" y="5" width="18" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="m9 9 6 3-6 3Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
<symbol id="i-user" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4" fill="none" stroke="currentColor" stroke-width="2"/><path d="M4 21a8 8 0 0 1 16 0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol>
<symbol id="i-search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="7" fill="none" stroke="currentColor" stroke-width="2"/><path d="m16.2 16.2 4.2 4.2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol>
<symbol id="i-upload" viewBox="0 0 24 24"><path d="M12 16V3m0 0L7 8m5-5 5 5M5 13v7h14v-7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-message" viewBox="0 0 24 24"><path d="M4 5h16v12H8l-4 4Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
<symbol id="i-bell" viewBox="0 0 24 24"><path d="M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9ZM10 21h4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14" fill="none" stroke="currentColor" stroke-width="2.3" stroke-linecap="round"/></symbol>
<symbol id="i-heart" viewBox="0 0 24 24"><path d="M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8l1.1 1.1L12 21l7.8-7.5 1.1-1.1a5.5 5.5 0 0 0-.1-7.8Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
<symbol id="i-comment" viewBox="0 0 24 24"><path d="M21 12a8.5 8.5 0 0 1-9 8.5 9 9 0 0 1-3.7-.8L4 21l1.2-3.8A8.5 8.5 0 1 1 21 12Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
<symbol id="i-bookmark" viewBox="0 0 24 24"><path d="M6 3h12a1 1 0 0 1 1 1v17l-7-4-7 4V4a1 1 0 0 1 1-1Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
<symbol id="i-share" viewBox="0 0 24 24"><circle cx="18" cy="5" r="3" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="6" cy="12" r="3" fill="none" stroke="currentColor" stroke-width="2"/><circle cx="18" cy="19" r="3" fill="none" stroke="currentColor" stroke-width="2"/><path d="m8.7 10.7 6.6-4.2m-6.6 6.8 6.6 4.2" fill="none" stroke="currentColor" stroke-width="2"/></symbol>
<symbol id="i-music" viewBox="0 0 24 24"><path d="M9 18V5l11-2v13M9 18a3 3 0 1 1-3-3h3m11 1a3 3 0 1 1-3-3h3" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-volume" viewBox="0 0 24 24"><path d="M11 5 6 9H2v6h4l5 4Zm5 4a4 4 0 0 1 0 6m3-9a8 8 0 0 1 0 12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-mute" viewBox="0 0 24 24"><path d="M11 5 6 9H2v6h4l5 4Zm4 5 6 6m0-6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-play" viewBox="0 0 24 24"><path d="m8 5 11 7-11 7Z" fill="currentColor"/></symbol>
<symbol id="i-chevron" viewBox="0 0 24 24"><path d="m8 10 4 4 4-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-close" viewBox="0 0 24 24"><path d="m6 6 12 12M18 6 6 18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol>
<symbol id="i-send" viewBox="0 0 24 24"><path d="m22 2-7 20-4-9-9-4Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M22 2 11 13" fill="none" stroke="currentColor" stroke-width="2"/></symbol>
<symbol id="i-link" viewBox="0 0 24 24"><path d="M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol>
<symbol id="i-code" viewBox="0 0 24 24"><path d="m8 9-4 3 4 3m8-6 4 3-4 3m-2-9-4 12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
<symbol id="i-flag" viewBox="0 0 24 24"><path d="M5 21V4m0 1h11l-2 4 2 4H5" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
<symbol id="i-settings" viewBox="0 0 24 24"><path d="M12 15.2a3.2 3.2 0 1 0 0-6.4 3.2 3.2 0 0 0 0 6.4Z" fill="none" stroke="currentColor" stroke-width="2"/><path d="M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.86 2.86-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .6 1.7 1.7 0 0 0-.4 1.1V21H9.55v-.09A1.7 1.7 0 0 0 8.5 19.4a1.7 1.7 0 0 0-1.88.34l-.06.06-2.86-2.86.06-.06A1.7 1.7 0 0 0 4.1 15a1.7 1.7 0 0 0-.6-1 1.7 1.7 0 0 0-1.1-.4H2.3V9.55h.09A1.7 1.7 0 0 0 4.1 8.5a1.7 1.7 0 0 0-.34-1.88l-.06-.06L6.56 3.7l.06.06A1.7 1.7 0 0 0 8.5 4.1a1.7 1.7 0 0 0 1-.6 1.7 1.7 0 0 0 .4-1.1V2.3h4.05v.09A1.7 1.7 0 0 0 15 4.1a1.7 1.7 0 0 0 1.88-.34l.06-.06 2.86 2.86-.06.06A1.7 1.7 0 0 0 19.4 8.5a1.7 1.7 0 0 0 .6 1c.3.26.7.4 1.1.4h.1v4.05h-.09A1.7 1.7 0 0 0 19.4 15Z" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></symbol>
</svg>
<header class="app-header">
<a class="brand" id="brandLink" href="#videoFeed" aria-label="TikTok 首页"><span class="brand-mark"><span></span></span><span id="brandText">TikTok</span></a>
<label class="search-wrap"><span class="sr-only">搜索视频</span><svg><use href="#i-search"/></svg><input id="searchInput" class="search-input" type="search" placeholder="搜索你感兴趣的内容" /></label>
<div class="header-actions"><button class="upload-button" id="uploadButton"><svg><use href="#i-upload"/></svg><span>上传</span></button><button class="icon-button" aria-label="消息"><svg><use href="#i-message"/></svg></button><button class="icon-button" aria-label="通知"><svg><use href="#i-bell"/></svg><span class="header-badge" id="notificationBadge">3</span></button><span id="headerUser"></span></div>
</header>
<aside class="left-sidebar" aria-label="侧边导航">
<nav class="side-nav" id="sideNav"></nav>
<div class="login-card"><p id="loginPrompt"></p><button class="login-button" id="loginButton"></button></div>
<section class="side-section"><div class="side-title"><span id="sidebarTitle"></span></div><div id="sidebarRecommendations"></div></section>
<footer class="side-footer" id="sideFooter"></footer>
</aside>
<div class="channel-tabs" id="channelTabs" role="tablist"></div>
<main class="feed-shell" id="videoFeed">
<h1 class="sr-only" id="feedTitle">TikTok 短视频推荐流</h1>
<div class="feed-scroll" id="feedScroll"></div>
<button class="feed-arrow feed-prev" id="prevVideo" aria-label="上一个视频"><svg style="transform:rotate(180deg)"><use href="#i-chevron"/></svg></button><button class="feed-arrow feed-next" id="nextVideo" aria-label="下一个视频"><svg><use href="#i-chevron"/></svg></button>
</main>
<nav class="mobile-nav" id="mobileNav" aria-label="移动端导航"></nav>
<div class="comments-backdrop" id="commentsBackdrop" aria-hidden="true"><section class="comments-drawer" role="dialog" aria-modal="true" aria-labelledby="commentsTitle"><header class="drawer-head"><h2 id="commentsTitle"></h2><button class="icon-button" id="closeComments" aria-label="关闭评论"><svg><use href="#i-close"/></svg></button></header><div class="comments-list" id="commentsList"></div><form class="comment-form"><label class="sr-only" for="commentInput">发表评论</label><input id="commentInput" maxlength="120" placeholder="说点什么…" /><button class="comment-send" aria-label="发送评论"><svg><use href="#i-send"/></svg></button></form></section></div>
<section class="share-sheet" id="shareSheet" aria-hidden="true"><header class="share-head"><h2 id="shareTitle"></h2><button class="icon-button" id="closeShare" aria-label="关闭分享"><svg><use href="#i-close"/></svg></button></header><div class="share-options" id="shareOptions"></div></section>
<button class="settings-trigger" id="openSettings" aria-label="编辑页面 JSON" title="编辑页面 JSON"><svg><use href="#i-settings"/></svg></button>
<div class="settings-backdrop" id="settingsModal" aria-hidden="true">
<section class="settings-panel" role="dialog" aria-modal="true" aria-labelledby="settingsTitle">
<header class="settings-head"><div><div class="settings-kicker">TikTok 页面控制台</div><h2 id="settingsTitle">JSON 编辑器</h2></div><button class="settings-close" id="closeSettings" aria-label="关闭 JSON 编辑器"><svg><use href="#i-close"/></svg></button></header>
<div class="settings-body">
<nav class="module-tabs" id="moduleTabs" aria-label="JSON 模块"><h3>页面模块</h3></nav>
<div class="editor-pane"><div class="editor-title"><strong id="editorModuleTitle">站点信息</strong><span>只编辑当前模块</span></div><textarea class="json-editor" id="jsonEditor" spellcheck="false" aria-label="当前模块 JSON"></textarea><div class="editor-hint"><span>修改后先校验,再应用到页面。</span><span class="json-status valid" id="jsonStatus">JSON 有效</span></div></div>
</div>
<footer class="settings-actions"><div class="action-group"><button class="settings-button" id="copyJson">复制完整 JSON</button><button class="settings-button" id="downloadJson">下载 JSON</button><button class="settings-button danger" id="resetJson">恢复初始数据</button></div><button class="settings-button primary" id="applyJson">应用并渲染</button></footer>
</section>
</div>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script type="application/json" id="tiktokPageData">__TIKTOK_PAGE_DATA__</script>
<script>__TIKTOK_PAGE_RUNTIME__</script>
</body>
</html>