/* 重要通知弹窗样式 */
.app-notification {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    max-width: 318px;
}

.app-notification-box {
    background: var(--el-bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* 头部样式 */
.app-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #d9ecff;
}

.app-notification-title {
    font-size: 14px;
    color: #409EFF;
}

.app-notification-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-notification-toggle,
.app-notification-close {
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.8;
    color: #409EFF;
}

.app-notification-toggle:hover,
.app-notification-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.app-notification-toggle-collapsed {
    transform: rotate(180deg);
}

/* 内容区域样式 */
.app-notification-content {
    padding: 12px;
    background: var(--el-bg-color);
}

.app-notification-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--el-text-color-primary);
}

/* 过渡动画 */
.app-notification-fade-enter-active,
.app-notification-fade-leave-active {
    transition: opacity 0.3s, transform 0.3s;
}

.app-notification-fade-enter,
.app-notification-fade-leave-to {
    opacity: 0;
    transform: translateY(20px);
}

.app-notification-slide-enter-active,
.app-notification-slide-leave-active {
    transition: all 0.3s ease;
    max-height: 200px;
    overflow: hidden;
}

.app-notification-slide-enter,
.app-notification-slide-leave-to {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ========== 夜间模式样式 ========== */

/* 头部夜间模式 */
.dark-mode .app-notification-header {
    background: #2a2a2a;
}

/* 标题夜间模式 */
.dark-mode .app-notification-title {
    color: var(--el-text-color-primary);
}

/* 操作图标夜间模式 */
.dark-mode .app-notification-toggle,
.dark-mode .app-notification-close {
    color: var(--el-text-color-secondary);
}

.dark-mode .app-notification-toggle:hover,
.dark-mode .app-notification-close:hover {
    color: var(--el-text-color-primary);
}
