js+css实现歌曲《十年》伴奏代码
代码语言:html
所属分类:其他
代码由deepseek-v4-pro ai生成,可能有错误,仅供参考:点击查看提示词
代码描述:ai生成经典歌曲音乐伴奏网页
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>《十年》伴奏 - 在线试听与导出</title>
<style>
:root {
--bg: #1c1c24;
--surface: #252530;
--surface2: #2e2e3a;
--primary: #c9a96e;
--primary-glow: #e0c78a;
--accent: #d4756b;
--accent2: #6ba5b8;
--text: #e8e4dd;
--text-secondary: #a09b90;
--border: #3d3d4a;
--slider-track: #3d3d4a;
--success: #7bae6e;
--warning: #d4984a;
--radius: 14px;
--radius-sm: 8px;
--shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
--transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Serif SC', serif;
background: #16161d;
background-image:
radial-gradient(ellipse at 30% 25%, rgba(201, 169, 110, 0.06) 0%, transparent 55%),
radial-gradient(ellipse at 70% 60%, rgba(212, 117, 107, 0.05) 0%, transparent 55%),
radial-gradient(ellipse at 50% 80%, rgba(107, 165, 184, 0.04) 0%, transparent 60%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
color: var(--text);
-webkit-tap-highlight-color: transparent;
user-select: none;
-webkit-user-select: none;
}
.app-container {
width: 100%;
max-width: 800px;
background: var(--bg);
border-radius: 22px;
padding: 30px 26px 22px;
box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.03);
border: 1px solid var(--border);
}
.app-header {
text-align: center;
margin-bottom: 20px;
}
.app-header .song-icon {
font-size: 3rem;
margin-bottom: 6px;
filter: grayscale(0.2);
}
.app-header h1 {
font-size: 1.9rem;
font-weight: 700;
letter-spacing: 0.04em;
background: linear-gradient(135deg, var(--primary-glow), #e8c97a, var(--primary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 2px;
}
.app-header .artist {
font-size: 0.9rem;
color: var(--text-secondary);
letter-spacing: 0.06em;
font-style: italic;
}
.app-header .subtitle {
font-size: 0.78rem;
color: #7a7568;
letter-spacing: 0.03em;
margin-top: 2px;
}
/* 信息卡片 */
.info-card {
background: var(--surface);
border-radius: var(--radius);
padding: 14px 18px;
margin-bottom: 16px;
border: 1px solid var(--border);
display: flex;
flex-wrap: wrap;
gap: 16px;
align-items: center;
justify-content: center;
font-size: 0.82rem;
color: var(--text-secondary);
}
.info-card .info-item {
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}
.info-card .info-item .label {
color: #8a8476;
font-size: 0.7rem;
letter-spacing: 0.03em;
text-transform: uppercase;
}
.info-card .info-item .value {
color: var(--primary-glow);
font-weight: 600;
font-size: 0.85rem;
}
/* 进度条 */
.progress-section {
margin-bottom: 14px;
}
.progress-bar-outer {
height: 6px;
background: var(--surface2);
border-radius: 3px;
cursor: pointer;
position: relative;
overflow: visible;
transition: all var(--transition);
}
.progress-bar-outer:hover {
height: 10px;
border-radius: 5px;
}
.progress-bar-inner {
height: 100%;
background: linear-gradient(90deg, var(--primary), var(--primary-glow));
border-radius: 3px;
transition: width 0.08s linear;
position: relative;
}
.progress-bar-inner::after {
content: '';
position: absolute;
right: -6px;
top: 50%;
transform: translateY(-50%);
width: 14px;
height: 14px;
border-radius: 50%;
background: #fff;
border: 2px solid var(--primary);
box-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
opacity: 0;
transition: opacity var(--transition);
}
.progress-bar-outer:hover .progress-bar-inner::after {
opacity: 1;
}
.time-display {
display: flex;
justify-content: space-between;
font-size: 0.7rem;
color: var(--text-secondary);
margin-top: 4px;
font-family: 'SF Mono', 'Consolas', monospace;
}
/* 控制按钮 */
.btn-row {
display: flex;
gap: 10px;
flex-wrap: wrap;
justify-c.........完整代码请登录后点击上方下载按钮下载查看















网友评论0