Files
sundynix-radio-mp/pages/player/index.wxss
T
2026-04-28 10:32:19 +08:00

515 lines
9.9 KiB
Plaintext

/* 播放器 — 深空沉浸主题 · 重设计 */
::-webkit-scrollbar { display: none !important; }
.player-page {
height: 100vh;
background: #FAFAF8;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
animation: player-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes player-slide-up {
0% { transform: translateY(40%); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
/* 环境光 — 日间柔和光晕 */
.bg-glow {
position: absolute;
top: 0; left: 0; right: 0;
height: 60vh;
pointer-events: none;
z-index: 0;
opacity: 1;
}
/* ── 顶部栏 ── */
.top-bar {
display: flex;
align-items: center;
padding: 12rpx 24rpx 8rpx;
position: relative;
z-index: 10;
}
.top-btn {
width: 72rpx;
height: 72rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
flex-shrink: 0;
}
.top-back {
font-size: 52rpx;
color: #333333;
font-weight: 300;
line-height: 1;
margin-top: -4rpx;
}
.top-title-wrap {
flex: 1;
text-align: center;
overflow: hidden;
padding: 0 16rpx;
}
.top-label {
display: block;
font-size: 18rpx;
color: #999999;
letter-spacing: 4rpx;
text-transform: uppercase;
margin-bottom: 4rpx;
}
.top-title {
display: block;
font-size: 26rpx;
font-weight: 600;
color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* ── 中央 Banner ── */
.banner-area {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 10;
padding: 0 40rpx;
min-height: 0;
}
.banner-cover,
.banner-transcript {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: opacity 0.4s ease, transform 0.4s ease;
opacity: 1;
transform: scale(1);
}
.banner-hidden {
opacity: 0;
transform: scale(0.92);
pointer-events: none;
}
/* ── 涟漪声波 ── */
.ripple-wrap {
position: absolute;
width: 360rpx;
height: 360rpx;
display: flex;
align-items: center;
justify-content: center;
}
.ripple-ring {
position: absolute;
width: 240rpx;
height: 240rpx;
border-radius: 50%;
border: 2rpx solid rgba(255, 158, 109, 0.25);
animation: ripple-out 2.4s ease-out infinite;
}
@keyframes ripple-out {
0% { transform: scale(0.5); opacity: 0.7; }
100% { transform: scale(2.6); opacity: 0; }
}
/* ── 大 Emoji ── */
.cover-emoji {
font-size: 200rpx;
position: relative;
z-index: 2;
transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
transform: scale(0.85);
filter: drop-shadow(0 16rpx 32rpx rgba(255, 158, 109, 0.3));
}
.cover-emoji.emoji-active {
transform: scale(1.08);
}
.cover-channel {
font-size: 24rpx;
font-weight: 700;
color: #999999;
letter-spacing: 6rpx;
text-transform: uppercase;
margin-top: 32rpx;
position: relative;
z-index: 2;
}
/* 提示文字 — 胶囊按钮风格 */
.banner-hint {
display: inline-block;
margin-top: 28rpx;
font-size: 22rpx;
color: #999999;
letter-spacing: 2rpx;
position: relative;
z-index: 2;
background: rgba(0, 0, 0, 0.03);
border: 1rpx solid rgba(0, 0, 0, 0.05);
border-radius: 999rpx;
padding: 10rpx 28rpx;
}
/* ── 文案视图(阅读模式) ── */
.banner-transcript {
padding: 16rpx 40rpx 16rpx;
flex-direction: column;
}
.transcript-scroll {
flex: 1;
width: 100%;
max-height: 55vh;
background: rgba(255, 255, 255, 0.85);
border-radius: 24rpx;
border: 1rpx solid rgba(0, 0, 0, 0.04);
padding: 36rpx 32rpx;
box-sizing: border-box;
backdrop-filter: blur(24px);
box-shadow: 0 16rpx 48rpx rgba(255, 158, 109, 0.12);
}
.transcript-content {
font-size: 30rpx;
line-height: 2.1;
color: #666666;
white-space: pre-wrap;
letter-spacing: 1rpx;
}
.transcript-empty {
display: flex;
flex-direction: column;
align-items: center;
padding: 56rpx 0;
}
.transcript-empty-icon { font-size: 72rpx; }
.transcript-empty-text {
font-size: 28rpx;
color: #999999;
margin-top: 20rpx;
font-weight: 600;
}
.transcript-empty-sub {
font-size: 22rpx;
color: #CCCCCC;
margin-top: 8rpx;
}
.transcript-close-hint {
display: flex;
justify-content: center;
margin-top: 20rpx;
}
.transcript-close-text {
font-size: 20rpx;
color: #999999;
letter-spacing: 2rpx;
}
/* ── 日期 + 操作行 ── */
.date-like-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 52rpx;
margin-bottom: 8rpx;
position: relative;
z-index: 10;
}
.date-text {
font-size: 22rpx;
color: #999999;
letter-spacing: 2rpx;
font-weight: 500;
}
.action-btns {
display: flex;
align-items: center;
gap: 8rpx;
}
.action-btn {
display: flex;
align-items: center;
justify-content: center;
width: 72rpx;
height: 72rpx;
border-radius: 50%;
background: rgba(0, 0, 0, 0.04);
transition: all 0.2s;
}
.action-btn:active {
background: rgba(0, 0, 0, 0.08);
transform: scale(1.1);
}
.action-icon {
font-size: 34rpx;
color: #666666;
transition: color 0.2s;
}
.action-icon.favorited {
color: #FF9E6D;
}
.like-icon {
font-size: 36rpx;
color: #666666;
transition: all 0.25s;
}
.like-icon.liked {
color: #EF4444;
filter: drop-shadow(0 0 8rpx rgba(239, 68, 68, 0.6));
animation: like-pop 0.35s ease;
}
@keyframes like-pop {
0% { transform: scale(1); }
40% { transform: scale(1.3); }
100% { transform: scale(1); }
}
/* ── 进度条 ── */
.progress-section {
padding: 0 48rpx;
margin-bottom: 12rpx;
position: relative;
z-index: 10;
}
.progress-slider { margin: 0; }
.time-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 8rpx;
}
.time-text {
font-size: 22rpx;
color: #999999;
font-family: 'SF Mono', 'Menlo', monospace;
font-weight: 500;
letter-spacing: 1rpx;
}
/* ── 控制区 ── */
.controls-row {
display: flex;
align-items: center;
justify-content: center;
gap: 24rpx;
padding: 8rpx 48rpx 16rpx;
position: relative;
z-index: 10;
}
/* 上/下期按钮 */
.prev-next-btn {
width: 80rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: background 0.2s;
}
.prev-next-btn:active {
background: rgba(0, 0, 0, 0.04);
}
.pn-icon {
font-size: 36rpx;
color: #666666;
}
.prev-next-btn:active .pn-icon {
color: #333333;
}
/* 快退/快进 */
.skip-btn {
width: 88rpx;
height: 88rpx;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
border-radius: 50%;
transition: background 0.2s;
}
.skip-btn:active {
background: rgba(0, 0, 0, 0.04);
}
.skip-arrow {
font-size: 64rpx;
color: #666666;
font-weight: 300;
line-height: 1;
}
.skip-sec {
font-size: 18rpx;
font-weight: 800;
color: #999999;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin-top: 2rpx;
}
/* 播放/暂停主按钮 */
.play-btn {
width: 120rpx;
height: 120rpx;
border-radius: 50%;
background: linear-gradient(135deg, #FF8C42 0%, #FF6B2C 100%);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 16rpx 32rpx rgba(255, 107, 44, 0.25);
transition: transform 0.15s, box-shadow 0.15s;
}
.play-btn:active {
transform: scale(0.92);
box-shadow: 0 4rpx 16rpx rgba(255, 107, 44, 0.5);
}
.pause-group {
display: flex;
gap: 10rpx;
align-items: center;
}
.pause-bar {
width: 8rpx;
height: 36rpx;
background: #FFF;
border-radius: 4rpx;
}
.play-tri {
font-size: 40rpx;
color: #FFF;
padding-left: 6rpx;
}
/* ── 倍速按钮行 ── */
.speed-row {
display: flex;
justify-content: center;
padding: 0 48rpx 40rpx;
position: relative;
z-index: 10;
}
.speed-btn {
background: rgba(0, 0, 0, 0.04);
border: 1rpx solid rgba(0, 0, 0, 0.06);
border-radius: 999rpx;
padding: 12rpx 36rpx;
transition: all 0.2s;
}
.speed-btn:active {
background: rgba(0, 0, 0, 0.08);
}
.speed-label {
font-size: 24rpx;
font-weight: 700;
color: #666666;
letter-spacing: 1rpx;
}
/* ── 分享面板 ── */
.share-mask {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 100;
animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.share-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 40rpx 40rpx 0 0;
padding: 24rpx 48rpx calc(48rpx + env(safe-area-inset-bottom));
transform: translateY(100%);
transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 200;
box-shadow: 0 -8rpx 32rpx rgba(0, 0, 0, 0.05);
}
.share-sheet.sheet-up {
transform: translateY(0);
}
.share-sheet-handle {
width: 64rpx;
height: 8rpx;
background: #CCCCCC;
border-radius: 4rpx;
margin: 0 auto 28rpx;
}
.share-sheet-title {
font-size: 30rpx;
font-weight: 700;
color: #333333;
text-align: center;
margin-bottom: 40rpx;
}
.share-options {
display: flex;
justify-content: center;
gap: 64rpx;
margin-bottom: 40rpx;
}
.share-option-btn {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
line-height: normal !important;
}
.share-option-btn::after { border: none !important; }
.share-option {
display: flex;
flex-direction: column;
align-items: center;
gap: 16rpx;
}
.share-opt-icon {
width: 100rpx;
height: 100rpx;
border-radius: 28rpx;
display: flex;
align-items: center;
justify-content: center;
}
.share-opt-emoji { font-size: 44rpx; }
.share-opt-friend { background: rgba(7, 193, 96, 0.15); }
.share-opt-moment { background: rgba(255, 157, 66, 0.15); }
.share-opt-label {
font-size: 22rpx;
color: #666666;
}
.share-cancel {
text-align: center;
font-size: 28rpx;
color: #999999;
padding: 20rpx 0;
border-top: 1rpx solid #EEEEEE;
}
/* ── 分享图标(顶部栏) ── */
.top-share-icon {
font-size: 36rpx;
color: #333333;
}