Files
2026-09-29 01:50:11 +08:00

384 lines
6.6 KiB
Plaintext

/* ===== 整体 ===== */
.page {
display: flex;
flex-direction: column;
height: 100vh;
background: var(--bg);
}
/* ===== 预览区(深色)===== */
.stage {
position: relative;
/* 固定高度:控制面板出现/消失都不再改变画布的显示区域,
否则缓冲区比例会和显示区对不上,画面会被拉伸 */
flex: none;
height: 50vh;
/* 和整页统一底色,不要再上下两种颜色 */
background: var(--bg);
}
.stage-canvas {
width: 100%;
height: 100%;
display: block;
}
.stage-mask {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 48rpx;
box-sizing: border-box;
text-align: center;
}
.empty-icon {
font-size: 76rpx;
margin-bottom: 22rpx;
}
.empty-title {
font-size: 34rpx;
font-weight: 600;
color: #ffffff;
margin-bottom: 14rpx;
}
.empty-title.error {
color: #ff6b6b;
}
.empty-sub {
font-size: 26rpx;
color: rgba(255, 255, 255, 0.62);
line-height: 1.6;
}
.empty-tip {
margin-top: 20rpx;
font-size: 23rpx;
color: rgba(255, 255, 255, 0.38);
line-height: 1.6;
max-width: 560rpx;
}
.stage-badge {
position: absolute;
left: 22rpx;
top: 22rpx;
padding: 8rpx 18rpx;
border-radius: var(--r-pill);
background: #24242c;
color: rgba(255, 255, 255, 0.82);
font-size: 22rpx;
}
/* ===== 画布下方:手势提示 + 缩放控制 ===== */
.tool-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
}
.tool-hint {
flex: 1;
margin-right: 16rpx;
font-size: 21rpx;
color: rgba(255, 255, 255, 0.42);
}
.zoom-group {
flex: none;
display: flex;
align-items: center;
padding: 4rpx;
border-radius: var(--r-pill);
background: var(--panel-2);
}
.zoom-btn {
width: 56rpx;
height: 56rpx;
line-height: 56rpx;
text-align: center;
font-size: 30rpx;
color: rgba(255, 255, 255, 0.85);
}
.zoom-val {
min-width: 92rpx;
text-align: center;
font-size: 24rpx;
font-weight: 600;
color: #ffffff;
}
.zoom-reset {
height: 56rpx;
line-height: 56rpx;
padding: 0 20rpx;
margin-left: 6rpx;
border-radius: var(--r-pill);
background: #34343e;
color: rgba(255, 255, 255, 0.85);
font-size: 22rpx;
}
/* ===== 控制面板(深色,和预览区统一)===== */
.sheet {
/* 同上:整页一种底色,去掉面板的圆角与投影,避免出现分界线 */
background: var(--bg);
/* 面板自己滚动,这样它的内容变化不会挤动上面的画布 */
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 30rpx 28rpx 28rpx;
}
.section {
margin-bottom: 26rpx;
}
.section:last-child {
margin-bottom: 0;
}
.section-title {
font-size: 26rpx;
color: rgba(255, 255, 255, 0.92);
font-weight: 600;
letter-spacing: 1rpx;
margin-bottom: 14rpx;
}
/* ===== 选择文件按钮 ===== */
.pick-btn {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100rpx;
padding: 0;
border-radius: var(--r-lg);
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
color: #ffffff;
font-weight: 500;
box-shadow: 0 10rpx 24rpx rgba(242, 53, 59, 0.28);
}
.pick-btn::after {
border: none;
}
.pick-text {
font-size: 31rpx;
letter-spacing: 2rpx;
}
.pick-sub {
margin-top: 16rpx;
text-align: center;
font-size: 22rpx;
color: rgba(255, 255, 255, 0.38);
}
/* 选择文件放在面板最下面 */
.pick-section {
/* auto 让它在内容不足时贴到面板底部,内容多时自然跟在最后 */
margin-top: auto;
padding-top: 26rpx;
margin-bottom: 0;
}
/* 清空已选 + 重新选择文件:两个等宽按钮并排 */
.pick-row {
display: flex;
align-items: center;
}
.pick-row .pick-btn {
flex: 1;
}
.clear-btn {
flex: 1;
height: 100rpx;
line-height: 100rpx;
margin-right: 20rpx;
text-align: center;
border-radius: var(--r-lg);
background: var(--panel-2);
color: rgba(255, 255, 255, 0.72);
font-size: 30rpx;
}
/* ===== 文件类型标签 ===== */
.chips {
display: flex;
flex-wrap: wrap;
margin-top: 18rpx;
}
.chip {
display: flex;
align-items: center;
margin: 0 12rpx 12rpx 0;
padding: 8rpx 18rpx;
border-radius: var(--r-pill);
background: var(--panel-2);
}
.chip-dot {
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background: var(--text-dim);
margin-right: 10rpx;
flex-shrink: 0;
}
.chip-name {
font-size: 23rpx;
color: rgba(255, 255, 255, 0.72);
}
.chip-skel .chip-dot {
background: var(--accent);
}
.chip-atlas .chip-dot {
background: #7c5cff;
}
.chip-img .chip-dot {
background: #22c55e;
}
.chip-json .chip-dot {
background: #f59e0b;
}
.missing {
margin-top: 18rpx;
padding: 14rpx 20rpx;
border-radius: var(--r-lg);
background: rgba(245, 158, 11, 0.1);
font-size: 23rpx;
color: #f0b45c;
}
/* ===== 播放选择 ===== */
.select {
display: flex;
align-items: center;
justify-content: space-between;
height: 86rpx;
padding: 0 26rpx;
margin-bottom: 14rpx;
background: var(--panel-2);
border-radius: var(--r-lg);
}
.select-label {
font-size: 29rpx;
font-weight: 500;
color: #ffffff;
}
.select-arrow {
font-size: 26rpx;
color: rgba(255, 255, 255, 0.4);
}
/* ===== 播放(标题和动画列表同一行,开关在下面一行)===== */
.section-head {
display: flex;
align-items: center;
margin-bottom: 14rpx;
}
.section-head .section-title {
flex: none;
margin-right: 20rpx;
margin-bottom: 0;
}
.anim-picker {
flex: 1;
min-width: 0;
}
.section-head .select {
margin-bottom: 0;
}
/* 动画名太长时省略,不要挤掉右边的按钮 */
.select-label {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/* ===== 分段控件 ===== */
.segment {
display: flex;
padding: 6rpx;
background: var(--panel-2);
border-radius: var(--r-lg);
}
.seg {
flex: 1;
height: 68rpx;
line-height: 68rpx;
text-align: center;
font-size: 25rpx;
color: rgba(255, 255, 255, 0.55);
border-radius: var(--r-md);
}
.seg.on {
background: #3d262e;
color: var(--accent-2);
font-weight: 600;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.25);
}
/* ===== 参数行 ===== */
.param {
display: flex;
align-items: center;
margin-bottom: 20rpx;
}
.param-name {
width: 76rpx;
flex-shrink: 0;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.55);
}
.param-slider {
flex: 1;
margin: 0 16rpx;
}
.param-val {
width: 76rpx;
flex-shrink: 0;
text-align: right;
font-size: 25rpx;
font-weight: 600;
color: var(--cyan);
}