305 lines
4.8 KiB
CSS
305 lines
4.8 KiB
CSS
/* 底部提示栏基础样式 */
|
|
.bottom-hint-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 9999;
|
|
padding: 12px 24px;
|
|
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 主题样式 */
|
|
.bottom-hint-bar-light {
|
|
background: #ffffff;
|
|
border-top: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.bottom-hint-bar-dark {
|
|
background: #001529;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.bottom-hint-bar-gradient {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: #ffffff;
|
|
}
|
|
|
|
/* 容器布局 */
|
|
.hint-bar-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* 左侧区域 */
|
|
.hint-bar-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hint-bar-icon {
|
|
font-size: 24px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-bar-icon {
|
|
color: #1677ff;
|
|
}
|
|
|
|
.hint-bar-title-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.hint-bar-title {
|
|
margin: 0;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-bar-title {
|
|
color: rgba(0, 0, 0, 0.88);
|
|
}
|
|
|
|
.hint-bar-badge {
|
|
margin: 0;
|
|
font-size: 10px;
|
|
padding: 1px 6px;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
/* 中间区域 */
|
|
.hint-bar-center {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.hint-bar-description,
|
|
.hint-bar-quick-tip,
|
|
.hint-bar-warning {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-bar-description,
|
|
.bottom-hint-bar-light .hint-bar-quick-tip {
|
|
color: rgba(0, 0, 0, 0.65);
|
|
}
|
|
|
|
.hint-info-icon {
|
|
font-size: 14px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-info-icon {
|
|
color: #1677ff;
|
|
}
|
|
|
|
.hint-tip-icon {
|
|
font-size: 14px;
|
|
color: #fadb14;
|
|
}
|
|
|
|
.hint-warning-icon {
|
|
font-size: 14px;
|
|
color: #ff7a45;
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-bar-warning {
|
|
color: #d46b08;
|
|
}
|
|
|
|
/* 右侧区域 */
|
|
.hint-bar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hint-bar-shortcut {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.shortcut-label {
|
|
font-size: 11px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.shortcut-kbd {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-family: 'Monaco', 'Consolas', monospace;
|
|
color: inherit;
|
|
font-weight: 500;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.bottom-hint-bar-light .shortcut-kbd {
|
|
background: #f0f0f0;
|
|
border-color: #d9d9d9;
|
|
color: rgba(0, 0, 0, 0.88);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.hint-bar-close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 4px;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.hint-bar-close:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-bar-close {
|
|
background: #f0f0f0;
|
|
border-color: #d9d9d9;
|
|
color: rgba(0, 0, 0, 0.45);
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-bar-close:hover {
|
|
background: #e0e0e0;
|
|
color: rgba(0, 0, 0, 0.88);
|
|
}
|
|
|
|
/* 进度指示条 */
|
|
.hint-bar-progress {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hint-bar-progress::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(255, 255, 255, 0.6);
|
|
animation: progressWave 3s ease-in-out infinite;
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-bar-progress {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
.bottom-hint-bar-light .hint-bar-progress::after {
|
|
background: #1677ff;
|
|
}
|
|
|
|
@keyframes progressWave {
|
|
0%, 100% {
|
|
transform: translateX(-100%);
|
|
}
|
|
50% {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 1024px) {
|
|
.hint-bar-container {
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.hint-bar-center {
|
|
flex-basis: 100%;
|
|
order: 3;
|
|
gap: 12px;
|
|
}
|
|
|
|
.hint-bar-description,
|
|
.hint-bar-quick-tip,
|
|
.hint-bar-warning {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.bottom-hint-bar {
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.hint-bar-left {
|
|
gap: 8px;
|
|
}
|
|
|
|
.hint-bar-icon {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.hint-bar-title {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.hint-bar-right {
|
|
gap: 8px;
|
|
}
|
|
|
|
.shortcut-label {
|
|
display: none;
|
|
}
|
|
|
|
.hint-bar-close {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.hint-bar-quick-tip {
|
|
display: none;
|
|
}
|
|
|
|
.hint-bar-warning {
|
|
flex-basis: 100%;
|
|
}
|
|
}
|