/* Toast通知样式 */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

/* NotificationDock（右下角主通知） */
.notification-dock {
    pointer-events: none;
}

.notification-dock .notification-dock-item {
    pointer-events: auto;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.4;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast i {
    font-size: 18px;
    flex-shrink: 0;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.success i {
    color: #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.error i {
    color: #dc3545;
}

.toast.warning {
    border-left: 4px solid #ffc107;
}

.toast.warning i {
    color: #ffc107;
}

.toast.info {
    border-left: 4px solid #17a2b8;
}

.toast.info i {
    color: #17a2b8;
}

/* 移动端Toast样式调整 */
@media (max-width: 768px) {
    #toast-container {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 100px;
    }

    .toast {
        min-width: 260px;
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notification-dock .notification-dock-item {
        transition: none !important;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 2000;
    min-width: 280px;
    max-width: 400px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.hide {
    transform: translateY(30px);
    opacity: 0;
}

.notification i {
    font-size: 22px;
    margin-right: 15px;
}

.notification-success {
    border-left: 4px solid #43cea2;
}

.notification-success i {
    color: #43cea2;
}

.notification-error {
    border-left: 4px solid #ff5757;
}

.notification-error i {
    color: #ff5757;
}

.notification-warning {
    border-left: 4px solid #f5b014;
}

.notification-warning i {
    color: #f5b014;
}

.notification-info {
    border-left: 4px solid #3a7bd5;
}

.notification-info i {
    color: #3a7bd5;
}

/* 波纹效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.32);
    transform: scale(0);
    animation: ripple var(--motion-base) var(--motion-ease);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* 卡片脉冲动画 */
.pulse {
    animation: pulse var(--motion-fast) var(--motion-ease);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.985);
    }

    100% {
        transform: scale(1);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 渐变动画移除，保持静态质感 */

/* 注册提示样式 */
.register-tip {
    margin-top: 20px;
    padding: 12px 15px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.register-tip i {
    margin-right: 10px;
    color: #ff9800;
    font-size: 16px;
}

/* 忘记密码弹窗样式 */
#forgot-password-modal .form-group {
    margin-bottom: 20px;
}

#forgot-password-step-1,
#forgot-password-step-2 {
    padding: 10px 0;
}

/* 快捷键提示区域样式 */
.keyboard-shortcuts-info {
    margin: 30px auto 0;
    max-width: 900px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e8ed;
}

.keyboard-shortcuts-info h3 {
    font-size: 16px;
    color: #445366;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.keyboard-shortcuts-info h3 i {
    margin-right: 8px;
    color: #6d5dc6;
}

/* 精简首页：默认隐藏功能卡片与选项卡片（用设置抽屉配置） */
.features-section,
.options-container {
    display: none;
}

.shortcuts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #eaecef;
    min-width: 110px;
    transition: all 0.2s;
}

.shortcut-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #d4d9e1;
}

.key-combo {
    font-family: "Courier New", monospace;
    font-weight: bold;
    background-color: #f0f2f5;
    padding: 3px 8px;
    border-radius: 5px;
    color: #3a7bd5;
    margin-bottom: 5px;
    border: 1px solid #e0e3e9;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.key-desc {
    font-size: 12px;
    color: #667283;
}

@media (max-width: 768px) {
    .shortcuts-list {
        gap: 10px;
    }

    .shortcut-item {
        min-width: calc(33% - 10px);
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .shortcut-item {
        min-width: calc(50% - 10px);
    }
}
