2026-04-12 14:44:05 +08:00

134 lines
2.2 KiB
CSS

/* 移动控制相关样式 */
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 80vh;
padding: 20px;
}
.title {
font-size: 24px;
font-weight: bold;
color: #333;
margin-bottom: 40px;
text-align: center;
}
/* 手柄风格布局 */
.controller {
display: flex;
flex-direction: column;
align-items: center;
gap: 30px;
width: 100%;
max-width: 350px;
}
/* 移动控制按钮区域 */
.movement-controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
width: 100%;
}
.movement-row {
display: flex;
gap: 15px;
justify-content: center;
}
/* 录制回放按钮区域 */
.record-controls {
display: flex;
gap: 15px;
justify-content: center;
width: 100%;
margin-top: 20px;
}
/* 按钮样式 */
.btn {
width: 120px;
height: 50px;
border: none;
border-radius: 25px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btn::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
z-index: 1;
}
.btn span {
position: relative;
z-index: 2;
}
.btn-forward {
background-color: #4CAF50;
color: white;
}
.btn-backward {
background-color: #f44336;
color: white;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.btn:active {
transform: translateY(0);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* 状态显示 */
.status {
margin-top: 30px;
padding: 15px;
background-color: #f5f5f5;
border-radius: 10px;
min-height: 50px;
width: 100%;
max-width: 350px;
text-align: center;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.status p {
color: #666;
margin: 0;
font-size: 16px;
}
/* 响应式设计 */
@media (max-width: 400px) {
.btn {
width: 100px;
height: 45px;
font-size: 14px;
}
.title {
font-size: 20px;
}
}