You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
915 lines
33 KiB
915 lines
33 KiB
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=375, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<link rel="stylesheet" href="../colors_and_type.css">
|
|
<title>青核 Youthome - 视频播放</title>
|
|
<style>
|
|
:root {
|
|
--youth-primary: #26C2BB;
|
|
--youth-primary-light: #54CAC5;
|
|
--primary-bg: #E6F7F6;
|
|
--bg-page: #F7F8FA;
|
|
--bg-card: #FFFFFF;
|
|
--text-title: #1F1F1F;
|
|
--text-body: #595959;
|
|
--text-muted: #8C8C8C;
|
|
--youth-border-light: #E8E8E8;
|
|
--danger: #F5222D;
|
|
|
|
/* =====================================================
|
|
* Traework 设计系统 - 组件规范
|
|
* 圆角 / 间距 / 阴影 / 高度
|
|
* ===================================================== */
|
|
--radius-xs: 4px;
|
|
--radius-sm: 8px; /* 按钮、输入框 */
|
|
--radius-md: 12px; /* 卡片 */
|
|
--radius-lg: 16px; /* 标签、弹窗 */
|
|
--radius-xl: 20px;
|
|
--radius-full: 9999px;
|
|
|
|
/* 组件高度 */
|
|
--height-btn: 44px;
|
|
--height-input: 44px;
|
|
--height-nav-bottom: 64px;
|
|
|
|
/* 间距(4px 基础栅格) */
|
|
--space-1: 4px;
|
|
--space-2: 8px;
|
|
--space-3: 12px;
|
|
--space-4: 16px;
|
|
--space-5: 20px;
|
|
--space-6: 24px;
|
|
--space-page-x: 16px;
|
|
--space-card: 16px;
|
|
|
|
/* 柔和弥散阴影 */
|
|
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
--shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.06);
|
|
--shadow-btn: 0 2px 8px rgba(38, 194, 187, 0.25);
|
|
--shadow-btn-hover: 0 4px 16px rgba(38, 194, 187, 0.35);
|
|
--shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.12);
|
|
--shadow-float: 0 4px 24px rgba(0, 0, 0, 0.08);
|
|
|
|
/* 内阴影浮雕(输入框) */
|
|
--shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.04);
|
|
--shadow-inset-focus: inset 0 1px 3px rgba(38, 194, 187, 0.08);
|
|
|
|
/* 毛玻璃 */
|
|
--glass-bg: rgba(255, 255, 255, 0.72);
|
|
--glass-blur: blur(20px);
|
|
--glass-border: rgba(255, 255, 255, 0.3);
|
|
|
|
}
|
|
|
|
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
|
|
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', sans-serif;
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-secondary);
|
|
overflow-x: hidden;}
|
|
|
|
.page-container {
|
|
width: 375px;
|
|
height: 812px;
|
|
margin: 0 auto;
|
|
background: #000;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 视频区域 */
|
|
.video-area {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 420px;
|
|
background: #000;
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.video-cover {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(135deg, #1A1A2E 0%, #2D4A5E 40%, #26C2BB 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.video-cover::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -40px;
|
|
left: -40px;
|
|
width: 200px;
|
|
height: 200px;
|
|
border-radius: 50%;
|
|
background: rgba(38, 194, 187, 0.2);
|
|
filter: blur(40px);
|
|
}
|
|
|
|
.video-cover::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -60px;
|
|
right: -20px;
|
|
width: 180px;
|
|
height: 180px;
|
|
border-radius: 50%;
|
|
background: rgba(255, 106, 136, 0.15);
|
|
filter: blur(40px);
|
|
}
|
|
|
|
.play-btn {
|
|
width: 72px;
|
|
height: 72px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.2);
|
|
backdrop-filter: blur(10px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
position: relative;
|
|
z-index: 2;
|
|
border: 2px solid rgba(255,255,255,0.3);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.play-btn:active {
|
|
transform: scale(0.9);
|
|
background: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.play-btn svg {
|
|
color: #fff;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
/* 视频顶部导航 */
|
|
.video-top-nav {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 44px 8px 20px;
|
|
background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
z-index: 10;
|
|
}
|
|
|
|
.video-nav-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
background: rgba(0,0,0,0.3);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.video-nav-right { display: flex; gap: 8px; }
|
|
|
|
/* 视频底部控制栏 */
|
|
.video-controls {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 30px 12px 12px;
|
|
background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
|
|
z-index: 10;
|
|
}
|
|
|
|
.progress-bar-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.time-text {
|
|
font-size: 11px;
|
|
color: #fff;
|
|
font-variant-numeric: tabular-nums;
|
|
min-width: 36px;
|
|
text-align: center;
|
|
}
|
|
|
|
.progress-track {
|
|
flex: 1;
|
|
height: 4px;
|
|
background: rgba(255,255,255,0.25);
|
|
border-radius: 2px;
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.progress-buffered {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
background: rgba(255,255,255,0.4);
|
|
border-radius: 2px;
|
|
width: 65%;
|
|
}
|
|
|
|
.progress-played {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
background: var(--youth-primary);
|
|
border-radius: 2px;
|
|
width: 35%;
|
|
}
|
|
|
|
.progress-thumb {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 35%;
|
|
transform: translate(-50%, -50%);
|
|
width: 12px;
|
|
height: 12px;
|
|
background: #fff;
|
|
border-radius: 50%;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.control-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.control-left { display: flex; align-items: center; gap: 12px; }
|
|
.control-right { display: flex; align-items: center; gap: 12px; }
|
|
|
|
.ctrl-btn {
|
|
color: #fff;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.ctrl-btn.play-big {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: var(--youth-primary);
|
|
box-shadow: 0 2px 10px rgba(38,194,187,0.4);
|
|
}
|
|
|
|
/* 滚动内容区 */
|
|
.scroll-area {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
background: var(--youth-bg-page);
|
|
padding-bottom: 60px;
|
|
}
|
|
|
|
.scroll-area::-webkit-scrollbar { display: none; }
|
|
|
|
/* 视频信息 */
|
|
.video-info {
|
|
background: var(--youth-bg-card);
|
|
padding: 16px;
|
|
}
|
|
|
|
.video-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
line-height: 1.4;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.video-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.video-meta .view-count {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.video-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.video-tag {
|
|
padding: 4px 10px;
|
|
background: var(--youth-primary-bg);
|
|
color: var(--youth-primary);
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
/* 作者信息 */
|
|
.author-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
.author-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #26C2BB, #54CAC5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.author-info { flex: 1; min-width: 0; }
|
|
|
|
.author-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--youth-text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.author-fans {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.follow-btn {
|
|
padding: 6px 16px;
|
|
background: var(--youth-primary);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 14px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.follow-btn.followed {
|
|
background: var(--youth-bg-page);
|
|
color: var(--youth-text-tertiary);
|
|
border: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
/* 操作栏 */
|
|
.action-bar {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
padding: 12px 0;
|
|
background: var(--youth-bg-card);
|
|
margin-top: 8px;
|
|
border-bottom: 1px solid var(--youth-border-light);
|
|
}
|
|
|
|
.action-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
cursor: pointer;
|
|
color: var(--youth-text-secondary);
|
|
}
|
|
|
|
.action-item.liked { color: var(--youth-danger-500); }
|
|
.action-item.active { color: var(--youth-primary); }
|
|
|
|
.action-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.action-count {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 评论区 */
|
|
.comment-section {
|
|
background: var(--youth-bg-card);
|
|
margin-top: 8px;
|
|
padding: 16px;
|
|
}
|
|
|
|
.comment-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.comment-title {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--youth-text-primary);
|
|
}
|
|
|
|
.comment-count {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.comment-tabs {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.comment-tab {
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
position: relative;
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.comment-tab.active {
|
|
color: var(--youth-text-primary);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.comment-tab.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 18px;
|
|
height: 3px;
|
|
background: var(--youth-primary);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.comment-item {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 12px 0;
|
|
position: relative;
|
|
}
|
|
|
|
.comment-item + .comment-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 42px;
|
|
right: 0;
|
|
height: 1px;
|
|
background: var(--youth-border-light);
|
|
}
|
|
|
|
.comment-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, #FF9A8B, #FF6A88);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 14px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.comment-body { flex: 1; min-width: 0; }
|
|
|
|
.comment-name {
|
|
font-size: 12px;
|
|
color: var(--youth-text-tertiary);
|
|
font-weight: 500;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.comment-text {
|
|
font-size: 13px;
|
|
color: var(--youth-text-primary);
|
|
line-height: 1.5;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.comment-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.comment-time {
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
}
|
|
|
|
.comment-like {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
font-size: 11px;
|
|
color: var(--youth-text-tertiary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.comment-like.liked { color: var(--youth-danger-500); }
|
|
|
|
/* 底部评论输入框 */
|
|
.bottom-input {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 10px 16px;
|
|
padding-bottom: calc(10px + env(safe-area-inset-bottom));
|
|
background: var(--youth-bg-card);
|
|
border-top: 1px solid var(--youth-border-light);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
z-index: 20;
|
|
}
|
|
|
|
.input-field {
|
|
flex: 1;
|
|
height: 44px;
|
|
background: var(--youth-bg-page);
|
|
border-radius: 8px;
|
|
padding: 0 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 13px;
|
|
color: var(--youth-text-tertiary);
|
|
cursor: pointer;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
.input-icon {
|
|
color: var(--youth-text-tertiary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
/* SVG 图标统一尺寸 */
|
|
.icon-svg {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1em;
|
|
height: 1em;
|
|
vertical-align: middle;
|
|
line-height: 1;
|
|
}
|
|
.icon-svg svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
stroke: currentColor;
|
|
}
|
|
/* 侧栏图标 */
|
|
.sidebar-icon .icon-svg { width: 22px; height: 22px; font-size: 22px; }
|
|
/* 社团logo图标 */
|
|
.club-logo .icon-svg { width: 28px; height: 28px; font-size: 28px; color: #fff; }
|
|
/* 头图大图标 */
|
|
.hero-icon .icon-svg { width: 56px; height: 56px; font-size: 56px; opacity: 0.3; }
|
|
/* meta 小图标 */
|
|
.club-meta .icon-svg { width: 12px; height: 12px; font-size: 12px; }
|
|
/* 分类选择网格图标 */
|
|
.cat-option .icon-svg { width: 26px; height: 26px; font-size: 26px; }
|
|
/* logo预览图标 */
|
|
.logo-preview .icon-svg { width: 40px; height: 40px; font-size: 40px; color: #fff; }
|
|
/* 提示图标 */
|
|
.notice-icon .icon-svg { width: 18px; height: 18px; font-size: 18px; }
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page-container" data-dom-id="page-container">
|
|
<!-- 视频区域 -->
|
|
<div class="video-area" onclick="togglePlay()">
|
|
<div class="video-cover">
|
|
<div class="play-btn" id="playBtn" onclick="event.stopPropagation(); togglePlay()">
|
|
<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor">
|
|
<polygon points="8 5 19 12 8 19 8 5"></polygon>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 顶部导航 -->
|
|
<div class="video-top-nav">
|
|
<div class="video-nav-btn" onclick="goBack()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>
|
|
</div>
|
|
<div class="video-nav-right">
|
|
<div class="video-nav-btn" onclick="castVideo()">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path>
|
|
<line x1="2" y1="20" x2="2.01" y2="20"></line>
|
|
</svg>
|
|
</div>
|
|
<div class="video-nav-btn" onclick="moreAction()">
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 底部控制栏 -->
|
|
<div class="video-controls">
|
|
<div class="progress-bar-wrap">
|
|
<span class="time-text">01:24</span>
|
|
<div class="progress-track">
|
|
<div class="progress-buffered"></div>
|
|
<div class="progress-played"></div>
|
|
<div class="progress-thumb"></div>
|
|
</div>
|
|
<span class="time-text">04:02</span>
|
|
</div>
|
|
<div class="control-row">
|
|
<div class="control-left">
|
|
<div class="ctrl-btn play-big" id="bigPlayBtn" onclick="event.stopPropagation(); togglePlay()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor">
|
|
<polygon points="8 5 19 12 8 19 8 5"></polygon>
|
|
</svg>
|
|
</div>
|
|
<div class="ctrl-btn" onclick="event.stopPropagation(); nextVideo()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor">
|
|
<polygon points="19 20 9 12 19 4 19 20"></polygon>
|
|
<line x1="5" y1="19" x2="5" y2="5"></line>
|
|
</svg>
|
|
</div>
|
|
<div class="ctrl-btn" onclick="event.stopPropagation(); toggleMute()">
|
|
<svg id="volIcon" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>
|
|
<path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>
|
|
<path d="M19.07 4.93a10 10 0 0 1 0 14.14"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
<div class="control-right">
|
|
<div class="ctrl-btn" onclick="event.stopPropagation(); toggleDanmaku()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="ctrl-btn" onclick="event.stopPropagation(); toggleFullscreen()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 内容滚动区 -->
|
|
<div class="scroll-area">
|
|
<!-- 视频信息 -->
|
|
<div class="video-info">
|
|
<div class="video-title">校园歌手大赛决赛现场!全场大合唱太燃了 <span class="icon-svg icon-mic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="12" height="18" x="6" y="2" rx="6"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg></span><span class="icon-svg icon-flame"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg></span></div>
|
|
<div class="video-meta">
|
|
<span class="view-count">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
|
|
<circle cx="12" cy="12" r="3"></circle>
|
|
</svg>
|
|
12.8万 播放
|
|
</span>
|
|
<span>2小时前</span>
|
|
<span>北京大学</span>
|
|
</div>
|
|
<div class="video-tags">
|
|
<span class="video-tag">#校园歌手大赛</span>
|
|
<span class="video-tag">#青春校园</span>
|
|
<span class="video-tag">#音乐现场</span>
|
|
</div>
|
|
<div class="author-row">
|
|
<div class="author-avatar"><span class="icon-svg icon-user"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg></span><span class="icon-svg icon-mic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="12" height="18" x="6" y="2" rx="6"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" x2="12" y1="19" y2="22"/></svg></span></div>
|
|
<div class="author-info">
|
|
<div class="author-name">音乐社官方</div>
|
|
<div class="author-fans">3.2万粉丝 · 128作品</div>
|
|
</div>
|
|
<button class="follow-btn followed" onclick="toggleFollow(this)">已关注</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 操作栏 -->
|
|
<div class="action-bar">
|
|
<div class="action-item liked" onclick="toggleLike(this)">
|
|
<div class="action-icon">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="action-count">5.6k</span>
|
|
</div>
|
|
<div class="action-item" onclick="focusComment()">
|
|
<div class="action-icon">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
|
|
</svg>
|
|
</div>
|
|
<span class="action-count">328</span>
|
|
</div>
|
|
<div class="action-item" onclick="collectVideo()">
|
|
<div class="action-icon">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>
|
|
</svg>
|
|
</div>
|
|
<span class="action-count">1.2k</span>
|
|
</div>
|
|
<div class="action-item" onclick="shareVideo()">
|
|
<div class="action-icon">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="18" cy="5" r="3"></circle>
|
|
<circle cx="6" cy="12" r="3"></circle>
|
|
<circle cx="18" cy="19" r="3"></circle>
|
|
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
|
|
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
|
|
</svg>
|
|
</div>
|
|
<span class="action-count">分享</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 评论区 -->
|
|
<div class="comment-section">
|
|
<div class="comment-header">
|
|
<span class="comment-title">评论</span>
|
|
<span class="comment-count">共 328 条</span>
|
|
</div>
|
|
<div class="comment-tabs">
|
|
<div class="comment-tab active" onclick="switchCommentTab(this)">最热</div>
|
|
<div class="comment-tab" onclick="switchCommentTab(this)">最新</div>
|
|
<div class="comment-tab" onclick="switchCommentTab(this)">作者</div>
|
|
</div>
|
|
|
|
<div class="comment-item">
|
|
<div class="comment-avatar"><span class="icon-svg icon-music"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg></span></div>
|
|
<div class="comment-body">
|
|
<div class="comment-name">校园诗人小李</div>
|
|
<div class="comment-text">现场太燃了!主唱是我们系的,平时就很厉害,没想到决赛更炸 <span class="icon-svg icon-flame"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg></span><span class="icon-svg icon-flame"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"/></svg></span></div>
|
|
<div class="comment-footer">
|
|
<span class="comment-time">2小时前</span>
|
|
<div class="comment-like liked" onclick="toggleCommentLike(this)">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="currentColor"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>
|
|
286
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="comment-item">
|
|
<div class="comment-avatar" style="background:linear-gradient(135deg,#A8B5FF,#6366F1);">🎸</div>
|
|
<div class="comment-body">
|
|
<div class="comment-name">吉他社老王</div>
|
|
<div class="comment-text">这首《晴天》改编得太有新意了,中间那段solo绝了!有没有乐谱分享一下</div>
|
|
<div class="comment-footer">
|
|
<span class="comment-time">1小时前</span>
|
|
<div class="comment-like" onclick="toggleCommentLike(this)">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>
|
|
142
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="comment-item">
|
|
<div class="comment-avatar" style="background:linear-gradient(135deg,#FFD666,#FAAD14);"><span class="icon-svg icon-sparkles"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z"/><path d="M5 3v4"/><path d="M19 17v4"/><path d="M3 5h4"/><path d="M17 19h4"/></svg></span></div>
|
|
<div class="comment-body">
|
|
<div class="comment-name">追星女孩小夏</div>
|
|
<div class="comment-text">全场大合唱那段看哭了<span class="icon-svg icon-frown"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M16 16s-1.5-2-4-2-4 2-4 2"/><line x1="9" x2="9.01" y1="9" y2="9"/><line x1="15" x2="15.01" y1="9" y2="9"/></svg></span> 青春真好啊</div>
|
|
<div class="comment-footer">
|
|
<span class="comment-time">45分钟前</span>
|
|
<div class="comment-like" onclick="toggleCommentLike(this)">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>
|
|
98
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="comment-item">
|
|
<div class="comment-avatar" style="background:linear-gradient(135deg,#34D399,#10B981);"><span class="icon-svg icon-sprout"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 20h10"/><path d="M10 20c5.5-2.5.8-6.4 3-10"/><path d="M9.5 9.4c1.1.8 1.8 2.2 2.3 3.9-2 .4-4 .5-6.1 0 1.5-2.4 3-2.9 3.8-3.9Z"/><path d="M7 20a5 5 0 0 1-1.5-6.8c1.2-.9 2.9-1.2 4.3-1"/></svg></span></div>
|
|
<div class="comment-body">
|
|
<div class="comment-name">大一新生报道</div>
|
|
<div class="comment-text">明年我也要参加!有一起组队的吗~</div>
|
|
<div class="comment-footer">
|
|
<span class="comment-time">30分钟前</span>
|
|
<div class="comment-like" onclick="toggleCommentLike(this)">
|
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg>
|
|
56
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 底部输入框 -->
|
|
<div class="bottom-input">
|
|
<div class="input-field" onclick="focusInput()">说点什么...</div>
|
|
<div class="input-icon" onclick="toggleDanmakuInput()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="input-icon" onclick="openGift()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<polyline points="20 12 20 22 4 22 4 12"></polyline>
|
|
<rect x="2" y="7" width="20" height="5"></rect>
|
|
<line x1="12" y1="22" x2="12" y2="7"></line>
|
|
<path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path>
|
|
<path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>
|
|
</svg>
|
|
</div>
|
|
<div class="input-icon" onclick="goShare()">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="18" cy="5" r="3"></circle>
|
|
<circle cx="6" cy="12" r="3"></circle>
|
|
<circle cx="18" cy="19" r="3"></circle>
|
|
<line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
|
|
<line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<script> icon.innerHTML = '<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>';
|
|
}
|
|
}
|
|
|
|
let isPlaying = false;
|
|
function togglePlay() {
|
|
isPlaying = !isPlaying;
|
|
const btn = document.getElementById('playBtn');
|
|
const bigBtn = document.getElementById('bigPlayBtn');
|
|
const icon = isPlaying
|
|
? '<svg width="28" height="28" viewBox="0 0 24 24" fill="currentColor"><rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect></svg>'
|
|
: '<svg width="32" height="32" viewBox="0 0 24 24" fill="currentColor"><polygon points="8 5 19 12 8 19 8 5"></polygon></svg>';
|
|
btn.innerHTML = icon;
|
|
const bigIcon = isPlaying
|
|
? '<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor"><rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect></svg>'
|
|
: '<svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor"><polygon points="8 5 19 12 8 19 8 5"></polygon></svg>';
|
|
bigBtn.innerHTML = bigIcon;
|
|
}
|
|
|
|
function goBack() { window.history.back(); }
|
|
function castVideo() { alert('投屏'); }
|
|
function moreAction() { alert('更多操作'); }
|
|
function nextVideo() { alert('下一个视频'); }
|
|
function toggleMute() { alert('静音切换'); }
|
|
function toggleDanmaku() { alert('弹幕切换'); }
|
|
function toggleFullscreen() { alert('全屏'); }
|
|
function toggleFollow(btn) {
|
|
if (btn.classList.contains('followed')) {
|
|
btn.classList.remove('followed');
|
|
btn.textContent = '+ 关注';
|
|
} else {
|
|
btn.classList.add('followed');
|
|
btn.textContent = '已关注';
|
|
}
|
|
}
|
|
function toggleLike(item) { item.classList.toggle('liked'); }
|
|
function focusComment() { alert('打开评论区'); }
|
|
function collectVideo() { alert('收藏视频'); }
|
|
function shareVideo() { alert('分享视频'); }
|
|
function toggleCommentLike(el) { el.classList.toggle('liked'); }
|
|
function switchCommentTab(el) {
|
|
document.querySelectorAll('.comment-tab').forEach(t => t.classList.remove('active'));
|
|
el.classList.add('active');
|
|
}
|
|
function focusInput() { alert('输入评论'); }
|
|
function toggleDanmakuInput() { alert('发弹幕'); }
|
|
function openGift() { alert('送礼物'); }
|
|
function goShare() { alert('分享'); }</script>
|
|
</body>
|
|
</html>
|
|
|