330 lines
32 KiB
HTML
330 lines
32 KiB
HTML
<!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="#ffffff" />
|
|
<meta name="description" content="YouTube 风格的可编辑中文视频门户。" />
|
|
<title>YouTube · 精彩视频</title>
|
|
<style>
|
|
:root {
|
|
color-scheme: light;
|
|
--bg: #fff;
|
|
--surface: #fff;
|
|
--surface-2: #f2f2f2;
|
|
--surface-3: #e5e5e5;
|
|
--text: #0f0f0f;
|
|
--muted: #606060;
|
|
--line: #e5e5e5;
|
|
--red: #ff0033;
|
|
--focus: 0 0 0 3px rgba(6,95,212,.25);
|
|
--header-h: 64px;
|
|
--side-w: 240px;
|
|
}
|
|
[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--bg: #0f0f0f;
|
|
--surface: #0f0f0f;
|
|
--surface-2: #272727;
|
|
--surface-3: #3f3f3f;
|
|
--text: #f1f1f1;
|
|
--muted: #aaa;
|
|
--line: #303030;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html { scroll-behavior: smooth; }
|
|
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Roboto, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.45; }
|
|
body.modal-open { overflow: hidden; }
|
|
button, input, textarea { 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, textarea: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: 12px; top: calc(var(--df-generated-header-height, 0px) + 8px); padding: 10px 16px; border-radius: 9px; color: #fff; background: #065fd4; transform: translateY(-160%); text-decoration: none; }
|
|
.skip-link:focus { transform: translateY(0); }
|
|
|
|
.app-header { position: fixed; z-index: 90; inset: var(--df-generated-header-height, 0px) 0 auto; height: var(--header-h); padding: 0 68px 0 16px; display: grid; grid-template-columns: minmax(190px,1fr) minmax(320px,640px) minmax(230px,1fr); align-items: center; gap: 24px; background: color-mix(in srgb,var(--surface) 94%,transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
|
|
.header-start, .header-actions { display: flex; align-items: center; gap: 10px; }
|
|
.header-actions { justify-content: flex-end; }
|
|
.icon-button { width: 44px; height: 44px; flex: 0 0 auto; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--text); background: transparent; }
|
|
.icon-button:hover { background: var(--surface-2); }
|
|
.icon-button svg { width: 22px; height: 22px; }
|
|
.brand { display: flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; font-size: 21px; font-weight: 850; letter-spacing: -.8px; }
|
|
.brand-logo { position: relative; width: 32px; height: 22px; border-radius: 7px; background: var(--red); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
|
|
.brand-logo::after { content: ""; position: absolute; left: 12px; top: 6px; border-left: 10px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
|
|
.search-form { height: 42px; display: grid; grid-template-columns: 1fr 64px; }
|
|
.search-input { min-width: 0; height: 42px; padding: 0 17px; border: 1px solid var(--line); border-radius: 22px 0 0 22px; color: var(--text); background: var(--surface); outline: 0; font-size: 16px; }
|
|
.search-input:focus { border-color: #1c62b9; box-shadow: inset 1px 0 #1c62b9; }
|
|
.search-button { height: 42px; border: 1px solid var(--line); border-left: 0; border-radius: 0 22px 22px 0; display: grid; place-items: center; background: var(--surface-2); }
|
|
.search-button svg { width: 22px; height: 22px; }
|
|
.create-button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 20px; display: flex; align-items: center; gap: 7px; background: var(--surface-2); font-weight: 650; }
|
|
.create-button:hover { background: var(--surface-3); }
|
|
.create-button svg { width: 18px; height: 18px; }
|
|
.header-avatar { width: 34px; height: 34px; }
|
|
.notification-wrap { position: relative; }
|
|
.notification-badge { position: absolute; right: 1px; top: 1px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid var(--surface); border-radius: 10px; display: grid; place-items: center; color: #fff; background: #c00; font-size: 9px; font-weight: 800; }
|
|
|
|
.avatar { --a:#6249e7; --b:#d946ef; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,var(--a),var(--b)); font-size: 12px; font-weight: 850; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
|
|
.avatar-sm { width: 32px; height: 32px; font-size: 11px; }
|
|
.avatar-lg { width: 46px; height: 46px; font-size: 14px; }
|
|
|
|
.sidebar { position: fixed; z-index: 70; left: 0; top: calc(var(--df-generated-header-height, 0px) + var(--header-h)); bottom: 0; width: var(--side-w); padding: 12px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); scrollbar-width: thin; }
|
|
.nav-group { display: grid; gap: 3px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
|
|
.nav-group + .nav-group { padding-top: 12px; }
|
|
.nav-link { min-height: 42px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 20px; color: var(--text); text-decoration: none; }
|
|
.nav-link:hover, .nav-link.active { background: var(--surface-2); }
|
|
.nav-link.active { font-weight: 700; }
|
|
.nav-link svg { width: 22px; height: 22px; flex: 0 0 auto; }
|
|
.subscription-title { padding: 14px 12px 7px; font-size: 16px; font-weight: 700; }
|
|
.subscription-row { min-height: 42px; padding: 4px 12px; border-radius: 10px; display: flex; align-items: center; gap: 16px; }
|
|
.subscription-row:hover { background: var(--surface-2); }
|
|
.subscription-copy { min-width: 0; }
|
|
.subscription-copy strong, .subscription-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.subscription-copy strong { font-size: 13px; }
|
|
.subscription-copy span { color: var(--muted); font-size: 11px; }
|
|
.side-footer { padding: 18px 12px 30px; color: var(--muted); font-size: 11px; line-height: 1.75; }
|
|
|
|
.content { min-height: 100dvh; padding: var(--header-h) 24px 90px calc(var(--side-w) + 24px); transition: padding-left .2s; }
|
|
.category-bar { position: sticky; z-index: 60; top: calc(var(--df-generated-header-height, 0px) + var(--header-h)); margin: 0 -24px; padding: 12px 24px; display: flex; gap: 10px; overflow-x: auto; background: color-mix(in srgb,var(--surface) 94%,transparent); backdrop-filter: blur(12px); scrollbar-width: none; }
|
|
.category-bar::-webkit-scrollbar { display: none; }
|
|
.category-chip { min-width: max-content; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; color: var(--text); background: var(--surface-2); font-size: 14px; font-weight: 600; }
|
|
.category-chip:hover { background: var(--surface-3); }
|
|
.category-chip.active { color: var(--bg); background: var(--text); }
|
|
.section-head { margin: 22px 0 14px; display: flex; align-items: center; justify-content: space-between; }
|
|
.section-head h1, .section-head h2 { margin: 0; font-size: 22px; }
|
|
.video-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(285px,1fr)); gap: 28px 18px; }
|
|
.video-card { min-width: 0; }
|
|
.thumbnail-button { position: relative; width: 100%; aspect-ratio: 16/9; padding: 0; overflow: hidden; border: 0; border-radius: 12px; display: block; background: var(--surface-2); }
|
|
.thumbnail-button:hover .thumbnail-visual { transform: scale(1.025); }
|
|
.thumbnail-visual { width: 100%; height: 100%; transition: transform .25s; }
|
|
.thumbnail-visual svg { width: 100%; height: 100%; }
|
|
.video-info { padding-top: 11px; display: grid; grid-template-columns: 40px 1fr 34px; gap: 10px; }
|
|
.video-copy { min-width: 0; }
|
|
.video-copy h3 { margin: 0 0 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; line-height: 1.35; }
|
|
.video-copy p { margin: 0; color: var(--muted); font-size: 13px; }
|
|
.verified { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 3px; border-radius: 50%; color: var(--surface); background: var(--muted); font-size: 9px; font-weight: 900; vertical-align: 1px; }
|
|
.more-button { width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; }
|
|
.more-button:hover { background: var(--surface-2); }
|
|
.more-button svg { width: 19px; height: 19px; }
|
|
|
|
.shorts-section { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
|
|
.shorts-title { display: flex; align-items: center; gap: 9px; }
|
|
.shorts-title svg { width: 24px; height: 24px; color: var(--red); }
|
|
.shorts-grid { display: grid; grid-template-columns: repeat(5,minmax(165px,1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
|
|
.short-card { min-width: 165px; }
|
|
.short-thumb { position: relative; width: 100%; aspect-ratio: 9/16; padding: 0; overflow: hidden; border: 0; border-radius: 12px; display: block; background: var(--surface-2); }
|
|
.short-thumb svg { width: 100%; height: 100%; }
|
|
.short-card h3 { margin: 10px 0 3px; font-size: 15px; line-height: 1.35; }
|
|
.short-card p { margin: 0; color: var(--muted); font-size: 12px; }
|
|
.empty-state { display: none; padding: 64px 20px; text-align: center; color: var(--muted); }
|
|
|
|
.mobile-nav { display: none; }
|
|
.watch-backdrop { position: fixed; z-index: 180; inset: 0; padding: 28px; display: grid; place-items: center; background: rgba(0,0,0,.74); opacity: 0; visibility: hidden; transition: opacity .2s,visibility .2s; }
|
|
.watch-backdrop.open { opacity: 1; visibility: visible; }
|
|
.watch-dialog { position: relative; width: min(1180px,100%); height: min(820px,calc(100dvh - 56px)); padding: 18px; overflow-y: auto; border-radius: 18px; color: var(--text); background: var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
|
|
.watch-close { position: sticky; z-index: 4; top: 0; float: right; margin: 0 0 -44px; background: color-mix(in srgb,var(--surface) 88%,transparent); backdrop-filter: blur(8px); }
|
|
.watch-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,.85fr); gap: 22px; clear: both; }
|
|
.watch-player { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 13px; color: #fff; background: #000; }
|
|
.watch-player svg { width: 100%; height: 100%; }
|
|
.watch-visual { width: 100%; height: 100%; display: grid; place-items: center; background: #000; }
|
|
.watch-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 52px; border: 0; border-radius: 13px; display: grid; place-items: center; color: #fff; background: rgba(255,0,51,.9); transform: translate(-50%,-50%); }
|
|
.watch-play svg { width: 27px; height: 27px; fill: currentColor; }
|
|
.watch-player.playing .watch-play { opacity: .3; }
|
|
.watch-title { margin: 14px 0 10px; font-size: 21px; }
|
|
.watch-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
|
|
.watch-channel { display: flex; align-items: center; gap: 10px; margin-right: auto; }
|
|
.watch-channel-copy strong, .watch-channel-copy span { display: block; }
|
|
.watch-channel-copy span { color: var(--muted); font-size: 12px; }
|
|
.subscribe-button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 20px; color: var(--bg); background: var(--text); font-weight: 700; }
|
|
.subscribe-button.following { color: var(--text); background: var(--surface-2); }
|
|
.watch-action { min-height: 38px; padding: 0 14px; border: 0; border-radius: 20px; display: flex; align-items: center; gap: 7px; background: var(--surface-2); font-weight: 650; }
|
|
.watch-action svg { width: 18px; height: 18px; }
|
|
.watch-action.active { color: #065fd4; }
|
|
.watch-description { margin-top: 14px; padding: 13px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
|
|
.watch-description strong { display: block; margin-bottom: 5px; }
|
|
.comments-panel { min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
|
|
.comments-head { padding: 16px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 750; }
|
|
.comments-list { flex: 1; overflow-y: auto; padding: 8px 14px; }
|
|
.comment { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; padding: 10px 0; }
|
|
.comment-copy p { margin: 3px 0 4px; font-size: 13px; }
|
|
.comment-copy time { color: var(--muted); font-size: 11px; }
|
|
.comment-like { width: 38px; height: 38px; border: 0; display: grid; justify-items: center; align-content: center; gap: 1px; color: var(--muted); background: transparent; font-size: 9px; }
|
|
.comment-like svg { width: 15px; height: 15px; }
|
|
.comment-like.active { color: #065fd4; }
|
|
.comment-form { padding: 12px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
|
|
.comment-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 22px; color: var(--text); background: var(--surface); }
|
|
.comment-send { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #065fd4; }
|
|
.comment-send svg { width: 18px; height: 18px; }
|
|
.toast { position: fixed; z-index: 500; left: 50%; bottom: 26px; padding: 10px 17px; border-radius: 8px; color: #fff; background: #212121; 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); }
|
|
|
|
body.sidebar-collapsed { --side-w: 78px; }
|
|
body.sidebar-collapsed .nav-link { padding: 0; justify-content: center; }
|
|
body.sidebar-collapsed .nav-link span, body.sidebar-collapsed .subscription-title, body.sidebar-collapsed #subscriptionList, body.sidebar-collapsed .side-footer { display: none; }
|
|
|
|
.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 (max-width: 1120px) {
|
|
:root { --side-w: 78px; }
|
|
.nav-link { padding: 0; justify-content: center; }
|
|
.nav-link span, .subscription-title, #subscriptionList, .side-footer { display: none; }
|
|
.video-grid { grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); }
|
|
.shorts-grid { grid-template-columns: repeat(5,180px); }
|
|
}
|
|
@media (max-width: 760px) {
|
|
:root { --header-h: 58px; --side-w: 0px; }
|
|
.app-header { height: var(--header-h); padding: 0 58px 0 10px; grid-template-columns: auto 1fr auto; gap: 7px; }
|
|
.header-start .icon-button, .brand span { display: none; }
|
|
.brand-logo { width: 30px; }
|
|
.search-form { height: 38px; grid-template-columns: 1fr 46px; }
|
|
.search-input, .search-button { height: 38px; }
|
|
.create-button span, #themeToggle, .notification-wrap { display: none; }
|
|
.create-button { width: 40px; padding: 0; justify-content: center; }
|
|
.sidebar { display: none; }
|
|
.content { padding: var(--header-h) 12px 76px; }
|
|
.category-bar { top: calc(var(--df-generated-header-height, 0px) + var(--header-h)); margin: 0 -12px; padding: 9px 12px; }
|
|
.section-head { margin-top: 16px; }
|
|
.video-grid { grid-template-columns: 1fr; gap: 25px; }
|
|
.thumbnail-button { border-radius: 10px; }
|
|
.shorts-grid { grid-template-columns: repeat(5,165px); }
|
|
.mobile-nav { position: fixed; z-index: 100; inset: auto 0 0; height: 62px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 96%,transparent); backdrop-filter: blur(12px); }
|
|
.mobile-nav button { border: 0; display: grid; place-items: center; align-content: center; gap: 2px; background: transparent; font-size: 10px; }
|
|
.mobile-nav svg { width: 21px; height: 21px; }
|
|
.watch-backdrop { padding: 0; }
|
|
.watch-dialog { width: 100%; height: 100dvh; border-radius: 0; padding: 12px; }
|
|
.watch-layout { grid-template-columns: 1fr; }
|
|
.comments-panel { min-height: 420px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
|
|
}
|
|
.skip-link { transform: translateY(calc(-100% - var(--df-generated-header-height, 0px) - 24px)); }
|
|
.skip-link:focus { transform: translateY(0); }
|
|
.watch-backdrop { z-index: 1200; }
|
|
.settings-backdrop { z-index: 1300; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a class="skip-link" href="#home">跳到视频内容</a>
|
|
<svg aria-hidden="true" width="0" height="0" style="position:absolute">
|
|
<symbol id="i-menu" viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h16" 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-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-shorts" viewBox="0 0 24 24"><path d="m9 3 8 4-4 3 4 3-8 4-4-3 4-3-4-3Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="m10 9 5 3-5 3Z" fill="currentColor"/></symbol>
|
|
<symbol id="i-subscriptions" viewBox="0 0 24 24"><rect x="3" y="6" width="18" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="2"/><path d="M7 3h10M9 10l6 3-6 3Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-history" viewBox="0 0 24 24"><path d="M3 12a9 9 0 1 0 3-6.7L3 8m0 0V3m0 5h5M12 7v5l3 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-playlist" viewBox="0 0 24 24"><path d="M4 6h11M4 11h11M4 16h7m6-4v8l5-4Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 7v5l3 2" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-like" viewBox="0 0 24 24"><path d="M7 10v11H3V10Zm0 9h9a3 3 0 0 0 3-2.5l1-6A3 3 0 0 0 17 7h-4l1-4-2-1-5 8Z" 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-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="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-moon" viewBox="0 0 24 24"><path d="M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8Z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/></symbol>
|
|
<symbol id="i-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4" fill="none" stroke="currentColor" stroke-width="2"/><path d="M12 2v2m0 16v2M4.9 4.9l1.5 1.5m11.2 11.2 1.5 1.5M2 12h2m16 0h2M4.9 19.1l1.5-1.5M17.6 6.4l1.5-1.5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></symbol>
|
|
<symbol id="i-more" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1.7" fill="currentColor"/><circle cx="12" cy="12" r="1.7" fill="currentColor"/><circle cx="19" cy="12" r="1.7" fill="currentColor"/></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-play" viewBox="0 0 24 24"><path d="m8 5 11 7-11 7Z" fill="currentColor"/></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-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-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">
|
|
<div class="header-start"><button class="icon-button" id="menuToggle" aria-label="收起侧栏"><svg><use href="#i-menu"/></svg></button><a class="brand" id="brandLink" href="#home"><span class="brand-logo"></span><span id="brandText">YouTube</span></a></div>
|
|
<form class="search-form" id="searchForm"><label class="sr-only" for="searchInput">搜索视频</label><input class="search-input" id="searchInput" type="search" placeholder="搜索" /><button class="search-button" aria-label="搜索"><svg><use href="#i-search"/></svg></button></form>
|
|
<div class="header-actions"><button class="create-button" id="createButton"><svg><use href="#i-plus"/></svg><span>创建</span></button><button class="icon-button" id="themeToggle" aria-label="切换主题"><svg><use href="#i-moon"/></svg></button><span class="notification-wrap"><button class="icon-button" aria-label="通知"><svg><use href="#i-bell"/></svg></button><span class="notification-badge" id="notificationBadge">3</span></span><span id="headerUser"></span></div>
|
|
</header>
|
|
|
|
<aside class="sidebar" aria-label="主导航">
|
|
<nav class="nav-group" id="primaryNav"></nav>
|
|
<nav class="nav-group" id="libraryNav"></nav>
|
|
<section><div class="subscription-title" id="subscriptionTitle">订阅</div><div id="subscriptionList"></div></section>
|
|
<footer class="side-footer" id="sideFooter"></footer>
|
|
</aside>
|
|
|
|
<main class="content" id="home">
|
|
<div class="category-bar" id="categoryBar"></div>
|
|
<section><header class="section-head"><h1 id="videoSectionTitle">推荐视频</h1></header><div class="video-grid" id="videoGrid"></div><div class="empty-state" id="emptyState">没有找到匹配的视频,换个关键词试试。</div></section>
|
|
<section class="shorts-section" id="shorts"><header class="section-head"><h2 class="shorts-title"><svg><use href="#i-shorts"/></svg><span id="shortsSectionTitle">Shorts</span></h2></header><div class="shorts-grid" id="shortsGrid"></div></section>
|
|
</main>
|
|
|
|
<nav class="mobile-nav" id="mobileNav" aria-label="移动端导航"></nav>
|
|
|
|
<div class="watch-backdrop" id="watchModal" aria-hidden="true">
|
|
<section class="watch-dialog" role="dialog" aria-modal="true" aria-labelledby="watchTitle">
|
|
<button class="icon-button watch-close" id="closeWatch" aria-label="关闭观看窗口"><svg><use href="#i-close"/></svg></button>
|
|
<div class="watch-layout">
|
|
<div><div class="watch-player" id="watchPlayer"><div class="watch-visual" id="watchVisual"></div><button class="watch-play" id="watchPlay" aria-label="播放"><svg><use href="#i-play"/></svg></button></div><h2 class="watch-title" id="watchTitle"></h2><div class="watch-meta-row"><div class="watch-channel"><span id="watchChannelAvatar"></span><span class="watch-channel-copy"><strong id="watchChannel"></strong><span id="watchViews"></span></span></div><button class="subscribe-button" id="subscribeButton">订阅</button><button class="watch-action" id="watchLike"><svg><use href="#i-like"/></svg><span></span></button><button class="watch-action" id="watchSave"><svg><use href="#i-bookmark"/></svg><span>保存</span></button></div><div class="watch-description"><strong id="watchMeta"></strong><span id="watchDescription"></span></div></div>
|
|
<aside class="comments-panel"><div class="comments-head" id="commentsTitle"></div><div class="comments-list" id="commentsList"></div><form class="comment-form" id="commentForm"><label class="sr-only" for="commentInput">添加评论</label><input id="commentInput" maxlength="180" /><button class="comment-send" aria-label="发送评论"><svg><use href="#i-send"/></svg></button></form></aside>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
<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">YouTube 页面控制台</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="youtubePageData">__YOUTUBE_PAGE_DATA__</script>
|
|
<script>__YOUTUBE_PAGE_RUNTIME__</script>
|
|
</body>
|
|
</html>
|